A Pen by Anthony Pipkin on CodePen.
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
| YUI.add('couch-base', function(Y) { | |
| var LANG = Y.Lang, | |
| IS_BOOLEAN = LANG.isBoolean, | |
| IS_STRING = LANG.isString, | |
| IS_NUMBER = LANG.isNumber, | |
| IS_OBJECT = LANG.isObject, | |
| DATA_SOURCE = 'dataSource', | |
| EVENT_ERROR = 'couch:error', |
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 BASE_URL = '/', | |
| BASE_IO = { | |
| uri : null, | |
| json : null, | |
| on : { | |
| success : function(id,o,args){ alert('id : ' + id + "\n\no: " + o + "\n\nargs: " + args);}, | |
| failure : function(args){alert("Fail!\n\nargs: " + args);} | |
| } | |
| }, | |
| GALLERY_OVERLAY_MODAL = { |
###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:###
@ 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)
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 bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # git hook to run a command after `git pull` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" |
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',
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 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') { |
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 HideShow () {}; | |
| HideShow.ATTRS = { | |
| styleSheet: { | |
| valueFn: '_styleSheetValFn' | |
| } | |
| }; | |
| Y.mix(HideShow.prototype, { |
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
| datatable/ | |
| | | |
| +- assets/ | |
| +- docs/ | |
| +- js/ | |
| | | | |
| | +- helpers/ | |
| | | | | |
| | | +- formatters.js | |
| | | |
NewerOlder