Skip to content

Instantly share code, notes, and snippets.

View jcreamer898's full-sized avatar
🏠
Working from home

Jonathan Creamer jcreamer898

🏠
Working from home
View GitHub Profile
@michaelfairley
michaelfairley / bowling.erl
Last active December 20, 2015 03:29
Erlang bowling kata
-module(bowling).
-export([main/1]).
main(_) ->
test().
test() ->
% empty
[] = score([]),
% boring
@willurd
willurd / Getting started with requirejs.md
Last active December 14, 2022 08:15
A short introduction to require.js

This is a small collection of scripts showing how to use require.js. It's only one of several ways of setting up a require.js project, but it's enough to get started.

At its core, require.js is about three things:

  1. Dependency management
  2. Modularity
  3. Dynamic script loading

The following files show how these are achieved.

@afeld
afeld / gist:5704079
Last active November 27, 2023 15:43
Using Rails+Bower on Heroku
@jakerella
jakerella / alexa.md
Last active March 11, 2023 15:41
Speaking bio and abstracts for submission to conferences, user groups, etc.

Alexa, build me an app

Building an Amazon Echo (Alexa) skill is extremely simple, if a bit cumbersome. If you're not familiar, the Echo is an always-on home automation unit with built-in support for things like playing streaming music, getting weather information, and even turning on your wifi-connected lights. Amazon also allows developers to extend the Echo's functionality with custom "skills". These skills get the benefit of Amazon's full speech analysis engine and works through a simple JSON web API. In this talk we'll cover how we can use Node.js to write a simple skill and what else we need to do to get up and running. You'll learn how to test your new skill with a real voice interface and the basics of the cumbersome setup process on Amazon's developer portal along with some best practices. You don't need to own an Echo to write a skill... although they sure are fun to play with!

300 Characters

Building an Amazon Echo (Alexa) skill is extremely simple, if a bit cumbersome. Skills get the benef

@elijahmanor
elijahmanor / images.md
Created January 18, 2013 20:54
Random Images

Animated Gifs

@cowboy
cowboy / call-invo-cursion.js
Last active March 30, 2023 01:59
JavaScript: call invo-cursion?
// OOP
console.log( 'OHAI'.blink() );
// Call invocation
console.log( String.prototype.blink.call('OHAI') );
// $ always makes things look awesome.
var $ = Function.prototype.call;
// Very explicit call invocation
@domenic
domenic / promises.md
Last active March 31, 2024 14:07
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.
@eliperelman
eliperelman / laws.md
Last active August 2, 2016 05:48
appendTo Laws of Skype

Whitbeck’s Law

If it exists, there is a GIF of it.

Manor’s Law

For every message there is an equal and opposite deletion.

Cowart’s Law

All great messages will be deleted before you have a chance to read them.

Neiner’s Law

@guerrerocarlos
guerrerocarlos / main.js
Created September 6, 2012 05:07
loading socket.io using require.js
// Require.js allows us to configure shortcut alias
require.config({
// The shim config allows us to configure dependencies for
// scripts that do not call define() to register a module
shim: {
'socketio': {
exports: 'io'
},
'underscore': {
exports: '_'
@elijahmanor
elijahmanor / console.js
Created August 24, 2012 03:27
Custom JSBin Settings
jsbin.settings.editor.theme = "monokai";
jsbin.settings.editor.indentUnit = 4;
jsbin.settings.editor.smartIndent = true;
jsbin.settings.editor.tabSize = 4;
jsbin.settings.editor.indentWithTabs = true;
jsbin.settings.editor.autoClearEmptyLines = true;
jsbin.settings.editor.lineWrapping = true;
jsbin.settings.editor.lineNumbers = true;
jsbin.settings.editor.matchBrackets = true;