@ Netscape in 1995 to parody VB
Codename called Mocha, later LiveScript in Navigator 2.0 Beta
- Everything You Never Wanted To Know About JavaScript Numbers
- object like (has methods)
var Hapi = require('hapi'), | |
server = new Hapi.Server(3001); | |
server.route({ | |
path: '/{name?}', | |
method: 'GET', | |
handler: function (req, rep) { | |
rep({ | |
greeting: 'Hello, ', |
.marquee { | |
white-space: nowrap; | |
overflow: hidden; | |
background: purple; | |
color: white; | |
padding: 6px 0; | |
} | |
.marquee > .message { | |
position: relative; | |
} |
.marquee { | |
width: 80%; | |
overflow: hidden; | |
} | |
.message { | |
white-space: nowrap; | |
position: relative; | |
} | |
@ Netscape in 1995 to parody VB
Codename called Mocha, later LiveScript in Navigator 2.0 Beta
###To mount an SSHFS drive:###
Install from osxfuse.github.io
$ sshfs -p 22 <user>@<host>:/path/to/directory/to/mount ~/Desktop/<mount_directory> -oauto_cache,reconnect,noappledouble,negative_vncache,volname=<volume_name>
###If the mount disconnects due to network failure (or something else), fix it by:###
http://wiki.ecmascript.org/doku.php?id=globalization:messageformatting
['Some text before', {
type: 'plural', // can be plural or gender/select
valueName: 'numPeople', // placeholder for switch value
offset: 1, // optional for plural, invalid for select
one: 'Some message ${ph} with ${#} value', // no gender specific msg necessary
few: [ 'Optional prefix text for |few|', {
type: 'select',
function removeMismatch (objA, objB) { | |
var key, val; | |
for (key in objA) { | |
val = objA[key]; | |
if (!objB[key] || typeof objA[key] !== typeof objB[key]) { | |
delete objA[key]; | |
} else { | |
if (typeof objA[key] === 'object') { |
function HideShow () {}; | |
HideShow.ATTRS = { | |
styleSheet: { | |
valueFn: '_styleSheetValFn' | |
} | |
}; | |
Y.mix(HideShow.prototype, { |
datatable/ | |
| | |
+- assets/ | |
+- docs/ | |
+- js/ | |
| | | |
| +- helpers/ | |
| | | | |
| | +- formatters.js | |
| | |
spinner = { | |
fn: function () { | |
var char = spinner.chars.shift(); | |
process.stdout.write('\x1B[s' + char + '\x1B[u'); | |
spinner.chars.push(char); | |
}, | |
chars: ['—', '\\', '|', '/'], |