This file contains 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
#!/usr/bin/python | |
import sys, os | |
if len(sys.argv) < 2: | |
print """Usage: %s symbol | |
where symbol is the stock symbol to fetch | |
""" % sys.argv[0] | |
sys.exit(1) | |
cmd = 'curl -o %s.csv http://ichart.yahoo.com/table.csv?s=%s&a=1&b=1&c=2016&d=11&e=22&f=2016' % (sys.argv[1], sys.argv[1]) |
This file contains 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 GetIVRank(sessionid, symbol, useRank=True, debug=False): | |
#this returns an dictionary with the key as date, and the value as the raw IV | |
iv = GetImpliedVolatility(sessionid, symbol, debug=debug) | |
keys = iv.keys() | |
if len(keys)== 0: | |
return -1 | |
keys.sort() | |
highest = 0.0 |
This file contains 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
#!/usr/bin/python | |
import csv, json, sys, re, os | |
import glob | |
try: | |
loglevel = int(os.environ["LOGLEVEL"]) | |
except: | |
loglevel = 1 |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
#include <assert.h> | |
#include "lua.h" | |
#include "lualib.h" | |
#include "lauxlib.h" | |
char *luacode = | |
"function f ( ) \n" | |
" print(\"hello\\n\") \n" |
This file contains 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
#!/usr/bin/python | |
import colorsys | |
def PrintHex(v): | |
vv0 = v[0] * 255.0 | |
vv1 = v[1] * 255.0 | |
vv2 = v[2] * 255.0 | |
print ( "#%02X%02X%02X" % (vv0, vv1, vv2)) | |
This file contains 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
#!/usr/bin/python | |
import csv, json, sys, re, os | |
import glob | |
try: | |
loglevel = int(os.environ["LOGLEVEL"]) | |
except: | |
loglevel = 1 |
This file contains 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
in keybindings.json | |
[ | |
{ "key": "shift+ctrl+down", "command": "cursorColumnSelectDown", | |
"when": "editorTextFocus" }, | |
{ "key": "shift+ctrl+up", "command": "cursorColumnSelectUp", | |
"when": "editorTextFocus" }, | |
{ "key": "PageUp", "command": "scrollPageUp", | |
"when": "editorTextFocus" }, | |
{ "key": "PageDown", "command": "scrollPageDown", |
This file contains 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
// | |
// main.c | |
// Sodoku | |
// | |
// Created by Kent Miller on 4/7/20. | |
// Copyright © 2020 Kent Miller. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains 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
#!/usr/bin/env python3 | |
import base64 | |
#Good Sudoku's share puzzle clipboard format | |
#given the starting puzzle: | |
#7.. 64. 2.. | |
#.6. 7.. 4.. | |
#..8 ..5 .9. | |
# |
This file contains 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
ga=master_string.split(','); | |
gg=""; | |
for (j=0;j<81;j++){ | |
if (ga[j]=="")gg=gg+"."; | |
else gg=gg+ga[j]; | |
if (j==0) continue; | |
else if (j==80) break; | |
else if (j%27==26) gg=gg+"\n---+---+---\n"; | |
else if (j%9==8) gg=gg+"\n"; | |
else if (j%3==2) gg=gg + "|"; |
OlderNewer