Skip to content

Instantly share code, notes, and snippets.

@adamalex
adamalex / Procfile
Created July 29, 2013 01:02
Deploying to Stackato using Heroku's Node buildpack
web: node app.js
@adamalex
adamalex / docker-strongloop.sh
Last active August 8, 2017 10:40
Single-command evaluation of StrongLoop Node using Docker
# PREREQUISITE
# Install Docker: http://www.docker.io/gettingstarted/
# SINGLE COMMAND STRONGLOOP NODE.JS (http://strongloop.com) EVALUATION
# This will log you in to an isolated lightweight virtual system (LXC)
# - Base Ubuntu 12.10 (Quantal Quetzal)
# - StrongLoop Node 1.1 GA
docker run -i -t adamalex/strongloop bash
FROM ubuntu:quantal
MAINTAINER Adam Alexander <adamalex@gmail.com>
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y wget
RUN wget -nv http://45ec19d3127bddec1c1d-e57051fde4dbc9469167f8c2a84830dc.r36.cf1.rackcdn.com/strongloop-node_1.1.0-1_amd64.deb
@adamalex
adamalex / ko-datagrid.js
Created June 7, 2013 00:24
Using Knockout to attach a Fuel UX datagrid to an element
// KO binding for attaching a Fuel UX datagrid to an element
ko.bindingHandlers.dataGrid = {
init: function (element, valueAccessor) {
$(element).datagrid({ dataSource: valueAccessor() });
}
};
// Usage:
//
// getGridDataSource should return an instance of a datasource
@adamalex
adamalex / index.html
Created April 18, 2013 11:38
Fuel UX wizard example
<!DOCTYPE html>
<html class="no-js fuelux">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>E-Learning</title>
<link rel="stylesheet" href="https://fuelcdn.com/fuelux/2.3/css/fuelux.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
@adamalex
adamalex / index.html
Created April 17, 2013 20:50
automated test example
<!DOCTYPE html>
<html>
<head>
<title>automated test example</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
</head>
<body>
@adamalex
adamalex / index.html
Created April 13, 2013 18:42
Testing Fuel UX issue #93
<!DOCTYPE html>
<html class="fuelux">
<head>
<title>Datagrid Example</title>
<link href="https://fuelcdn.com/fuelux/2.2/css/fuelux.min.css" rel="stylesheet" type="text/css">
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://fuelcdn.com/fuelux/2.2/loader.min.js"></script>
<script>
// SETCOLUMNWIDTHS OVERRIDE