Skip to content

Instantly share code, notes, and snippets.

View gregimba's full-sized avatar

Grant Regimbal gregimba

View GitHub Profile
var _ = require('underscore');
// function sayHello() {
// console.log('Hello, World');
// }
// _.times(5, sayHello);
// -- Start -- //
const employees_input = [
if True:
print('runs')
if False:
print("doesn't run")
if is_valid(email):
print('valid email')
---
- hosts: webservers
become: yes
gather_facts: no
tasks:
- name: ensure apt cache is up to date
apt: update_cache=yes
- name: ensure packages are installed
apt: name={{item}}
git checkout master
git pull
git checkout <branch name>
git rebase master
#!/bin/sh
rm ~/Applications/Atom.app #delete app
rm -rf ~/.atom #delete dotfiles
rm /usr/local/bin/atom
rm /usr/local/bin/apm
rm ~/Library/Preferences/com.github.atom.plist
require 'daemons'
require 'cinch'
bot = Cinch::Bot.new do
configure do |c|
c.nick = "gregimba_bot"
c.server = "irc.oftc.net"
c.channels = ["#gregimba"]
end
@gregimba
gregimba / show.py
Created June 29, 2013 16:56
In order to properly use pony with flask you need to add a second decorator to your function.
@index.route('/')
@with_transaction
def Show():
db = Database('sqlite', '/Users/grant/Documents/Archer/db.sqlite')
<form action="tweet.php" method="post">
<p>Your tweet: <input type="text" name="tweet" /></p>
<p>Your @(handle): <input type="text" name="handle" /></p>
<p><input type="submit" /></p>
</form>
@gregimba
gregimba / logs.txt
Last active December 18, 2015 16:29
Simple cinch transcription.
gregimba => what up?
gregimba => this is great
gregimba => I can't wait to use this