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 torch.multiprocessing as tmp | |
N_MINIBATCHES = 10 | |
def load_minibatches(q): | |
for i in range(N_MINIBATCHES): | |
# load minibatch i | |
q.put(minibatch) | |
q.close() |
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.
We can't make this file beautiful and searchable because it's too large.
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
,Event,Time,Associated Time,Associated ID,Source,Target | |
0,favorite,2016-08-15 23:51:55,2016-08-15 18:21:14,7.652520240530104e+17,ellipsix,realscientists | |
1,tweet,2016-08-15 23:54:39,2016-08-15 23:54:39,7.653359291961221e+17,realscientists, | |
2,reply,2016-08-15 23:55:01,,7.653359291961221e+17,realscientists,realscientists | |
3,favorite,2016-08-15 23:56:01,2016-08-15 23:55:01,7.653360206068531e+17,jenburgessart,realscientists | |
4,favorite,2016-08-15 23:58:46,2016-08-15 23:55:01,7.653360206068531e+17,Die_Primel,realscientists | |
5,retweet,2016-08-15 23:59:26,2016-08-15 23:54:39,7.653359291961221e+17,FreelanceSciWri,realscientists | |
6,retweet,2016-08-15 23:59:27,2016-08-15 23:55:01,7.653360206068531e+17,FreelanceSciWri,realscientists | |
7,favorite,2016-08-16 00:08:07,2016-08-15 23:54:39,7.653359291961221e+17,HawkFiction,realscientists | |
8,retweet,2016-08-16 00:11:22,2016-08-15 19:00:05,7.652618008332165e+17,jsimons_uoa,EcologyOfShane |
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
from math import trunc | |
def solver(number, number2, numberofdigits): | |
seq = str(number),str(number2), str(number - number2) | |
digits = "".join(seq) | |
goodChecks = 0 | |
count= numberofdigits/3 | |
for i in range(1,10): | |
if digits.count(str(i)) == count: | |
goodChecks += 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
#!/usr/bin/python3 | |
'''A script that reads episode filenames from standard input, one per line, | |
and prints out the corresponding filenames in a standard format on standard | |
output, one per line. The tvnamer Python library is used to generate the | |
new filenames, and TheTVDB is used to access episode titles. So this does | |
basically the same thing as tvnamer, except that instead of actually | |
renaming files, it just transforms filenames.''' | |
import os.path, sys, json |
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
#include <list> | |
#include <map> | |
#include <string> | |
#include <stdexcept> | |
#include <iostream> | |
using std::cerr; | |
using std::cout; | |
using std::endl; | |
using std::ostream; |
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
#include <muParser.h> | |
#include <iostream> | |
#include <functional> | |
#include <boost/bind.hpp> | |
struct MyClass { | |
double m_arbitrary_value; | |
MyClass(int arbitrary_value) : m_arbitrary_value(arbitrary_value) {} | |
double make_a_value(double a, double b) {return m_arbitrary_value*a+b;} | |
}; |
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
% cvdatabase.cls | |
% Copyright 2012 David Zaslavsky | |
% Based on resume.cls, copyright 2005 Daniel Burrows | |
% | |
% You may use, modify, and redistribute this file in any way you please, so | |
% long as this copyright notice is maintained. | |
% A work in progress | |
\NeedsTeXFormat{LaTeX2e} |