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
def date_from_day_of_week(isoweekday): | |
base = datetime.datetime.today() | |
return [d for d in [base - datetime.timedelta(days=x) for x in range(0, 7)] if d.isoweekday()==isoweekday][0] |
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
# | |
<center></center> | |
<embed src="aboard.wav" autostart="true" hidden="true" loop="false" width="100" height="100" align="BOTTOM"> | |
<center>[](http://www.gsfc.nasa.gov/sarex)</center> | |
<center>**The <u>S</u>pace <u>A</u>mateur <u>R</u>adio <u>EX</u>periment is sponsored by**</center> |
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
<HTML> | |
<HEAD> | |
<META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Win"> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> | |
<TITLE>Land O'Pines School, MIR Space Station, SAREX Page</TITLE> | |
<META NAME="Template" CONTENT="C:\Program Files\Microsoft Office\Office\html.dot"> | |
<META NAME="keywords" CONTENT="howell, land, pines, school, SAREX, mir, mir space station, amsat, nasa, arrl, amateur, radio, amateur radio, school, howell, nj, andy thomas, astronaut, cosmonaut, space, shuttle"> | |
</HEAD> | |
<BODY LINK="#800080" BACKGROUND="mirback.jpg"> |
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
#include <stdio.h> | |
#include <string.h> | |
int main(void) { | |
puts("Reading File"); | |
FILE *fp; // file pointer to data file | |
fp = fopen ("data.txt", "r"); | |
FILE *stream; |
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
#.bash_profile | |
export GVIMCOLOR=slate | |
alias bright="osascript ~/scripts/brighten_up.scpt \"Man Page\" &>/dev/null; export GVIMCOLOR=morning" | |
alias dark="osascript ~/scripts/brighten_up.scpt \"Slate\" &>/dev/null; export GVIMCOLOR=slate" | |
alias light="osascript ~/scripts/brighten_up.scpt \"Basic\" &>/dev/null; export GVIMCOLOR=morning" |
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
# FizzBuzz in Python w/ Generators | |
# http://c2.com/cgi/wiki?FizzBuzzTest | |
# -- inspired by @dabeaz | |
def fizzbuzz(max_num=101): | |
for i in range(max_num): | |
value = "" | |
if i % 3 == 0: value += "Fizz" | |
if i % 5 == 0: value += "Buzz" | |
yield value if value else i |
NewerOlder