Skip to content

Instantly share code, notes, and snippets.

@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
@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 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 / 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
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 / 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
@adamalex
adamalex / Procfile
Created July 29, 2013 01:02
Deploying to Stackato using Heroku's Node buildpack
web: node app.js
@adamalex
adamalex / crash.log
Last active December 24, 2015 06:38
Packer crash output
2013/09/29 20:36:49 Packer Version: 0.3.8
2013/09/29 20:36:49 Packer Target OS/Arch: darwin amd64
2013/09/29 20:36:49 Detected home directory from env var: /Users/adam
2013/09/29 20:36:49 Attempting to open config file: /Users/adam/.packerconfig
2013/09/29 20:36:49 File doesn't exist, but doesn't need to. Ignoring.
2013/09/29 20:36:49 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-ebs:packer-builder-amazon-ebs amazon-chroot:packer-builder-amazon-chroot amazon-instance:packer-builder-amazon-instance digitalocean:packer-builder-digitalocean openstack:packer-builder-openstack virtualbox:packer-builder-virtualbox vmware:packer-builder-vmware] Commands:map[build:packer-command-build fix:packer-command-fix inspect:packer-command-inspect validate:packer-command-validate] PostProcessors:map[vagrant:packer-post-processor-vagrant] Provisioners:map[chef-solo:packer-provisioner-chef-solo file:packer-provisioner-file puppet-masterless:packer-provisioner-puppet-masterless shell:packer-provisioner-sh
@adamalex
adamalex / .ebextensions--eb.config
Created October 28, 2013 00:01
Config and CI script for automated Node.js 0.10.10 project deployment—including grunt—to Elastic Beanstalk
packages:
yum:
git: []
gcc: []
make: []
openssl-devel: []
commands:
00-add-home-variable:
command: sed -i 's/function error_exit/export HOME=\/root\n\nfunction error_exit/' /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh
container_commands:
@adamalex
adamalex / index.html
Created March 19, 2014 22:34
Simple Map Location
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
</head>
<body>
<div id="content" style="height: 450px"></div>
<script type="text/javascript">