- Introduction
- I love dynamic languages
- You will hate the compiler (at first)
- Goals for the series
- C vs Go vs Python/Ruby/JavaScript
- Compilation Speed
- Runtime Speed
- Startup Time
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
resource "remote_data" current_datetime { | |
count = "${var.size}" | |
taint = "is_end_of_the_world" | |
create = "date +%y%m%d%H%M" | |
shell = true | |
} | |
resource "openstack_compute_instance_v2" myinstance { | |
count = "${var.size}" |
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
package main | |
import "fmt" | |
func main() { | |
func() { | |
goto HELL | |
}() | |
return |
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
#!/usr/bin/env python | |
from itertools import chain | |
from random import SystemRandom | |
import sys | |
PLANTS = { | |
'Stinging Nettle': 3, | |
'Sorrel': 3, |
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
// Excerpt from Practical Cryptography With Go | |
// https://leanpub.com/gocrypto/read#leanpub-auto-block-padding | |
// Pad applies the PKCS #7 padding scheme on the buffer. | |
func Pad(in []byte) []byte { | |
padding := 16 - (len(in) % 16) | |
if padding == 0 { | |
padding = 16 | |
} | |
for i := 0; i < padding; i++ { |
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
from .local import config | |
config.render(globals()) |
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
# Usage: | |
# cd ~/my_old_repo | |
# git-move HEAD ~/my_new_repo | |
function git-move { | |
src=$(pwd) | |
commit=$1 | |
dest=$2 | |
git rev-list $commit --reverse | | |
while read hash; do |
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
// ==UserScript== | |
// @name Hipchat Click to View Images | |
// @version 0.2 | |
// @match https://*.hipchat.com/chat | |
// @copyright 2014, Zach "theY4Kman" Kanzler | |
// @grant GM_unsafeWindow | |
// ==/UserScript== | |
// Add styles to initially disable images |
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 pytest | |
class Fixture(): | |
@property | |
def foo(self): | |
raise NotImplementedError | |
@pytest.fixture |