Skip to content

Instantly share code, notes, and snippets.

View dwolner's full-sized avatar

Daniel Wolner dwolner

View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
{
productID: 21803,
productTitle: 'Sign It!',
blurb: '....',
description: '...',
content: {
component: 'Menu',
title: 'Sign It!',
slug: 'signit',
backgroundColor: '#eee',
[{
"unitNumber": 1,
"unitName": "All About Me",
"status": "next",
"unitContent": [{
"lessonName": "Introductions",
"status": "next",
"lessonContent": [{
"type": "movie",
"title": "Describing Family, Job, and Schooling",
@dwolner
dwolner / encryptMedia.js
Last active March 9, 2017 11:58
function in cordova to encrypt media with custom plugin
function initFS() {
//init and maintain fs, look into removing
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fs) {
appFileSystem = fs;
fs.root.getDirectory("Wanagogo", {create: true, exclusive: false}, function(dirEntry) {
mainAppDir = dirEntry
k('defining main app dir', dirEntry)
//look at downloads
mainAppDir.getDirectory("downloads", {create: true, exclusive: false}, function(dirEntry) {
@dwolner
dwolner / 0_reuse_code.js
Last active August 29, 2015 14:07
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