Skip to content

Instantly share code, notes, and snippets.

View adamellsworth's full-sized avatar
🖖

Adam adamellsworth

🖖
View GitHub Profile
@adamellsworth
adamellsworth / atom-snippets.cson
Last active November 6, 2017 20:21
Collection of my commonly used snippets in Atom
'.source.js*':
'Module Exports':
'prefix': 'mx'
'body': '''
module.exports = ${1};
'''
'Export Default':
'prefix': 'ed'
'body': '''
@adamellsworth
adamellsworth / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
var question = new Array(),
answer = new Array();
/*
Push the questions and answers into their respective arrays
by checking if the 'i' index is odd or even as the matrix only has two fields.
*/
$('#faq-container table.matrix tbody tr td').find('textarea').each(function(i) {
if (!(i % 2)) {
question.push($(this).val());