| marp | theme | paginate | backgroundColor | color |
|---|---|---|---|---|
true |
default |
true |
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
| // ==UserScript== | |
| // @name MIT Tech Review meter disabler | |
| // @version 2 | |
| // @match https://www.technologyreview.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| function clearTrackers() { | |
| window.localStorage.removeItem("mittr:meter"); | |
| } |
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 java.util.Scanner; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner input = new Scanner(System.in); | |
| //System.out.println("Size of magic square: "); | |
| int size = 5; //input.nextInt(); | |
| MagicSquare magicSquare = new MagicSquare(size); |
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 java.util.ArrayList; | |
| import java.util.Random; | |
| class Main | |
| { | |
| public static void main(String[] args) | |
| { | |
| ArrayList<String> oldStudents = new ArrayList<String>(); | |
| ArrayList<String> newStudents = new ArrayList<String>(); | |
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 datetime | |
| total_pages = 527 | |
| pages_read_so_far = 55 | |
| current_date = datetime.datetime.now().date() | |
| due_date = datetime.date(2016, 7, 9) | |
| delta = due_date - current_date | |
| days_till_duedate = delta.days + 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
| /* | |
| * Copyright [yyyy] [name/org]. | |
| * | |
| * Licensed under the GNU General Public License, Version 2, <LICENSE-GPL or | |
| * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> or the MIT license | |
| * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. This | |
| * file may not be copied, modified, or distributed except according to those | |
| * terms. | |
| */ |
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
| #ifdef __cplusplus | |
| #include <iostream> | |
| inline void log_fine(msg) {std::cout << "[FINE] " << msg << std::endl;} | |
| inline void log_info(msg) {std::cout << "[FINE] " << msg << std::endl;} | |
| inline void log_warn(msg) {std::cout << "[WARN] " << msg << std::endl;} | |
| inline void log_fail(msg) {std::cout << "[FAIL] " << msg << std::endl;} | |
| #else |
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 log | |
| def from_oh(OH): | |
| H = 10**-14 / OH | |
| pOH = -log(OH) | |
| pH = 14 - pOH | |
| print("H+: {}".format(H)) | |
| print("pOH: {}".format(pOH)) | |
| print("pH: {}".format(pH)) | |
| print() |
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
| git clone https://github.com/itseez/opencv | |
| cd opencv | |
| git checkout 3.1.0 | |
| mkdir build | |
| cd build | |
| cmake .. | |
| make -j4 | |
| sudo make install |
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
| div#wrapper { | |
| max-width: 90%; | |
| } |
NewerOlder