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 cmd = $("#prompt-input"); | |
function newGame(num) { | |
triggerInput(cmd, "clear"); | |
if(num % 6 == 0) num++; | |
triggerInput(cmd, "challenge " + num); | |
} | |
function triggerInput(cmd, str) { | |
cmd.val(str); |
Applicable atleast to Yahoo! Mojito v0.5.3-1.
- Middlewares are declared in the application.json.
- The way the middleware works depends on the file name of the middleware.
- If file name starts with mojito- (e.g:
mojito-logger.js
):- The exported function should return a function, that can be called with express's app.use. For example, you can return
express.logger()
and the framework shall callapp.use(express.logger())
using this return value. - This approach is suitable to use
app.use
, since the express's app is not exposed in the Mojito framework. - The configuration received by this function is of form: `{ Y: Y, store: store,
- The exported function should return a function, that can be called with express's app.use. For example, you can return
- Celery Messaging at Scale at Instagram - May, 2013
Install Software Updates
Install Xcode Developer Tools
Install nvm (Node Version Manager)
Install node.js
Install GitHub for Mac + SourceTree
[Responsivator] (http://dfcb.github.com/Responsivator/) - An app for testing a website on various screen resolutions
ajaxload.info - Ajax loading GIF generator
lorempixel - Placeholder Images
pic resize - Image Resizer
Premailer - Pre-flight for HTML email
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
/** | |
* @constructor | |
*/ | |
function Profiler() { | |
} | |
/** | |
* Uses the best resolution timer that is currently available. | |
* The return value of this can only be used for measuring the time interval, |
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
// Based upon https://gist.github.com/1393666 | |
var querystring = require('querystring'), | |
url = require('url'), | |
http = require('http'); | |
/** | |
* @param {string} reqUrl The complete URL to send the request to | |
* @param {Object} options options of the request | |
* @param {Function} cb Callback function that is to be called with response / errors |
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
import sys | |
import re | |
import dns.resolver # Requires dnspython | |
email_host_regex = re.compile(".*@(.*)$") | |
gmail_servers_regex = re.compile("(.google.com.|.googlemail.com.)$", re.IGNORECASE) | |
def is_gmail(email): | |
""" Returns True if the supplied Email address is a @gmail.com Email or is a Google Apps for your domain - hosted Gmail address | |
Checks are performed by checking the DNS MX records """ |
NewerOlder