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
#!/usr/local/bin/fontforge | |
Open($1) | |
Generate($1:r + ".otf") | |
Generate($1:r + ".svg") | |
Generate($1:r + ".woff") | |
Generate($1:r + ".woff2") |
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 (root, factory) { | |
var lodash = 'lodash'; | |
if (typeof define === 'function' && define.amd) { | |
define([lodash], factory); | |
} else if (typeof module === 'object' && module.exports) { | |
module.exports = factory(require(lodash)); | |
} else { | |
root.BOMDetect = factory(_); | |
} | |
}(this, 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
# To record both mic and other audio input sources we need to add a named output sink. See: | |
# http://www.linuxquestions.org/questions/linux-software-2/alsa-and-pulseaudio-recording-multiple-input-devices-877614/ | |
# http://www.youtube.com/watch?v=oJADNOY615Y&feature=player_embedded | |
# Add this to your /etc/pulse/default.pa file | |
load-module module-null-sink sink_name=stream | |
load-module module-loopback latency_msec=5 sink=stream | |
load-module module-loopback latency_msec=5 sink=stream |
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
<?php | |
/** | |
* Anti-XP Script | |
* | |
* @author 小傅Fox[<[email protected]>] | |
*/ | |
/** | |
* 获得客户端的操作系统 | |
* Source:{@link http://lok.me/a/1027.html} | |
* |
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
#!/usr/bin/env python2 | |
#coding:utf-8 | |
import logging | |
from tornado.ioloop import IOLoop | |
from tornado.iostream import IOStream | |
from tornado.tcpserver import TCPServer | |
logging.basicConfig(level=logging.INFO, format='%(levelname)s - - %(asctime)s %(message)s', datefmt='[%d/%b/%Y %H:%M:%S]') |