This file contains hidden or 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 java.io.*; | |
import java.math.BigInteger; | |
import java.security.*; | |
import java.security.spec.*; | |
import java.security.cert.*; | |
import java.security.interfaces.*; | |
import java.util.Base64; | |
import javax.xml.parsers.DocumentBuilder; | |
import javax.xml.parsers.DocumentBuilderFactory; |
This file contains hidden or 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
################ | |
## Create new Rails application | |
################ | |
rails new cfa_accounts | |
cd cfa_accounts | |
################ | |
## Add following lines to Gemfile (skip the record_tag_helper for rails 4) | |
################ |
This file contains hidden or 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
# setup instructions | |
## Install atom: https://atom.io | |
## Install rails - Mac (run commands in Terminal) | |
### install xcode developer tools | |
xcode-select --install |
This file contains hidden or 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 datetime import datetime | |
from pytz import all_timezones, timezone | |
current_time = datetime.now() | |
print("timezone name, timezone code") | |
for timezone_name in all_timezones: | |
current_timezone = timezone(timezone_name) |
This file contains hidden or 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 lejos.nxt.*; | |
public class OptimisedTest | |
extends CommonNXTTests | |
{ | |
public static void main( String[] args ) | |
throws Exception | |
{ | |
//variables | |
LightSensor lightSensor = new LightSensor( SensorPort.S1 ); |
This file contains hidden or 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 lejos.nxt.*; | |
public class BenchmarkTest | |
extends CommonNXTTests | |
{ | |
public static void main( String[] args ) | |
throws Exception | |
{ | |
//variables | |
LightSensor lightSensor = new LightSensor( SensorPort.S1 ); |