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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
$.get(URI) | |
.done(function(data) { | |
console.log(data) | |
}) | |
.fail(function() { | |
console.log('Failure!') | |
}) | |
.always(function() { | |
console.log('They do it all the time. Yeah, yeah.') | |
}) |
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
This README outlines the details of collaborating on this Ember application. | |
A short introduction of this app could easily go here. | |
## Prerequisites | |
You will need the following things properly installed on your computer. | |
* [Git](http://git-scm.com/) | |
* [Node.js](http://nodejs.org/) (with NPM) and [Bower](http://bower.io/) |
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
#!/bin/bash | |
echo 'Are you sure you want to do this? (y)' | |
read RESPONSE | |
if [ "$RESPONSE" == "y" ]; then | |
cd ~/dev | |
echo 'Name your project (no-spaces-please)': | |
read NAME |
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(){ | |
// Put all yor code here. This will run only after the DOM is ready. | |
}) |
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 express = require('express'); | |
var router = express.Router(); | |
router.get('/', function(req, res) { | |
res.send('READ all items'); | |
}); | |
router.post('/new', function(req, res) { | |
var data = req.body | |
var response = '' |
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
HTML_SRC=src/index.html | |
ELM_SRC=src/Main.elm | |
DIST=public | |
RIGHT_NOW=$(shell date "+%B %d, %Y at %H:%M:%S") | |
TIMESTAMP="<!-- Created at $(RIGHT_NOW) -->\n" | |
all: public index.html main.js | |
public: | |
@ mkdir $(DIST) |
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
<html> | |
<body> | |
<div id="smiley" style="position: absolute;">😌</div> | |
<script> | |
const {requestAnimationFrame} = window | |
let i = 0 | |
const smiley = document.querySelector('#smiley') |
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
Refund form | |
Selecting refund method | |
select cash -> No reminder | |
select credit -> Credit card | |
select donation -> Donation | |
Cash | |
select reminder -> Reminder | |
Reminder | |
No reminder | |
Credit card |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
OlderNewer