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! Test() | |
endfunction | |
unmap <S-J> | |
nnoremap <S-J> :silent call Test()<cr> |
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
let s:plugin_root_dir = expand("<sfile>:h") | |
function JsBeautifySimple () range | |
let s:plugin_lib_dir = s:plugin_root_dir . "/lib/" | |
if exists("g:JsBeautifySimple_engine") | |
let s:engine = g:JsBeautifySimple_engine | |
else | |
let s:engine = "node" | |
endif |
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
~|⇒ node | |
> var net = require ('net'); | |
undefined | |
> var socket = net.createConnection(8888, 'localhost', function () { socket.write ('hello', 'ascii') }); | |
undefined | |
> socket.setEncoding('utf8'); | |
undefined | |
> socket.setEncoding('utf-8'); | |
undefined | |
> socket.setEncoding('utf-asdqa8'); |
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 http = require('http'); | |
var httpProxy = require('http-proxy'); | |
var proxyOptions = { | |
pathnameOnly: true, | |
router: { | |
'/app': 'localhost:3000', | |
'/accounts': 'localhost:8001' | |
} | |
} |
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
http-proxy|⇒ curl -I http://localhost:3001/app | |
HTTP/1.1 500 Internal Server Error | |
Content-Type: text/plain | |
Date: Mon, 18 Mar 2013 21:51:13 GMT | |
Connection: keep-alive | |
http-proxy|⇒ curl -I http://localhost:3001/not-a-route | |
HTTP/1.1 404 Not Found | |
Date: Mon, 18 Mar 2013 21:51:16 GMT | |
Connection: keep-alive |
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
/tmp/redstone.js|29 warning| missing semicolon | |
/tmp/redstone.js|33 warning| comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==) | |
/tmp/redstone.js|60 warning| missing semicolon | |
/tmp/redstone.js|61 warning| comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==) | |
/tmp/redstone.js|62 warning| comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==) | |
/tmp/redstone.js|63 warning| comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==) | |
/tmp/redstone.js|69 warning| redeclaration of var more | |
/tmp/redstone.js|69 warning| comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==) | |
/tmp/redstone.js|80 warning| missing semicolon | |
/tmp/redstone.js|114 warning| missing semicolon |
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
In my comments I have this: | |
// TODO: I found it hard to find tutorials or guides for how to use superagent | |
// session cookies with socket.io. This is required because session data is | |
// retrieved even on socket.io requests (due to session.socket.io). If I get | |
// this working, I ought to write it up publicly. | |
I would like to be able to select the text, format paragraph using gq, and get this: | |
// TODO: I found it hard to find tutorials or guides for how to use superagent | |
// session cookies with socket.io. This is required because session data is | |
// retrieved even on socket.io requests (due to session.socket.io). If I get |
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
<VirtualHost *> | |
ServerName www.multiplayergorillas.com | |
ServerAlias multiplayergorillas.com | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
ProxyPass /socket.io/1/websocket ws://localhost:3000/socket.io/1/websocket |
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 Socketio = require('socket.io'), | |
http = require('http'); | |
var port = 3000; | |
// Create the HTTP server. | |
var server = http.createServer().listen(port, function() { | |
console.log("HTTP server listening on port %d.", port); | |
}); |
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
a, p { | |
white-space: pre; /* CSS 2.0 */ | |
white-space: pre-wrap; /* CSS 2.1 */ | |
white-space: pre-line; /* CSS 3.0 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
white-space: -moz-pre-wrap; /* Mozilla */ | |
white-space: -hp-pre-wrap; /* HP Printers */ | |
word-wrap: break-word; /* IE 5+ */ | |
} |
OlderNewer