Skip to content

Instantly share code, notes, and snippets.

View stanwu's full-sized avatar

Stan Wu stanwu

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Kendo UI Snippet</title>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.rtl.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.default.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.3.1316/styles/kendo.dataviz.min.css">
<style type='text/css'>
#loading {
background: #ffffff;
position:absolute; width:100%; height:24;
top:0; bottom:0; left:0; right:0; margin:auto;
z-index: 999999999;
}
</style>
<div id='loading'>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Kendo UI Snippet</title>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.common.min.css"/>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.rtl.min.css"/>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.silver.min.css"/>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.mobile.all.min.css"/>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<div id="tree"></div>
<style>
.fa.k-sprite,
.fa.k-sprite::before {
font-size: 12px;
line-height: 12px;
vertical-align: middle;
}
@stanwu
stanwu / AndroidManifext.xml
Created August 30, 2016 07:40 — forked from komamitsu/AndroidManifext.xml
Android Simple web server using NanoHTTPD (http://elonen.iki.fi/code/nanohttpd)
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
@stanwu
stanwu / cleanup-windows-sp-32x64.bat
Created August 2, 2016 09:07
You have to install Glary Utilities first, 必須先安裝 Glary Utilities 這個工具 http://www.glarysoft.com/
@echo off
echo Clean SPx and upgrade cache...
DISM.exe /online /Cleanup-Image /StartComponentCleanup
DISM.exe /online /Cleanup-Image /SPSuperseded
DISM.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
echo Run Glary Utilities...
:CheckOS
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
@stanwu
stanwu / check_virustotal_report.py
Created April 10, 2016 08:07
get the report from virustotal
import simplejson
import urllib
import urllib2
url = "https://www.virustotal.com/vtapi/v2/file/report"
parameters = {"resource": "bebe9e7d7c6272f423af69efc04d17e2,4f5e7847a12a0c97308e31cdf384c727,....multi-hash", "apikey": "--put your key here---"}
data = urllib.urlencode(parameters)
req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
json = response.read()
print json
@stanwu
stanwu / 0_reuse_code.js
Created March 29, 2016 16:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@stanwu
stanwu / _form.html.erb
Last active March 23, 2016 05:14
auto complete
<script>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",