program = statement+
statement = expression | if_statement
if_statement = 'if' '(' expression ')' { statement+ }
expression = number (+ expression)*
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
(function(global, history, g, m, basePath, thresholds, delegate) { | |
var __GUESS__ = | |
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache |
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
const { readFileSync, writeFileSync } = require('fs'); | |
const re = /\[.*?\](\(.*?\))/g | |
const addFootnotes = (path, output, ignoreRegExps = []) => { | |
let text = readFileSync(path).toString(); | |
let match; | |
let current = 1; | |
const matches = []; |
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://stackblitz.com/edit/angular-rqhkxt?file=app%2Fapp.component.ts |
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
{ | |
"title": "Accessories", | |
"url": "https://www.amazon.com/s/ref=lp_502394_nr_n_0?fst=as%3Aoff&rh=n%3A172282%2Cn%3A%21493964%2Cn%3A502394%2Cn%3A172435&bbn=502394&ie=UTF8&qid=1497468310&rnid=502394", | |
"subCategories": [ | |
{ | |
"title": "Accessory Bundles", | |
"url": "https://www.amazon.com/s/ref=lp_172435_nr_n_0/144-8642642-1755349?fst=as%3Aoff&rh=n%3A172282%2Cn%3A%21493964%2Cn%3A502394%2Cn%3A172435%2Cn%3A7242007011&bbn=172435&ie=UTF8&qid=1497479054&rnid=172435", | |
"products": [ | |
{ | |
"title": "58MM Professional Lens Filter Accessory Kit (Vivitar Filter Kit (UV, CPL, FLD) + Carry Pouch + Tulip Lens Hood + Snap-On Lens Cap w/ Cap Keeper Leash + MagicFiber Microfiber Lens Cleaning Cloth)", |
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 { appendFileSync } from 'fs'; | |
import { join } from 'path'; | |
import * as utils from 'gulp-util'; | |
import * as Builder from 'systemjs-builder'; | |
import Config from '../../config'; | |
const BUNDLER_OPTIONS = { | |
format: 'cjs', | |
minify: true, |
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
/* tslint:disable */ | |
const program = | |
` | |
module "login" | |
go to "app/login" | |
fill "[email protected]" in "#username" | |
fill "foobar" in "#password" | |
click "#login" |
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
//------------------------------------------------------------- | |
// | |
// Hypothesis: | |
// | |
// Promises/A is a Monad | |
// | |
// To be a Monad, it must provide at least: | |
// - A unit (aka return or mreturn) operation that creates a corresponding | |
// monadic value from a non-monadic value. | |
// - A bind operation that applies a function to a monadic value |
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
(defn qs [lst] | |
(let [[head & tail] lst] | |
(if (>= 1 (count lst)) | |
lst | |
(flatten [(qs (for [x tail :when (<= x head)] x)) head (qs (for [x tail :when (> x head)] x))])))) |
Most active GitHub users (git.io/top)
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Tue, 11 Mar 2014 00:00:46 GMT till Wed, 11 Mar 2015 00:00:46 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter((user) -> user.followers > 373)