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 http.client | |
import json | |
import sys | |
API_KEY = sys.argv[1] | |
separator = "\t" | |
conn = http.client.HTTPSConnection('www.wanikani.com') | |
itemTypes = ["radicals", "kanji", "vocabulary"] |
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
int findMax(int[] array, int size) { | |
if(size == 1) { | |
return array[0]; | |
} else { | |
return Math.max(findMax(array,size-1), array[size-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
/* | |
int[][] newImage = [-135474, -332854, -1582921, -464440, -398647, -596026, -3117, -333369, -1846352], | |
[-201267, -1253955, -2504022, -1648970, -1780559, -1648973, -1057092, -596285, -1386057], | |
[-202297, -1583694, -1978708, -1123399, -1123399, -1517901, -1254987, -1649489, -2373725], | |
[-465213, -1649487, -1452108, -860742, -729156, -1189451, -531521, -1452623, -2242139], | |
[-927049, -1387344, -861256, -992587, -927050, -1518931, -532805, -1124686, -1519700], | |
[-1189965, -1189965, -663878, -663878, -795464, -1255759, -598598, -1124686, -1914458], | |
[-860742, -1189451, -1123914, -1979223, -532291, -466499, -663878, -1321552, -2505826], | |
[-794436, -1254987, -1320524, -1978710, -1057608, -531521, -1781589, -1715540, -2505056], | |
[-135987, -1122882, -1386054, -1254468, -1386057, -925506, -728127, -267576, -1780559], |
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
package LinkedList; | |
public class DoublyLinkedList<AnyType> { | |
private class Node { | |
public AnyType data; | |
Node next; | |
Node prev; | |
public Node(AnyType data) { |
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
# good UI | |
# more sorting options | |
# detect downloads, give shows update prompt - make a daemon? how do i do that | |
# groups/genres? | |
# priority? | |
# import from rtf | |
# {Show => [[Seasons, Episodes], Complete?, Genre?, Notes]} | |
require "yaml" |
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
# good UI | |
# more sorting options | |
# detect downloads, give shows update prompt - make a daemon? how do i do that | |
# saving/loading - use yaml | |
# groups/genres? | |
# priority? | |
# import from rtf | |
# {Show => [[Seasons, Episodes], Complete?, Notes]} |
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
/Users/Caius/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in `read': not opened for reading (IOError) | |
from /Users/Caius/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in `parse' | |
from /Users/Caius/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in `parse_stream' | |
from /Users/Caius/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:125:in `parse' | |
from /Users/Caius/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:112:in `load' | |
from shows.rb:15:in `<main>' |
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
# good UI | |
# sorting choices | |
# detect downloads, give shows update prompt | |
# use classes? | |
# {Show => [[Seasons, Episodes], Complete?, Notes]} | |
$series = Hash.new() | |
def addseries(title) |
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
asdf |
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
#TO DO: import puzzle file, puzzle generator, solutions view omitting unused characters, solutions view highlighting selected words, verbose options, test multiple solutions | |
samplepuzzle = [ ['b', 'b', 'c', 'd', 'e'], | |
['f', 'e', 'g', 'g', 'j'], | |
['k', 'a', 'l', 'o', 'o'], | |
['s', 'r', 's', 'l', 's'], | |
['u', 's', 'w', 'd', 'y']] | |
samplebank = [%w{b e a r s}, %w{e g g}, %w{g o l d}, %w{b e l l}] |
NewerOlder