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
*~ | |
.#* | |
rickshaw/ | |
d3/ |
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
<!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> |
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
R -e "shiny::runGist('7682034', port=8100)" | |
R -e "shiny::runGithub('shiny-demo', 'clebio', port=8100)" |
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
$ 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) |
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
# 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 |
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
# 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 |
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
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'));" |
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
#!/usr/bin/env python | |
from boto import connect_s3 | |
import argparse | |
parser = argparse.ArgumentParser(description="Read file names and S3 bucket path") | |
parser.add_argument('bucket_name', type=str, help='Name of the S3 bucket to connect to.') | |
parser.add_argument('file_path', type=str, help='path to a file on S3') | |
args = parser.parse_args() |
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
/* | |
Based on stock "DigitalReadSerial" | |
Reads a digital input on several pins, prints the result to the serial monitor, turns on corresponding LED | |
*/ | |
//Name all the pins that the pushbuttons are on | |
int pushButton1 = 2; | |
int pushButton2 = 3; | |
int pushButton3 = 4; |
OlderNewer