Skip to content

Instantly share code, notes, and snippets.

View iCodeForBananas's full-sized avatar

Michael Calkins iCodeForBananas

  • AWS
  • Seattle, WA
View GitHub Profile
module.exports = ->
function init() {
}
init()
<template>
<div class="left-sidebar">
<ul class="nav nav-sidebar">
<li
v-bind:class="{ active: currentHtmlObject && htmlObject.id == currentHtmlObject.id }"
track-by="$index"
v-for="htmlObject in htmlObjects"
v-on:click="setCurrentHtmlObject(htmlObject)">
<a>Rectangle {{ htmlObject.id }}</a>
</li>
@iCodeForBananas
iCodeForBananas / The Man In The Arena.md
Created January 24, 2016 00:18
The Man In The Arena - Excerpt from the speech "Citizenship In A Republic" delivered at the Sorbonne, in Paris, France on 23 April, 1910

It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better.

The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming; but who does actually strive to do the deeds; who knows great enthusiasms, the great devotions; who spends himself in a worthy cause; who at the best knows in the end the triumph of high achievement, and who at the worst, if he fails, at least fails while daring greatly, so that his place shall never be with those cold and timid souls who neither know victory nor defeat.

'use strict'
const electron = require('electron')
const updater = require('electron-updater')
// Module to control application life.
const app = electron.app
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow
[01/02/2016:09:05:24:534:log:05133] Checking validity.
[01/02/2016:09:05:24:560:log:05133] dependency check: [ { name: 'angular',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular',
current: '1.4.9',
desired: '^1.4.8',
valid: true },
{ name: 'angular-elastic',
dir: '/Applications/CodeSketcher (Alpha).app/Contents/Resources/app/node_modules/angular-elastic',
current: '2.5.1',
desired: '^2.5.1',
'use strict'
module.exports = angular.module('musicbed.checkout', [])
# Controllers
.controller 'checkout.existingLicense.ctrl', require('./controllers/checkout.existingLicense.ctrl.coffee')
# Factories
.factory 'Checkout.Steps.Factory', require('./factories/checkout.steps.factory.coffee')
.factory 'Checkout.Questions.Factory', require('./factories/checkout.questions.factory.coffee')
@iCodeForBananas
iCodeForBananas / updater.js
Created February 4, 2016 04:00
Electron updater experiment
'use strict'
var http = require('http')
var fs = require('fs')
var wrench = require('wrench')
var targz = require('tar.gz')
/*
1. Check the manifest for version (from your running "old" app).
let components = require('components')
let app = new App({
routes: {
'/': components.home
},
'about': {
component: components.home
},
'users/:id': {
component: components.users.find
class FeaturesSection {
constructor() {
this.features = [
{
name: 'Feature 1',
description: 'Description 1',
image: '/path/to/img1'
},
{
name: 'Feature 2',
function m {
echo "Select an option:"
echo "1) Musicbed"
echo "2) Filmsupply"
echo "3) Ranger Steve"
echo "4) Empty Trash"
echo "[ENTER] to cancel"
read user_input