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
""" | |
Simple xml serializer. | |
@author Reimund Trost 2013 | |
Example: | |
mydict = { | |
'name': 'The Andersson\'s', | |
'size': 4, |
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
# sudoku.py | |
from __future__ import print_function | |
import random, itertools, string, operator, copy | |
import constraint, networkx, sympy, glpk | |
#################################################################### | |
# Basic parameters |
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 rtmidi, time | |
buttons = { | |
58: 'track_left', | |
59: 'track_right', | |
46: 'cycle', | |
60: 'marker_set', | |
61: 'marker_left', |
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
{ | |
"OP_DUP OP_HASH160 20 OP_EQUALVERIFY OP_CHECKSIG": 319721182, | |
"OP_HASH160 20 OP_EQUAL": 10083919, | |
"65 OP_CHECKSIG": 887766, | |
"OP_RETURN": 288521, | |
"OP_1 33 33 33 OP_3 OP_CHECKMULTISIG": 224438, | |
"": 219175, | |
"OP_1 33 33 OP_2 OP_CHECKMULTISIG": 206415, | |
"33 OP_CHECKSIG": 101306, | |
"OP_RETURN 40": 65287, |
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
#Source code with the blog post at http://monik.in/a-noobs-guide-to-implementing-rnn-lstm-using-tensorflow/ | |
import numpy as np | |
import random | |
from random import shuffle | |
import tensorflow as tf | |
# from tensorflow.models.rnn import rnn_cell | |
# from tensorflow.models.rnn import rnn | |
NUM_EXAMPLES = 10000 |