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
{ | |
"email_address": "[email protected]", | |
"recommendations_input_hash": "c108424f556b8f3e53630cda40d6b2637311ed8c47f40071715e464cf28a68d7", | |
"eligibility_input_hash": "eec27cb2d30ec8f6b2f9c853c6bb39ec8560378646eefd0e1e641e86345ac3eb", | |
"eligible": false, | |
"subjects": [ | |
{ | |
"subject_num": 15030, | |
"name": "Biology", | |
"code": "BIOLO", |
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
{ | |
"eligibility_input_hash": "bdd614db4cb75019bfdd8db05a66deb0d8b0634f626aff5b14e07ac06120c505", | |
"eligible": false, | |
"subjects": [ | |
{ | |
"subject_num": 15500, | |
"name": "Arabic Beginners", | |
"code": "ARABI", | |
"units": 2, | |
"category": 1 |
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
outer: | |
for (int i = 0; i < Integer.MAX_VALUE; i++) { | |
for (int j = 0; j < Integer.MAX_VALUE; j++) { | |
if (i == 1 && j == i) { | |
break outer; | |
} | |
} | |
} |
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
import java.util.Arrays; | |
/** | |
* @author Harrison | Hc747 | |
* Contact: [email protected] | [email protected] | [email protected] | |
* @version 1.0 | |
* @since 2018-09-07 | |
*/ | |
public class Sator { |
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
import java.util.Scanner; | |
import java.util.Stack; | |
public class Mindmelt { | |
public static void main(String[] args) { | |
try (Scanner scanner = new Scanner(System.in)) { | |
Interpreter interpreter = new Interpreter(scanner.nextLine().toCharArray()); | |
String command; |
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
import java.util.Stack; | |
public class Mindmelt { | |
public static void main(String[] args) { | |
//Scanner scanner = new Scanner(System.in); | |
Interpreter i = new Interpreter(new char[0]/*scanner.nextLine().toCharArray()*/); | |
int index = 0; |
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
const express = require("express"); | |
const router = express.Router(); | |
const User = require("../../models/User.model"); | |
const bcrypt = require("bcrypt"); | |
const JWT = require("jsonwebtoken"); | |
function createToken(user) { | |
const payload = { | |
_id: user._id, | |
email: user.email, |
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
import java.io.PrintStream | |
import java.text.DecimalFormat | |
import java.util.concurrent.ConcurrentHashMap | |
import java.util.concurrent.Executors | |
import java.util.concurrent.TimeUnit | |
import java.util.concurrent.atomic.AtomicReference | |
interface TemporaryStorage<K, V> { | |
fun compute(key: K, remapper: (K, V?) -> V?): V? |
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
const express = require('express'); | |
const router = express.Router(); | |
//TODO: put models into own package | |
class IdentifiableModel { | |
//TODO: proptypes or typescript | |
constructor(id) { | |
this.id = id; | |
} |
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
export default class User { | |
constructor(username, email, password_hash, session_token) { | |
this.username = username; | |
this.email = email; | |
this.password_hash = password_hash; | |
this.session_token = session_token; | |
} | |
isAuthenticated() { |