A Pen by Alan R. Soares on CodePen.
This file contains hidden or 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
#!/usr/bin/env node | |
(function() { | |
'use strict'; | |
var _ = require('lodash'); | |
var Questions = (function() { | |
var low = require('lowdb'); | |
var db = low('db.json'); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://static.jsbin.com/js/vendor/traceur.js"></script> | |
<meta charset="utf-8" | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
Simple implementation of Conway's Game of Life in AngularJs. http://en.wikipedia.org/wiki/Conway's_Game_of_Life
github.com/alanrsoares
A Pen by Alan R. Soares on CodePen.
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="test-out"></div> | |
<script id="jsbin-javascript"> | |
/* |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
var ofType, fib, assertEqual; |
This file contains hidden or 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
'use strict'; | |
const lowdb = require('lowdb'); | |
const storage = require('lowdb/file-sync'); | |
const db = lowdb(`${ __dirname }/db.json`, { storage }); | |
const COLLECTION_ID = 'cache'; | |
const ONE_HOUR = 3600; | |
const isValidCacheKey = (key, ttl) => |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Config Github Settings | |
github_username = "fideloper" | |
github_repo = "Vaprobash" | |
github_branch = "1.4.2" | |
github_url = "https://raw.githubusercontent.com/#{github_username}/#{github_repo}/#{github_branch}" | |
# Because this:https://developer.github.com/changes/2014-12-08-removing-authorizations-token/ |
This file contains hidden or 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
/* | |
A Tiny Lisp Arithmetic Parser | |
---------------------------------- | |
Built with <3 by @alanrsoares | |
*/ | |
// functional helpers | |
const apply = f => (...xs) => xs.reverse().reduceRight(f) | |
const compose = (...fs) => (...args) => | |
(([g, ...gs]) => |
This file contains hidden or 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
// Practical Application of a Symbol.iterator | |
// to build a Lazy Sequence | |
const asc = xs => xs.sort((a, b) => a - b) | |
class Range { | |
constructor(to, from = 0, step = 1) { | |
this.step = step | |
if (typeof to === 'undefined' || to === null) { |
OlderNewer