Install MySQL
sudo apt-get install mysql-server
It should ask you for a password - put in whatever (make sure that this goes in to your config/environment.rb file) Start MySQL
sudo service mysql restart
Login to MySQL
Install MySQL
sudo apt-get install mysql-server
It should ask you for a password - put in whatever (make sure that this goes in to your config/environment.rb file) Start MySQL
sudo service mysql restart
Login to MySQL
/usr/local/rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- daemons (LoadError) | |
from /usr/local/rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require' | |
from parts_server_control.rb:6:in `<main>' |
#!/bin/sh | |
SIZE_MB=${1:-1024} | |
SECTORS=$((${SIZE_MB}*1024*1024/512)) | |
diskutil erasevolume HFS+ "RamDisk" `hdiutil attach -nomount ram://${SECTORS}` |
from bs4 import BeautifulSoup | |
import urllib2 | |
import re | |
def get_sponsors(team_number): | |
url = re.findall('window.location = "(.*?)";', BeautifulSoup(urllib2.urlopen("http://frclinks.frclinks.com/t/{0}".format(str(team_number)))).find_all('script')[2].get_text().strip())[0] | |
return BeautifulSoup(urllib2.urlopen(url)).find_all("div", {"class":"team-name"})[0].get_text() | |
def get_sponsors_long(team_number): | |
url = "http://frclinks.frclinks.com/t/{0}".format(str(team_number)) |
from bs4 import BeautifulSoup | |
import mechanize | |
def get_sponsors(team_number): | |
br = mechanize.Browser() | |
br.open("http://frclinks.com/t/" + str(team_number)) | |
return BeautifulSoup(br.response().read()).find_all("div", {"class":"team-name"})[0].get_text() |
# | |
# Makefile - blinkasm.elf | |
# | |
# Author: Rick Kimball | |
# email: rick@kimballsoftware.com | |
# Version: 1.03 Initial version 10/21/2011 | |
APP=blinkasm | |
MCU=msp430g2553 |
# | |
# Makefile - blinkasm.elf | |
# | |
# Author: Rick Kimball | |
# email: rick@kimballsoftware.com | |
# Version: 1.03 Initial version 10/21/2011 | |
APP=blinkasm | |
MCU=msp430g2553 |
#include <msp430g2553.h> | |
extern void turnLEDOn(); | |
int main() { | |
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog | |
turnLEDOn(); // Call our assembly code | |
return 0; | |
} |
public abstract class Lockable { | |
int key = 0; | |
boolean locked = false; | |
void setKey(int key) { | |
this.key = key; | |
} | |
void lock(int key) { | |
if(key == this.key) locked = true; |
interface Lockable { | |
int key = 0; | |
boolean locked = false; | |
void setKey(int key); | |
void lock(int key); | |
void unlock(int key); | |
boolean locked(); | |
} |