Skip to content

Instantly share code, notes, and snippets.

@mschmulen
mschmulen / index.html
Created September 28, 2013 11:23
Clock
// Generated by CoffeeScript 1.3.3
(function() {
var clockGroup, fields, height, offSetX, offSetY, pi, render, scaleHours, scaleMins, scaleSecs, vis, width;
fields = function() {
var currentTime, data, hour, minute, second;
currentTime = new Date();
second = currentTime.getSeconds();
minute = currentTime.getMinutes();
hour = currentTime.getHours() + minute / 60;
@mschmulen
mschmulen / data.tsv
Last active December 24, 2015 03:59
Bar chart simple
letter frequency
A .08167
B .01492
C .02780
D .04253
E .12702
F .02288
G .02022
H .06094
I .06973
@mschmulen
mschmulen / README.md
Created September 28, 2013 10:08
Playground

#Playground

...that is all

@mschmulen
mschmulen / README.md
Created September 28, 2013 09:45
StrongLoop StrongNode

#StrongLoop StrongNode

@mschmulen
mschmulen / README.md
Last active August 23, 2022 22:42 — forked from anonymous/README.md
LoopBack cheat sheet. git clone https://gist.github.com/6740321.git LoopBackCheatSheet

#LoopBack cheat sheet

##Recipies

LoopBack from api-example

Instantiate the sls-sample-app

slc example
cd sls-sample-app
slc install
@mschmulen
mschmulen / gist:6042320
Created July 19, 2013 21:03
nodeapps.js
var data = [
{
"id": 1,
"title": 'LinkedIn',
"url_scheme": 'linkedin:',
"appID": '288429040',
"appName": 'LinkedIn App',
"appPublisher": '6 Wunderkinder',
"category": 'Productivity',
"isPublic": true,
var bgColor = 'EBEBEB';
var btnColor = '#9a0707';
var createAboutWindow = function(app) {
var win = Ti.UI.createWindow({
title: 'About',
layout: 'vertical',
backgroundColor: bgColor
});
var defaultColorBlue = '#035385';
var defaultColorRed = '#9a0707';
var rowColor = '#EBEBEB';
var selectedRowColor = '#4B4B4B';
var backgroundColor = '#4B4B4B';
var defaultColor = defaultColorRed;
function ApplicationWindow(title) {
(function (strongloop) {
strongloop.dataCache = [{
title: 'Loopers App',
url: 'appDetail.js',
url_scheme: 'nbcipad',
hasChild: true,
appID: '284910350',
@mschmulen
mschmulen / ApplicationTabGroup.js
Created June 10, 2013 20:36
StrongLoop AppStore
function ApplicationTabGroup(Window) {
//Require our new windows
WindowAppListingNodeApps = require('ui/handheld/WindowAppListingNodeApps');
WindowHome = require('ui/handheld/WindowAppHome');
//create module instance
var self = Ti.UI.createTabGroup();