⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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 RPi.GPIO as GPIO | |
import time | |
GPIO.setmode(GPIO.BOARD) | |
control_pins = [7,11,13,15] | |
for pin in control_pins: | |
GPIO.setup(pin, GPIO.OUT) | |
GPIO.output(pin, 0) | |
halfstep_seq = [ | |
[1,0,0,0], | |
[1,1,0,0], |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>edTest</title> | |
</head> | |
<body> | |
<img id="random_image" alt="random aww image" /> | |
</body> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> |
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
# Setting PATH for Python 2.7 | |
# The orginal version is saved in .bash_profile.pysave | |
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" | |
export PATH | |
export WORKON_HOME=$HOME/virtualenvs | |
export PROJECT_HOME=$HOME/projects | |
source /usr/local/bin/virtualenvwrapper.sh | |
mkdjangoproj () { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Teams | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
/********************************************** | |
* fraction.h: this header file has the private | |
fields used in fraction.cpp and also has the | |
prototypes for the functions in fraction.cpp. * | |
***********************************************/ | |
#ifndef FRACTION_H | |
#define FRACTION_H | |
/********************************************** | |
* class Fraction: this class allows us to make |
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
/********************************************** | |
* fraction.cpp: this handles all of the actual | |
computations done to the fractions. * | |
***********************************************/ | |
#include <iostream> | |
using namespace std; | |
#include "fraction.h" | |
/********************************************** | |
* setValues function: this function is pretty |
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
/********************************************** | |
* Name: Eduardo Hernandez-Hedges * | |
* Date: 10/20/2010 * | |
* Assignment: Project 5: Fractions * | |
*********************************************** | |
* This project asks the user for two fractions | |
then asks the user whether they want to add, | |
subtract, multiply, or divide them. Then it | |
prints out the correct reduced value * | |
***********************************************/ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace HedgesBlackjack | |
{ | |
class User : Player | |
{ | |
private int _numWins = 0; |
NewerOlder