JavaScript Code
var str = "hi";Memory allocation:
| Address | Value | Description |
|---|---|---|
...... |
... |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: | | |
| AWS CloudFormation template for Mock WebSocket API Gateway. When deploying this stack please remember to check the option: | |
| - I acknowledge that AWS CloudFormation might create IAM resources. | |
| This template can help you to solve issues like: | |
| - CloudWatch Logs role ARN must be set in account settings to enable logging | |
| - Execution failed due to configuration error: statusCode should be an integer which defined in request template | |
| - This custom domain name cannot map to WEBSOCKET protocol APIs | |
| - Error during WebSocket handshake: Unexpected response code: 500 |
| /** | |
| * Classes and Inheritance | |
| * Code Example from http://www.es6fiddle.net/ | |
| */ | |
| class Polygon { | |
| constructor(height, width) { //class constructor | |
| this.name = 'Polygon'; | |
| this.height = height; | |
| this.width = width; | |
| } |
| /* | |
| From https://github.com/gulpjs/gulp/issues/101. Organize gulpfile.js using concept of environment variables. | |
| 1. Set up sub-tasks to behave in a certain according to env var; may be env agnostic. | |
| 2. Set up high-level tasks to run a group of sub-tasks to orchestrate a behaviour (testing, staging, prod, etc) | |
| */ | |
| var R = 0; | |
| var ENV_SWITCH = void 0; |
JavaScript Code
var str = "hi";Memory allocation:
| Address | Value | Description |
|---|---|---|
...... |
... |
| /** | |
| * CSS Dot Leaders With Textured Background | |
| */ | |
| html { | |
| background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%; | |
| font: 20px/1.4 Helvetica, Arial sans-serif | |
| } |
Ever had the need to create a branch in a repo on Github without wanting (or being able) to access a local repo?
With the aid of [the Github API][1] and any online request app this is a piece of cake!
Just follow these steps:
https://api.github.com/repos/<AUTHOR>/<REPO>/git/refs/headshttps://api.github.com/repos/<AUTHOR>/<REPO>/git/refs with the following as the POST body :| /* ============================================================================= | |
| CSS Declarations | |
| ========================================================================== */ | |
| /* ==|== The Standard Way =================================================== */ | |
| .foo::before { | |
| /* ...css rules... */ | |
| } |
| $.ui.dialog.prototype._makeDraggable = function() { | |
| this.uiDialog.draggable({ | |
| containment: false, | |
| handle: '.ui-dialog-titlebar' | |
| }); | |
| }; |
| /* | |
| * jQuery Table Striping - v0.1 - 05/12/2011 | |
| * http://corydorning.com, http://justinrains.com | |
| * | |
| * Dual licensed under 'Use it like you stole it' | |
| * and 'We Don't Care'. | |
| * | |
| * Description: Stripe table rows easily by calling 'stripeRows' | |
| * on any collection of <tr> elements and passing in the desired | |
| * colors. |
| /* | |
| usage: | |
| $.bind('customEvt', function( event ){ | |
| console.log( event ); | |
| }); | |
| $.trigger('customEvt'); | |
| */ |