Skip to content

Instantly share code, notes, and snippets.

View aeischeid's full-sized avatar

Aaron Eischeid aeischeid

View GitHub Profile
@danielgtaylor
danielgtaylor / gist:0b60c2ed1f069f118562
Last active April 2, 2024 20:18
Moving to ES6 from CoffeeScript

Moving to ES6 from CoffeeScript

I fell in love with CoffeeScript a couple of years ago. Javascript has always seemed something of an interesting curiosity to me and I was happy to see the meteoric rise of Node.js, but coming from a background of Python I really preferred a cleaner syntax.

In any fast moving community it is inevitable that things will change, and so today we see a big shift toward ES6, the new version of Javascript. It incorporates a handful of the nicer features from CoffeeScript and is usable today through tools like Babel. Here are some of my thoughts and issues on moving away from CoffeeScript in favor of ES6.

While reading I suggest keeping open a tab to Babel's learning ES6 page. The examples there are great.

Punctuation

Holy punctuation, Batman! Say goodbye to your whitespace and hello to parenthesis, curly braces, and semicolons again. Even with the advanced ES6 syntax you'll find yourself writing a lot more punctuatio

@aeischeid
aeischeid / SpreadsheetBuilder.groovy
Last active August 29, 2015 14:21
Utilize Apache POI to output spreadsheets
package gvl.ss
import org.apache.poi.ss.usermodel.*
import org.apache.poi.hssf.usermodel.*
//import org.apache.poi.xssf.usermodel.*
//import org.apache.poi.POIXMLDocument
class SpreadsheetBuilder {
/* Builds a new .xls file from well formatted data array
@addyosmani
addyosmani / README.md
Last active April 2, 2024 20:18 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@sztupy
sztupy / INSTALL.md
Last active April 4, 2018 07:49 — forked from namuol/INSTALL.md

rage-quit plugin for oh-my-zsh

based on rage-quit support for bash

HOW TO INSTALL

Put the files below inside ~/.oh-my-zsh/custom/plugins/fuck

Also chmod a+x the flip command.

@zohararad
zohararad / zepto.queue.js
Created August 21, 2013 08:31
jQuery queues port to Zepto. Use this to get Spine.js working with Zepto (needs Zepto deferred as well), or queue animations etc. Note that this code is a simple copy and paste of relevant functionality from jQuery 2.0.3
(function($){
// jQuery Data object
var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
rmultiDash = /([A-Z])/g,
expando = "Zepto" + ( '1.0' + Math.random() ).replace( /\D/g, ""),
optionsCache = {},
core_rnotwhite = /\S+/g,
core_deletedIds = [],
core_push = core_deletedIds.push;
@Thibaut
Thibaut / dirty.js.coffee
Created August 28, 2012 07:11
Spine Dirty Plugin
Include =
savePrevious: ->
@constructor.records[@id].previousAttributes = @attributes()
revertChanges: ->
if @previousAttributes