Skip to content

Instantly share code, notes, and snippets.

View auser's full-sized avatar

Ari auser

View GitHub Profile
-module(hn_shell).
-compile([ export_all ]).
start() ->
Pid = spawn(?MODULE, print, [group_leader()]),
erlang:trace(all, true, [call, {tracer, Pid}]),
erlang:trace_pattern({error_logger, info_msg, '_'}, true, [local]).
print(Leader) ->
pool :sandbox do
cloud :hello_world do
instances 1..1
using :ec2
keypair "/path/to/your/keypairs/<NAME>"
end
end
@auser
auser / snow.html
Created November 27, 2010 23:36 — forked from pelf/snow.html
<!DOCTYPE html>
<head>
<title>Snow</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
<script src="snow.js" type="text/javascript"/></script>
</head>
<body onload="init();">
<canvas id="bgcanvas" width="410" height="316" style="position:absolute;z-index:2"></canvas>
<img src="globe_layers_2.png" style="position:absolute;z-index:3">
<canvas id="fgcanvas" width="410" height="316" style="position:absolute;z-index:4"></canvas>
@auser
auser / postgres.sls
Created February 11, 2013 19:36 — forked from rca/postgres.sls
postgresql:
pkg:
- installed
- name: postgresql-9.2
service:
- running
- require:
- pkg: postgresql-9.2
@auser
auser / postgres.sls
Created February 11, 2013 20:04 — forked from rca/postgres.sls
postgresql:
pkg.installed:
- pkgs:
- libpq5
- postgresql-client-9.2
- postgresql-9.2
- require:
- cmd.run: add_postgresql_apt_key
- file.managed: {{ pg_list }}
- file.managed: {{ pg_pref }}
----------
State: - cmd
Name: /tmp/SumoCollector_linux_amd64_19_47-5.sh
Function: script
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1238, in call
*cdata['args'], **cdata['kwargs'])
File "/usr/lib/pymodules/python2.7/salt/states/cmd.py", line 630, in script
run_check_cmd_kwargs, onlyif, unless, group
var floatingButtonDirective = function() {
return {
restrict: 'AE',
scope: {
contents: '@'
},
template: '<div><div class="floating-button">Text: {{ contents }}</div></div>'
};
};
@auser
auser / 0_reuse_code.js
Created April 19, 2014 05:33
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
// list
var list = [
{
letter: 'A',
members: [
'Ari Lerner',
'Abe Linc'
]
},
{
import React, { Component } from 'react';
import {
Text,
View,
TouchableOpacity,
ActivityIndicator,
Navigator
} from 'react-native';
import {GoogleSignin} from 'react-native-google-signin';
import Firestack from 'react-native-firestack'