Skip to content

Instantly share code, notes, and snippets.

View clebio's full-sized avatar
💭
I'm in that weird part of Github again.

Caleb Hyde clebio

💭
I'm in that weird part of Github again.
  • Portland, OR
View GitHub Profile
LC_NAME=some_launch_config
B64STRING=$(\
aws autoscaling describe-launch-configurations \
--launch-configuration-names $LC_NAME \
--query 'LaunchConfigurations[].UserData' \
--output text
)
python -c "import base64; print(base64.b64decode('$B64STRING'));"
@clebio
clebio / tramel-formatted.py
Last active August 29, 2015 14:01
Listing_10-1_formatted.py
# Listing_10-1.py
# Copyright Warren Sande, 2009
# Released under MIT license http://www.opensource...
# Version 61 ----------------------------
# Very simple skiing game.
# Avoid the trees and pick up flags to get points
import pygame, sys, random
@clebio
clebio / tramel.py
Created May 29, 2014 09:35
Listing_10-1.py
# Listing_10-1.py
# Copyright Warren Sande, 2009
# Released under MIT license http://www.opensource...­
# Version 61 ----------------------------
# Very simple skiing game.
# Avoid the trees and pick up flags to get points
import pygame, sys, random
@clebio
clebio / racket.scm
Created January 24, 2014 15:11
Racket list indexing
$ racket
Welcome to Racket v5.1.3.
> (define l '(1 2 3 4 5))
> (list-ref l 2)
3
> (list-ref l 5/2)
list-ref: expects type <non-negative exact integer> as 2nd argument, given: 5/2; other arguments were: '(1 2 3 4 5)
@clebio
clebio / example.sh
Created January 4, 2014 20:42
Shiny from Gist or Github
R -e "shiny::runGist('7682034', port=8100)"
R -e "shiny::runGithub('shiny-demo', 'clebio', port=8100)"
@clebio
clebio / README.md
Last active December 29, 2015 14:09
Shiny Demo

Demostration of R's Shiny

@clebio
clebio / index.html
Last active December 20, 2015 06:19
Python for Microsoft Office (using Python Tools for Visual Studio)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>pythonOfficePresentation.md</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src='style.css'></script>
</head>
<body>
<h1>Python for Microsoft Office Integration</h1>
@clebio
clebio / .gitignore
Last active December 10, 2015 10:28
Multiseries Line Chart using Rickshaw toolkit
*~
.#*
rickshaw/
d3/