This file contains 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
var _ = require('underscore'); | |
// function sayHello() { | |
// console.log('Hello, World'); | |
// } | |
// _.times(5, sayHello); | |
// -- Start -- // | |
const employees_input = [ |
This file contains 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
if True: | |
print('runs') | |
if False: | |
print("doesn't run") |
This file contains 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
if is_valid(email): | |
print('valid email') |
This file contains 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
--- | |
- 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}} |
This file contains 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
git checkout master | |
git pull | |
git checkout <branch name> | |
git rebase master |
This file contains 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
#!/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 |
This file contains 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
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 |
This file contains 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
@index.route('/') | |
@with_transaction | |
def Show(): | |
db = Database('sqlite', '/Users/grant/Documents/Archer/db.sqlite') |
This file contains 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
<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> |
This file contains 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
gregimba => what up? | |
gregimba => this is great | |
gregimba => I can't wait to use this |
NewerOlder