For Mac and Windows users, just install Docker Toolbox. It provides what you need to get started, including:
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
| #!/bin/sh | |
| #--------------------------------- | |
| # nodesupervisor Start/Stop Script | |
| #--------------------------------- | |
| #--------------------------------- | |
| # chkconfig: 2345 99 99 | |
| # description: NodeJS Supervisor | |
| # -------------------------------- |
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.js CheatSheet. | |
| // Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
| // Download: http://nodejs.org/download/ | |
| // More: http://nodejs.org/api/all.html | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
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://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |
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
| mixOf = (base, mixins...) -> | |
| class Mixed extends base | |
| for mixin in mixins by -1 | |
| for name, method of mixin:: | |
| Mixed::[name] = method | |
| Mixed | |
| ... | |
| class A extends mixOf Foo, Bar |
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
| class EventEmitter | |
| constructor: -> | |
| @events = {} | |
| emit: (event, args...) -> | |
| return false unless @events[event] | |
| listener args... for listener in @events[event] | |
| return true | |
| addListener: (event, listener) -> |
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($) { | |
| $(document).ready(function(){ | |
| $('#next').click(function(){ | |
| $.post( | |
| PT_Ajax.ajaxurl, | |
| { | |
| // wp ajax action | |
| action : 'ajax-inputtitleSubmit', | |
| // vars |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| curl -SsL https://registry.npmjs.org/npm/-/npm-5.0.2.tgz | tar -xzf - | |
| cd package | |
| make install |
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
| <?xml version="1.0"?> | |
| <ruleset name="MyStandard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> | |
| <description>WordPress code standard with 2-space indent.</description> | |
| <rule ref="WordPress"> | |
| <exclude name="Generic.WhiteSpace.DisallowSpaceIndent" /> | |
| <exclude name="PEAR.Functions.FunctionCallSignature.Indent"/> | |
| <exclude name="WordPress.Arrays.ArrayIndentation"/> | |
| <exclude name="WordPress.WhiteSpace.PrecisionAlignment"/> | |
| </rule> | |
| <rule ref="Generic.WhiteSpace.DisallowTabIndent" /> |
OlderNewer