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
OBJECTS=blink.o | |
GCC_DIR = ~/ti/gcc/bin | |
SUPPORT_FILE_DIRECTORY = ~/ti/gcc/include | |
DEVICE = msp430g2231 | |
CC = $(GCC_DIR)/msp430-elf-gcc | |
GDB = $(GCC_DIR)/msp430-elf-gdb | |
CFLAGS = -I $(SUPPORT_FILE_DIRECTORY) -mmcu=$(DEVICE) -O2 -g |
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> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" /> | |
<title>untitled</title> | |
<link rel="stylesheet" href="static/css/" /> | |
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> | |
</head> | |
<body> |
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
import os | |
import sys | |
import shutil | |
if len(sys.argv) != 2: | |
print 'Usage: python economist_rename.py ~/path/to/mp3s' | |
sys.exit(0) | |
mp3_path = sys.argv[1] | |
if not mp3_path[-1:] == '/': | |
mp3_path += '/' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="FacetManager"> | |
<facet type="django" name="Django"> | |
<configuration> | |
<option name="rootFolder" value="$MODULE_DIR$" /> | |
<option name="settingsModule" value="settings.py" /> | |
<option name="manageScript" value="manage.py" /> | |
</configuration> | |
</facet> |
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 <msp430g2231.h> | |
/** Delay function. **/ | |
delay() { | |
__delay_cycles(250000); | |
} | |
int main(void) { | |
int i; | |
WDTCTL = WDTPW | WDTHOLD; |
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
1) Install the plugin using the instructions from the wiki. | |
Ensure that you are running Eclipse >= 3.5 (Galileo) | |
In Eclipse go to Help -> Install New Software | |
In the new window selected "Add" | |
The name is up to you but, set "Location" to http://babelfish.arc.nasa.gov/trac/jpf/raw-attachment/wiki/install/eclipse-plugin/update/ | |
From the "Work with:" drop down menu select the update site that you just entered from the previous step | |
Check the "Eclipse-JPF" check box, select "Next" and go through the install process. | |
2) Download the jpf core binary and extract it somewhere: http://babelfish.arc.nasa.gov/trac/jpf/attachment/wiki/projects/jpf-core/jpf-core-r615.zip |
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
from bs4 import BeautifulSoup | |
#produce tab delimited CSV files from large html files | |
for year in range(2008, 2013): | |
print 'processing ' + str(year) | |
file = str(year) + '.html' | |
f = open(file, 'r'); | |
html = f.read() | |
soup = BeautifulSoup(html) | |
table = soup.find("table") |
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
package game; | |
import java.util.ArrayList; | |
public class RunningGame extends Minigame { | |
//introducing private entity | |
private IconEntity arrow_left; | |
private IconEntity arrow_right; | |
private IconEntity[] animations; |
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
package game; | |
import java.util.ArrayList; | |
public class RunningGame extends Minigame { | |
//introducing private entity | |
private IconEntity arrow_left; | |
private IconEntity arrow_right; | |
long countdown; |
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
package game; | |
import java.awt.Canvas; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics2D; | |
import java.awt.event.KeyAdapter; | |
import java.awt.event.KeyEvent; | |
import java.awt.event.WindowAdapter; | |
import java.awt.event.WindowEvent; |
NewerOlder