Skip to content

Instantly share code, notes, and snippets.

View jermspeaks's full-sized avatar
🐧

Jeremy Wong jermspeaks

🐧
View GitHub Profile
@jermspeaks
jermspeaks / InstantTemplate.tpl
Created August 8, 2014 13:58
Practice Instance I want to play around with Aria Templates
{macro main()}
<h1>Hello Instant Aria Templates</h1>
{/macro}
@jermspeaks
jermspeaks / HOT_nepal.md
Last active August 29, 2015 14:20
Map Notes
var paths = require('./paths');
gulp.task('lint', function() {
gulp.src(paths.app.concat(paths.test))
.pipe(lint());
});
gulp.task('minify', function() {
gulp.src(paths.app)
.pipe(minify());
@jermspeaks
jermspeaks / host.js
Created July 7, 2015 23:26
hosts js file
/**
* Mark attendance activation after email send callback
*/
function toggleEventAttendance() {
$('.email-sent-btn').on('click', function(e) {
e.preventDefault();
console.log(e);
var form = $(e.target.form);
$.ajax({
type: form.attr('method'),
@jermspeaks
jermspeaks / README.md
Last active October 16, 2015 17:16
fun block
@jermspeaks
jermspeaks / reducer_todo.js
Created November 2, 2015 23:29
Todo reducer
import * as types from '../constants/ActionTypes'
const initialState = [
{
text: 'Use Redux',
completed: false,
id: 0
}
]
let bike = {
tires: 2,
pedals: 2,
frame: 52
};
// Change state of tires
bike.tires = 3;
var myObject = {
stuff: ['toys', 'animals']
};
console.log(myObject.stuff) // ['toys', 'animals']
myObject.stuff = ['other toys', 'other animals'];
console.log(myObject.stuff) // ['other toys', 'other animals'];