Skip to content

Instantly share code, notes, and snippets.

View XMLSDK's full-sized avatar

Simon Chow XMLSDK

View GitHub Profile
@XMLSDK
XMLSDK / MyTest
Created July 28, 2018 17:46
Gist from yEd-Live
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--Created by yFiles for HTML 2.1.0.3-RC3-->
<graphml xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml.html/2.0/ygraphml.xsd " xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:demostyle="http://www.yworks.com/yFilesHTML/demos/FlatDemoStyle/1.0" xmlns:bpmn="http://www.yworks.com/xml/yfiles-for-html/bpmn/2.0" xmlns:demotablestyle="http://www.yworks.com/yFilesHTML/demos/FlatDemoTableStyle/1.0" xmlns:uml="http://www.yworks.com/yFilesHTML/demos/UMLDemoStyle/1.0" xmlns:compat="http://www.yworks.com/xml/yfiles-compat-arrows/1.0" xmlns:VuejsNodeStyle="http://www.yworks.com/demos/yfiles-vuejs-node-style/1.0" xmlns:y="http://www.yworks.com/xml/yfiles-common/3.0" xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/3.0" xmlns:yjs="http://www.yworks.com/xml/yfiles-for-html/2.0/xaml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="d0" for="node" attr.type="boolean" attr.name="Expanded" y:attr.ur
$('div#out').bind('DOMNodeInserted', function(e) {
var txt = e.target.innerText;
console.log(txt);
if (/蛋糕風 abc/.test(txt))
doSendSplitedCmd("chat* kick cake;say hi cake");
})
@XMLSDK
XMLSDK / URHK_AddOil
Created October 6, 2014 06:28
雨傘革命打氣機
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=600, maximum-scale=1">
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<title>雨傘革命打氣機 - 衍生自佔中打氣機</title>
</head>
<body style="margin:0px;padding:0px;overflow:hidden;height:100%;">
@XMLSDK
XMLSDK / UIColor+CFAdditions.h
Created March 6, 2012 04:00
UIColor+CFAdditions Category to handle UIColor.CGColor in ARC
#import <UIKit/UIKit.h>
@interface UIColor (CFAdditions)
- (CGColorRef)CGColorRetained;
@end
@XMLSDK
XMLSDK / soap_auth_header.xml
Created March 5, 2012 03:47
Soap Authentication Header
<soap:Header>
<Authentication>
<Username>username</Username>
<Password>password</Password>
</Authentication>
</soap:Header>