Toggle menu with animated navigation menu icon created by Vladislav Kirbaba
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//events - a super-basic Javascript (publish subscribe) pattern | |
var events = { | |
events: {}, | |
on: function (eventName, fn) { | |
this.events[eventName] = this.events[eventName] || []; | |
this.events[eventName].push(fn); | |
}, | |
off: function(eventName, fn) { | |
if (this.events[eventName]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Merge sort in C */ | |
#include<stdio.h> | |
#include<stdlib.h> | |
// Function to Merge Arrays L and R into A. | |
// lefCount = number of elements in L | |
// rightCount = number of elements in R. | |
void Merge(int *A,int *L,int leftCount,int *R,int rightCount) { | |
int i,j,k; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.security.MessageDigest; | |
import java.util.Arrays; | |
import javax.crypto.Cipher; | |
import javax.crypto.SecretKey; | |
import javax.crypto.spec.SecretKeySpec; | |
import org.apache.commons.codec.binary.Base64; | |
/** | |
* Simple TripleDES Encrypt/Decrypt Test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
标题 Title | |
描述 Description | |
使用方式 Get Start | |
[ optional ] 链接(npm,website,wiki,git repo) | |
[ optional ] 作者(联系方式) | |
[ optional ] 测试脚本 | |
[ optional ] demo 页 | |
[ optional ] 代码说明,设计模式,维护须知 | |
[ optional ] 更新历史 | |
[ optional ] Troubleshooting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: UTF-8 | |
# User: haku | |
# Date: 14-5-22 | |
# Time: 4:01 | |
# Modifier: scq000 | |
__author__ = 'haku-mac' | |
from pattern import Pattern |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Product(name, price) { | |
this.name = name; | |
this.price = price; | |
} | |
// Object.defineProperty(Product.prototype, "discount", { | |
// get() { | |
// return 1; | |
// }, | |
// set(value) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!MANAGED-CONFIG http://surge.w3cboy.com/ChinaUnicom.conf interval=86400 | |
#UPDATE: 2017-01-03 14:42:37 | |
[General] | |
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
loglevel = notify | |
[Rule] | |
# Adblock | |
DOMAIN-KEYWORD,analytics,REJECT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 将元素属性和数据进行绑定 | |
function bind(obj, prop, element, config) { | |
if(config) { | |
Object.defineProperty(obj, prop, { | |
get: config.get, | |
set: config.set, | |
enumerable: true, | |
configurable: true | |
}); | |
}else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::-webkit-scrollbar { | |
overflow: visible; | |
width: 6px; | |
height: 16px | |
} | |
::-webkit-scrollbar-button { | |
width: 0; | |
height: 0 | |
} |
OlderNewer