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.
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
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as exp_cond | |
| from selenium.common.exceptions import NoSuchElementException | |
| from selenium.webdriver.chrome.options import Options | |
| import time | |
| from collections import namedtuple |
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
| require(["codemirror/keymap/sublime", "notebook/js/cell", "base/js/namespace"], | |
| function(sublime_keymap, cell, IPython) { | |
| cell.Cell.options_default.cm_config.keyMap = 'sublime'; | |
| cell.Cell.options_default.cm_config.extraKeys["Ctrl-Enter"] = function(cm) {} | |
| var cells = IPython.notebook.get_cells(); | |
| for(var cl=0; cl< cells.length ; cl++){ | |
| cells[cl].code_mirror.setOption('keyMap', 'sublime'); | |
| cells[cl].code_mirror.setOption("extraKeys", { | |
| "Ctrl-Enter": function(cm) {} | |
| }); |
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 github | |
| import base64 | |
| import collections | |
| import pickle | |
| import time | |
| import sys | |
| class Tee(object): | |
| def __init__(self, *files): |
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
| case SC_Open: | |
| { | |
| int filename_ptr = machine->ReadRegister(4); | |
| int len = 150; | |
| char *filename = new char[len]; | |
| int *c = new int; | |
| if (!machine->ReadMem(filename_ptr, 1, c)) // could not read char | |
| return; |
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 <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include "utilities/Graph.h" | |
| using namespace std; | |
| vector<pair<int,int>> maxRevenuePath(Graph<int>* g); |
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 scl = 20; | |
| int cols, rows; | |
| float inc = 0.1; | |
| float zoff = 0; | |
| Particle[] particles; | |
| int numParticles = 1000; | |
| PVector[][] flowField; | |
| void setup() { | |
| //size(640, 480); |