xml 将静态块添加到内容

将静态块添加到内容

gistfile1.xml
Create static block 'main': 
    
    <div class="main"></div
    
Add this to Layout in 'HomePage'

    <reference name="content">
        <block type="cms/block" name="[main]" as="[main]">
            <action method="setBlockId"><block_id>[main]</block_id></action>
        </block>
    </reference>

xml 订单状态(TopLink块) - customer.xml(登录时)

订单状态(TopLink块) - customer.xml(登录时)

gistfile1.xml
<customer_logged_in>
	<reference name="top.links">
		<action method="addLink" translate="label title" module="customer"><label>
		Sign Out</label><url helper="customer/getLogoutUrl"/>
		<title>Sign Out</title><prepare/><urlParams/><position>100</position>
		</action>
		<action method="addLink" translate="label title">
			<label>Order Status</label>
			<url>sales/order/history/</url>
			<title>My Orders</title>
			<prepare>true</prepare>
			<urlParams/>
			<position>100</position>
		</action>
	</reference>
</customer_logged_in> 

xml 在XML中引用CMS块

在XML中引用CMS块

gistfile1.xml
<block type="cms/block" name="[cms_support]">
	<action method="setBlockId"><id>[support]</id></action>
</block>

xml 思华内容详情2013.12.21

思华内容详情2013.12.21

content.xml
<?xml version="1.0" encoding="UTF-8"?>
<message module="CATALOG_SERVICE" version="1.0">
   <header action="RESPONSE" command="CONTENT_QUERY" sequence="" component-id="portal52" component-type="CATALOG_SERVER" />
   <body>
      <result code="1" description="ok" />
      <contents>
         <content>
            <name><![CDATA[快乐大本营]]></name>
            <code><![CDATA[jxgd-000000000000000000000000211]]></code>
            <type><![CDATA[10]]></type>
            <auth-result />
            <sort-index><![CDATA[1]]></sort-index>
            <relative-ppvids />
            <standard-price />
            <director />
            <actors><![CDATA[dtvmaster@scn.com.cn,快乐大本营]]></actors>
            <items><![CDATA[0]]></items>
            <produced-year><![CDATA[0]]></produced-year>
            <duration><![CDATA[53]]></duration>
            <url><![CDATA[http://192.168.2.52:8080/portal/a?t=36&f=150&a=815486]]></url>
            <description><![CDATA[快乐大本营]]></description>
            <duber />
            <comment />
            <keywords />
            <viewpoints><![CDATA[快乐大本营]]></viewpoints>
            <tags />
            <source />
            <creat-time><![CDATA[20131220154320]]></creat-time>
            <copy-right-owner-cn />
            <copy-right-owner-en />
            <licensing-window-start><![CDATA[20131210000000]]></licensing-window-start>
            <licensing-window-end><![CDATA[20201214000000]]></licensing-window-end>
            <copy-right-owner-type />
            <company />
            <box-office />
            <document-folder-url />
            <preview-entity-url />
            <still-entity-url />
            <poster-entity-url />
            <feature-entity-url />
            <sitcom-entity-url />
            <macrovision><![CDATA[0]]></macrovision>
            <event />
            <sub-head />
            <play-time />
            <copy-idea />
            <copy-type><![CDATA[0]]></copy-type>
            <copy-licenser />
            <copy-license />
            <copy-serilno />
            <first-letter />
            <original-country><![CDATA[-1]]></original-country>
            <topic />
            <media-files items="1">
               <media-file>
                  <index><![CDATA[815499]]></index>
                  <type><![CDATA[80]]></type>
                  <bit-rate><![CDATA[0]]></bit-rate>
                  <relative-ppvids />
                  <standard-price />
                  <platform />
                  <play-length><![CDATA[7200]]></play-length>
               </media-file>
            </media-files>
         </content>
      </contents>
   </body>
</message>

xml 用于深色配色方案的GitGutter样式(从Monokai Extended中提取)

用于深色配色方案的GitGutter样式(从Monokai Extended中提取)

GitGutter-dark.xml
    <dict>
        <key>name</key>
        <string>GitGutter deleted</string>
        <key>scope</key>
        <string>markup.deleted.git_gutter</string>
        <key>settings</key>
        <dict>
            <key>foreground</key>
            <string>#F92672</string>
        </dict>
    </dict>
    <dict>
        <key>name</key>
        <string>GitGutter inserted</string>
        <key>scope</key>
        <string>markup.inserted.git_gutter</string>
        <key>settings</key>
        <dict>
            <key>foreground</key>
            <string>#A6E22E</string>
        </dict>
    </dict>
    <dict>
        <key>name</key>
        <string>GitGutter changed</string>
        <key>scope</key>
        <string>markup.changed.git_gutter</string>
        <key>settings</key>
        <dict>
            <key>foreground</key>
            <string>#967EFB</string>
        </dict>
    </dict>
    <dict>
        <key>name</key>
        <string>GitGutter ignored</string>
        <key>scope</key>
        <string>markup.ignored.git_gutter</string>
        <key>settings</key>
        <dict>
            <key>foreground</key>
            <string>#565656</string>
        </dict>
    </dict>
    <dict>
        <key>name</key>
        <string>GitGutter untracked</string>
        <key>scope</key>
        <string>markup.untracked.git_gutter</string>
        <key>settings</key>
        <dict>
            <key>foreground</key>
            <string>#565656</string>
        </dict>
    </dict>

xml private.xml

private.xml
<?xml version="1.0"?>
<root>
	<item>
		<name>[all] KANA/EISUU + H/J/K/L move cursor</name>
		<appendix>かなキー/英数キー + H/J/K/Lキーでカーソル移動</appendix>
		<item>
			<name>EISUU to ModifierFlag::EXTRA1</name>
			<identifier>remap.app_all_eisuu_extra</identifier>
			<autogen>__KeyOverlaidModifier__ KeyCode::JIS_EISUU, KeyCode::VK_MODIFIER_EXTRA1, KeyCode::JIS_EISUU</autogen>
		</item>
		<item>
			<name>KANA to ModifierFlag::EXTRA1</name>
			<identifier>remap.app_all_kana_extra</identifier>
			<autogen>__KeyOverlaidModifier__ KeyCode::JIS_KANA, KeyCode::VK_MODIFIER_EXTRA1, KeyCode::JIS_KANA</autogen>
		</item>
		<item>
			<name>Ex1-H to left</name>
			<identifier>private.app_all_opth_left</identifier>
			<autogen>--KeyToKey-- KeyCode::H, ModifierFlag::EXTRA1, KeyCode::CURSOR_LEFT</autogen>
		</item>
		<item>
			<name>Ex1-J to down</name>
			<identifier>private.app_all_optj_down</identifier>
			<autogen>--KeyToKey-- KeyCode::J, ModifierFlag::EXTRA1, KeyCode::CURSOR_DOWN</autogen>
		</item>
		<item>
			<name>Ex1-K to up</name>
			<identifier>private.app_all_optk_up</identifier>
			<autogen>--KeyToKey-- KeyCode::K, ModifierFlag::EXTRA1, KeyCode::CURSOR_UP</autogen>
		</item>
		<item>
			<name>Ex1-L to right</name>
			<identifier>private.app_all_optl_right</identifier>
			<autogen>--KeyToKey-- KeyCode::L, ModifierFlag::EXTRA1, KeyCode::CURSOR_RIGHT</autogen>
		</item>
		<item>
			<name>──────────────────────────────</name>
			<identifier vk_config="true">notsave.app_all_space_extra</identifier>
			<autogen>__ShowStatusMessage__ Command</autogen>
		</item>
		<item>
			<name>(標準からコピー)英数/かなキーの動作を優先モード</name>
			<appendix>(基本的に英数/かなキーとして動作させる)</appendix>
			<appendix>(コマンドキーとして動作させるにはコマンドキーを長押しする)</appendix>
			<appendix>(長押しの時間は Key Repeat タブの Holding Key to Key &gt; Holding Threshold で指定します)</appendix>
			<identifier>private.app_all_space_extra</identifier>
			<autogen>__HoldingKeyToKey__ KeyCode::SPACE, 
				KeyCode::SPACE, 
				KeyCode::VK_NONE, 
				KeyCode::VK_CONFIG_SYNC_KEYDOWNUP_notsave_app_all_space_extra,
				ModifierFlag::EXTRA1</autogen>
		</item>
	</item>
 <item>
	 <name>【Alfred】Change for Alfred app</name>
	 <item>
		<name>[Alfred]Ctrl+L to Right</name>
		<identifier>private.app_alfred_ctrl_l_to_right</identifier>
		<only>ALFRED</only>
		<autogen>--KeyToKey-- KeyCode::L, ModifierFlag::CONTROL_L, KeyCode::CURSOR_RIGHT</autogen>
	  </item>
	 <item>
		<name>[Alfred]Ctrl+J to Down</name>
		<identifier>private.app_alfred_ctrl_j_to_down</identifier>
		<only>ALFRED</only>
		<autogen>--KeyToKey-- KeyCode::J, ModifierFlag::CONTROL_L, KeyCode::CURSOR_DOWN</autogen>
	  </item>
	 <item>
		<name>[Alfred]Ctrl+K to Up</name>
		<identifier>private.app_alfred_ctrl_k_to_up</identifier>
		<only>ALFRED</only>
		<autogen>--KeyToKey-- KeyCode::K, ModifierFlag::CONTROL_L, KeyCode::CURSOR_UP</autogen>
	  </item>
  </item>
</root>

xml 崇高的片段

崇高的片段

sb-snippet-html5-base.xml
<snippet>
<content><![CDATA[
<!DOCTYPE html>
<html>
<head>
	<title>Ma page web</title>
	<meta charset="utf-8">
	<link rel="stylesheet" href="styles.css">	

</head>
<body>

</body>
</html>
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<!-- <tabTrigger>hello</tabTrigger> -->
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	
<tabTrigger>,,html5</tabTrigger>
<scope>text.html</scope>
<description>gncom Base HTML5</description>
</snippet>

xml log4j2配置模板

log4j2配置模板

log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration status="warn">
    <properties>
        <property name="name">app</property>
        <!-- http://logging.apache.org/log4j/2.x/manual/layouts.html -->
        <property name="pattern">%d{yyyy-MM-dd HH:mm:ss.SSS}[%p] %c{2}:%L(%M) | %msg%n</property>
        <!--
        Example:
        2013-12-09 02:00:27.660[FATAL] Program:main:13 | Hello world
        -->
    </properties>
    <appenders>
        <Console name="console" target="SYSTEM_OUT">
            <PatternLayout pattern="${pattern}"/>
        </Console>
        <RollingFile name="rollingFile" fileName="logs/${name}.log" filePattern="logs/${date:yyyy-MM}/${name}-%d{yyyy-MM-dd}-%i.log.gz">
            <PatternLayout>
                <pattern>${pattern}</pattern>
            </PatternLayout>
            <Policies>
                <TimeBasedTriggeringPolicy/>
                <SizeBasedTriggeringPolicy size="100 MB"/>
            </Policies>
        </RollingFile>
    </appenders>
    <loggers>
        <root level="trace">
            <appender-ref ref="console"/>
            <appender-ref ref="rollingFile"/>
        </root>
    </loggers>
</configuration>

xml Android 4.0子标题(部分)标签样式<br/>来自http://stackoverflow.com/questions/10020466/android-4-0-sub-title-section-label-styling

Android 4.0子标题(部分)标签样式<br/>来自http://stackoverflow.com/questions/10020466/android-4-0-sub-title-section-label-styling

AndroidSub-TitleLabelStyling.xml
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <style name="sectionHeader" parent="android:Widget.Holo.Light.TextView">
        <item name="android:drawableBottom">@drawable/section_header</item>
        <item name="android:drawablePadding">4dp</item>
        <item name="android:layout_marginTop">8dp</item>
        <item name="android:paddingLeft">4dp</item>
        <item name="android:textAllCaps">true</item>
        <item name="android:textColor">@color/emphasis</item>
        <item name="android:textSize">14sp</item>
    </style>
</resources>
colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="emphasis">#31b6e7</color>
    <color name="bg_gray">#cecbce</color>
</resources>
section_header.xml
@drawable/section_header

<?xml version="1.0" encoding="utf-8"?>
<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <size android:width="1000dp" android:height="2dp" />
    <solid 
        android:color="@color/emphasis"/>
</shape>

xml OTA IPA分配名单

OTA IPA分配名单

gistfile1.xml
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>
http://myserver.ipa
</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>it.runcode.myapp</string>
<key>bundle-version</key>
<string>1.0</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>MyAPP</string>
</dict>
</dict>
</array>
</dict>
</plist>