Given
var countries = [
{
country: "Canada",
capital: {
name: "Ottawa",
population: 883391
}
},
/** | |
* You might want to change baseUrl to something else depending on where your require.js is. | |
* If you want to do conditional loading of Zepto, take a look at the discussion at | |
* https://groups.google.com/forum/?fromgroups=#!topic/requirejs/68oIXcyou48 | |
* Had to add explicit paths for each plugin, otherwise `require` tries to look for it in | |
* /foundation/foundation/foundation.alerts.js | |
*/ | |
require.config({ | |
baseUrl: "js", |
/** | |
* A shamefully unintuitive/unreadable/unmaintainable but fun solution to this problem...or is it? | |
* http://stackoverflow.com/questions/17334688/how-can-i-abstract-generalize-functions-that-perform-similar-but-just-slightly/17335053?noredirect=1#17335053 | |
*/ | |
json = [ | |
{target: '.FFEC-Display', title : 'h3', actions : [{action: 'find', target: '.movie-link'}, 'prepend']}, | |
{target: '.MovieItemsRotator .item', title: '.Title', actions: ['prepend']} | |
]; |
Given
var countries = [
{
country: "Canada",
capital: {
name: "Ottawa",
population: 883391
}
},
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
var fields = {}; | |
[].slice.call($$('input[id^="entry_"]')).forEach(function (el) { | |
var name = el.getAttribute('name'); | |
var label = el.getAttribute('aria-label').trim(); | |
fields[label] = name; | |
}); | |
console.log(JSON.stringify(fields)); |
// ==UserScript== | |
// @name Monster Minigame Auto-script | |
// @namespace https://github.com/wchill/steamSummerMinigame | |
// @description A script that runs the Steam Monster Minigame for you. Modified from mouseas's original version to include autoclick. | |
// @version 1.0 | |
// @match http://steamcommunity.com/minigame/towerattack* | |
// @updateURL https://raw.githubusercontent.com/wchill/steamSummerMinigame/master/autoPlay.js | |
// @downloadURL https://raw.githubusercontent.com/wchill/steamSummerMinigame/master/autoPlay.js | |
// ==/UserScript== |
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var RouteRecognizer = require('route-recognizer'); | |
var router = new RouteRecognizer(); | |
var handler = function () { | |
}; |
import exec from 'promised-exec'; | |
import chalk from 'chalk'; | |
import {argv} from 'yargs'; | |
import rimraf from 'rimraf'; | |
import buildConfig from './build-config.js'; | |
const error = chalk.red; | |
const ok = chalk.green; | |
const yellow = chalk.yellow; |
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
The Swagger specification is licensed under The Apache License, Version 2.0.