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
#!/usr/bin/env node | |
var http = require('http'); | |
http.get({ | |
hostname: 'www.spamhaus.org', | |
port: 80, | |
path: '/drop/drop.lasso' | |
}, function (res) { | |
if (res.statusCode !== 200) { | |
console.error('Failed to download http://www.spamhaus.org/drop/drop.lasso'); | |
process.exit(1); |
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
Say you are editing an HTML file. | |
In Coda 2, if you type "<style>" and ENTER, the cursor lines up with the "<". If you type "foo {" and hit ENTER, the cursor lines up with "f". | |
In Coda 2.5, if you type "<style>" and ENTER, the cursor is tabbed in 1 level from the "<". Generally this is what you want. If you type "foo {" and hit ENTER, the cursor again is tabbed in 1 level from the "foo". The biggest annoyance is if I type "}", it doesn't automatically outdent. |
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
/* Put this file in <product dir>/plugins/appid/hooks/ | |
* then add this to your tiapp.xml: | |
* <plugins> | |
* <plugin>appid</plugin> | |
* </plugins> | |
*/ | |
exports.cliVersion = '>=3.2.1'; | |
exports.init = function (logger, config, cli, appc) { |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe] | |
"QuickEdit"=dword:00000001 | |
"ScreenBufferSize"=dword:270f0082 | |
"WindowSize"=dword:002e0082 | |
"FontSize"=dword:000e0007 | |
"FontFamily"=dword:00000036 | |
"FontWeight"=dword:00000190 | |
"FaceName"="Consolas" |
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
// ==UserScript== | |
// @name GitHub Widescreen | |
// @namespace https://github.com | |
// @include https://github.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var style = document.createElement("style"); | |
style.type = "text/css"; | |
style.innerHTML = "\ |
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
[sudo] npm install -g titanium | |
titanium sdk install --branch 3_0_X --default |
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
make -C out BUILDTYPE=Release V=1 | |
make[1]: Entering directory `/home/chris/Downloads/node-v0.8.6/out' | |
make[1]: Nothing to be done for `all'. | |
make[1]: Leaving directory `/home/chris/Downloads/node-v0.8.6/out' | |
ln -fs out/Release/node node | |
python tools/install.py install | |
installing /usr/local/include/node/ares.h | |
installing /usr/local/include/node/ares_version.h | |
installing /usr/local/include/node/uv.h | |
installing /usr/local/include/node/v8-debug.h |
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
var values = {bottom:1,height:1,left:1,right:1,top:1,width:1}; | |
if (values["width"]) { | |
// win | |
} |
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
var values = {bottom:1,height:1,left:1,right:1,top:1,width:1}; | |
if (values.hasOwnProperty("width")) { | |
// win | |
} |
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
var values = {bottom:1,height:1,left:1,right:1,top:1,width:1}; | |
if ("width" in values) { | |
// win | |
} |