Feature | Divshot | Firebase |
---|---|---|
Global CDN | ✓ | ✓ |
Custom Domains | ✓ | ✓ |
SSL Supported | ✓ | ✓ |
Command-Line Tools | ✓ | ✓ |
Simple Rollback | ✓ | ✓ |
Free w/ Firebase | ✓ |
This file contains 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 Firebase = require('firebase'); | |
var baseRef = new Firebase('https://my-firebase.firebaseio.com'); | |
function getSnapshotValue(snapshot) { | |
return snapshot.val(); | |
} | |
/** | |
* A mixin for components that want to bind the value of a state variable | |
* to the value at a Firebase ref. |
This file contains 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
@implementation InterfaceController | |
{ | |
SRWebSocket *_webSocket; | |
} | |
- (void)awakeWithContext:(id)context { | |
[super awakeWithContext:context]; | |
} | |
- (IBAction)didOpen { |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
- Ensure any install or build dependencies are removed before the end of the layer when doing a
- use the
0b
prefix for binary, and the0o
prefix for octal integer literals Number.isNaN
andNumber.isFinite
are like their global namesakes, except that they don’t coerce the argument to NumberNumber.parseInt
andNumber.parseFloat
are exactly the same as their global namesakes- use
Number.isInteger
to check if the argument is a Number value that doesn’t have a decimal part - use
Number.EPSILON
to check if the difference between two Number values is negligible (e.g. the difference between0.1 + 0.2
and0.3
is negligible) Number.MAX_SAFE_INTEGER
andNumber.MIN_SAFE_INTEGER
are the largest and smallest integers that can be safely and precisely represented in JavaScript- use
Number.isSafeInteger
to check if an integer is within those bounds
This file contains 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 gulp = require('gulp'); | |
var source = require('vinyl-source-stream'); | |
var request = require('request'); | |
var merge = require('merge2'); | |
var concat = require('gulp-concat'); | |
var buffer = require('gulp-buffer'); | |
/** | |
* 1. We request the latest jQuery version from the jQuery CDN. The | |
* request package allows for streaming. What we get in return |
Service Worker - offline support for the web
- Service Worker - Revolution of the Web Platform
- The Service Worker is Coming - Look Busy (vid)
- Service Workers: Dynamic Responsive Images using WebP Images
- Is Service Worker ready?
Progressive apps - high-res icon, splash screen, no URL bar, etc.
This file contains 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 noop = function() { | |
}; | |
export default class ArcadeController { | |
static factory(moveStartCallback, moveCallback, fireCallback, cbContext) { | |
return new Phaser.ArcadeController(this.game, moveStartCallback, moveCallback, fireCallback, cbContext) | |
} | |
constructor(game, moveStartCallback = noop, moveCallback = noop, fireCallback = noop, callbackContext) { | |
game.input.holdRate = 150; | |
game.input.touch.consumeDocumentTouches(); |
This file contains 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
https://news.ycombinator.com/item?id=13889155 | |
7 git rules: | |
1. Separate subject from body with a blank line | |
2. Limit the subject line to 50 characters | |
3. Capitalize the subject line | |
4. Do not end the subject line with a period | |
5. Use the imperative mood in the subject line | |
6. Wrap the body at 72 characters |