top-1m.csv can be get it from alexa's website:
This file contains 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 socket | |
import random | |
import sys | |
import re | |
server = "irc.freenode.net" # Server | |
channel = "#cs-york-dev2" # Channel | |
botnick = "game_1A2B" # Your bots nick | |
# Convert string to bytes |
This file contains 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
// 简易 Ajax 函数 | |
// MIT License, Jixun.Moe | |
(function (global) { | |
var _export = { | |
ajax: $ajax, | |
post: $post, | |
get: $get | |
}; |
This file contains 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
/*! MIT License: (C)opyright Jixun<http://jixun.org/> */ | |
// Usage: | |
// gist:JixunMoe/cd168a63b7c5a1cc3d93 | |
(function (window, document) { | |
addEventListener('DOMContentLoaded', main, false); | |
function createGistLink (gist) { | |
return create('a', { | |
href: 'https://gist.github.com/' + gist, |
This file contains 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
format PE GUI 4.0 DLL | |
entry DllMain | |
include 'win32ax.inc' | |
section '.text' code readable executable | |
; 入口函数 | |
proc DllMain hinstDLL,fdwReason,lpvReserved | |
mov al, 1 | |
ret |
This file contains 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
// FakeLib.cpp : Defines the exported functions for the DLL application. | |
// | |
#include <windows.h> | |
#include "FakeLib.h" | |
int __stdcall _NT3DESCBCDecrypt(char* vi, char* pDataBuffer, int length) | |
{ | |
return 0; | |
} |
This file contains 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 (window, document) { | |
if (!window.ga) window.ga = function () {}; | |
function getContent (url, cbSuccess, cbFail) { | |
var req = new XMLHttpRequest(); | |
req.open ('GET', url); | |
req.onload = cbSuccess && cbSuccess.bind(req); | |
req.onerror = cbFail && cbFail .bind(req); | |
req.send (); | |
}; |
This file contains 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 (str) { | |
// 过滤注释 | |
console.info (str.split('\n') | |
.filter(function (s) { return ! /^\s*\/\//.test(s); }) | |
.join('\n')); | |
// 空行也会保留 | |
})(require('fs').readFileSync(__filename).toString()) |
This file contains 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 (window, location, document) { | |
if (!window.history || (location.hash && location.hash[1] != '#')) | |
return ; | |
var np = 'hitokoto_' + + new Date; | |
window[np] = function (hitokoto) { | |
history.replaceState(null, null, '##' + hitokoto.hitokoto + ' <-- ' + hitokoto.source); | |
}; | |
var keepUpdate = function () { |
This file contains 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
// 网易音乐 NEJ 内核 | |
(function() { | |
window.NEJ = window.NEJ || {}; | |
NEJ.O = {}; | |
NEJ.R = []; | |
NEJ.F = NEJ.emptyFunction = function() { | |
return false; | |
}; |