Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# This code hasn't been compiled or tested. You may encounter errors. | |
#define ISR_PIN 3 | |
#define OTHER_PIN 8 | |
#defin LED_PIN 13 | |
volatile int last_other_value = 0; | |
volatile int other_value = 0; | |
void setup() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
+-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+ | |
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | | |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | |
| | | 3.3v | | | 1 || 2 | | | 5v | | | | |
| 2 | 8 | SDA.1 | IN | 1 | 3 || 4 | | | 5V | | | | |
| 3 | 9 | SCL.1 | IN | 1 | 5 || 6 | | | 0v | | | | |
| 4 | 7 | GPIO. 7 | IN | 1 | 7 || 8 | 0 | IN | TxD | 15 | 14 | | |
| | | 0v | | | 9 || 10 | 1 | IN | RxD | 16 | 15 | | |
| 17 | 0 | GPIO. 0 | IN | 0 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 | | |
| 27 | 2 | GPIO. 2 | IN | 0 | 13 || 14 | | | 0v | | | |
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
def get_number() | |
while (!num): # We'll keep trying until num has a value in it | |
try: | |
num = int(input()) # Prompt for a number | |
except ValueError: # If we couldn't make it an int... | |
print("enter an integer") # ... complain | |
return num | |
def collatz_next(n): | |
# return next number after n in the collatz sequence |
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
def collatz(): | |
global number | |
if number % 2 == 0: | |
number = number // 2 | |
print(number) | |
return number | |
else: | |
number = number * 3 + 1 |
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
$ vagrant reload dev | |
==> dev: Attempting graceful shutdown of VM... | |
==> dev: Checking if box 'ubuntu/trusty64' is up to date... | |
==> dev: Clearing any previously set forwarded ports... | |
==> dev: Clearing any previously set network interfaces... | |
==> dev: Preparing network interfaces based on configuration... | |
dev: Adapter 1: nat | |
dev: Adapter 2: hostonly | |
==> dev: Forwarding ports... |
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 ExtendableError from 'es6-error'; | |
export class KSPDeserializer { | |
hello() { | |
return "World"; | |
} | |
} | |
export function *yield_lines(string) { | |
yield* string.split('\n'); |
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
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:38:33) | |
MS-Windows 32-bit GUI version with OLE support | |
Compiled by mool@tororo | |
Big version with GUI. Features included (+) or not (-): | |
+arabic +cmdline_hist +digraphs +float +libcall +mouseshape +printer +smartindent -tgetent +viminfo | |
+autocmd +cmdline_info -dnd +folding +linebreak +multi_byte_ime/dyn -profile -sniff -termresponse +vreplace | |
+balloon_eval +comments -ebcdic -footer +lispindent +multi_lang +python/dyn +startuptime +textobjects +wildignore | |
+browse +conceal +emacs_tags +gettext/dyn +listcmds -mzscheme +python3/dyn +statusline +title +wildmenu | |
++builtin_terms +cryp |