This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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) -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pool :sandbox do | |
cloud :hello_world do | |
instances 1..1 | |
using :ec2 | |
keypair "/path/to/your/keypairs/<NAME>" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postgresql: | |
pkg: | |
- installed | |
- name: postgresql-9.2 | |
service: | |
- running | |
- require: | |
- pkg: postgresql-9.2 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------- | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// list | |
var list = [ | |
{ | |
letter: 'A', | |
members: [ | |
'Ari Lerner', | |
'Abe Linc' | |
] | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |