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
#include <IRremote.h> | |
int RECV_PIN = 11; | |
int MOTOR_PIN = 6; | |
IRrecv irrecv(RECV_PIN); | |
decode_results results; | |
const int analogMin = 0; | |
const int analogMax = 255; |
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
/** | |
* Created by ETiV on 4/9/14. | |
*/ | |
var target_pid = 26263; | |
var signals = ['SIGHUP', | |
'SIGINT', | |
'SIGQUIT', | |
'SIGILL', |
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
# nginx version 1.6.0 | |
# http://nginx.org/download/nginx-1.6.0.tar.gz | |
# Install GD Library, GeoIP, SSL-dev | |
# apt-get install -y libgd2-xpm-dev libgeoip-dev libssl-dev | |
./configure --prefix=/srv/nginx --user=www --group=www --with-poll_module --with-file-aio --with-http_ssl_module --with-http_spdy_module --with-http_realip_module \ | |
--with-http_addition_module --with-http_image_filter_module --with-http_geoip_module --with-http_dav_module --with-http_flv_module \ | |
--with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module \ | |
--with-http_secure_link_module --with-mail --with-pcre |
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
// ==UserScript== | |
// @name Direct Links in Google Search | |
// @namespace https://github.com/astanin | |
// @description Remove indirections from Google search results on all TLDs. | |
// @include https://www.google.tld/*output=search* | |
// @include http://www.google.tld/*output=search* | |
// @include https://www.google.tld/search* | |
// @include http://www.google.tld/search* | |
// @include https://www.google.tld/#* | |
// @include http://www.google.tld/#* |
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
// First, setup username and password. | |
// Second, run command `npm link request` to install the depends | |
// Then, setup cronjob for auto checkin everyday. | |
var USERNAME = '_FILL_ME_'; | |
var PASSWORD = '_FILL_ME_'; | |
var request = require('request'); | |
request = request.defaults({ | |
jar: true |
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 parseQueryString(qs) { | |
qs = qs.replace(/\+/g, ' '); | |
var params = {}, tokens, | |
re = /[?&]:?([^=]+)=([^&]*)/g; | |
while (tokens = re.exec(qs)) { | |
// console.log(tokens); | |
params[decodeURIComponent(tokens[1])] | |
= decodeURIComponent(tokens[2]); |
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
/** | |
* Filter | |
*/ | |
module.exports = function() { | |
return new Filter(); | |
}; | |
var Filter = 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
autocmd filetype javascript map <F2> :!node "%:p"<CR> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>GoAgent</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/python</string> |
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
var __callback = function (cb) { | |
if (typeof cb == 'function') { | |
delete arguments['0']; | |
var args = []; | |
for (var key in arguments) { | |
if (arguments.hasOwnProperty(key)) { | |
args.push(arguments[key]); | |
} | |
} | |
cb.apply(null, args); |
OlderNewer