Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
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
| <!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
| 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], |
OlderNewer