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
/** Hovis's experiments in K'nex-compatible parts for home fabrication | |
* Author: Hovis Biddle | |
* Contact: [email protected] | |
* License: ISC | |
* Url: http://openjscad.org https://gist.github.com/hovissimo/ce5366a35834c3690488 | |
* | |
* All units in inches/degrees unless noted or obviously wrong. | |
* These models fit well on MY printer, which is almost certainly calibrated differently than your printer. | |
* Use at your own risk. | |
*/ |
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
ship = TDRS | |
version = 1.0.5 | |
description = | |
type = VAB | |
size = 1.342419,0.8275757,1.359174 | |
PART | |
{ | |
part = probeStackSmall_4252537834 | |
partName = Part | |
pos = 0.1438357,14.93722,-0.01851913 |
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
Object.prototype[Symbol.iterator] = function() { | |
iterator = { | |
values: Object.keys(this).map((function (k) { | |
return [k, this[k]]; | |
}).bind(this)), | |
next: function() { | |
if (this.values.length <= 0) { | |
return {done: true}; | |
} else { | |
return {value: this.values.shift(), done:false}; |
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
1: ~\.vimrc | |
2: ~\vimfiles\autoload\pathogen.vim | |
3: ~\vimfiles\bundle\jedi-vim\plugin\jedi.vim | |
4: C:\Program Files (x86)\Vim\vim74\filetype.vim | |
5: C:\Program Files (x86)\Vim\vim74\menu.vim | |
6: C:\Program Files (x86)\Vim\vim74\autoload\paste.vim | |
7: C:\Program Files (x86)\Vim\vim74\ftplugin.vim | |
8: C:\Program Files (x86)\Vim\vim74\plugin\getscriptPlugin.vim | |
9: C:\Program Files (x86)\Vim\vim74\plugin\gzip.vim |
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 |
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
$ 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
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
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 |