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
[Finch] | |
mouse = 1 | |
color-available = green; black | |
color-away = blue; black | |
color-idle = gray; black | |
color-offline = red; black | |
color-message-sent = cyan; default | |
color-message-received = red; default | |
color-message-highlight = black; green | |
color-message-action = yellow; default |
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
// A: This is valid JS: | |
var foobar = { | |
foo: function bar() { | |
// pass | |
} | |
}; | |
// B: This is valid ES6 | |
let foobar = { | |
foo() { |
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
class Monitor { | |
String name; | |
public volatile boolean locked = false; | |
public Monitor(String name) { | |
this.name = name; | |
} | |
public String getName() { | |
return this.name; |
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/env bash | |
# 1) Give this file +x permissions. | |
# 2) Replace MonoDevelop.exe with a symlink pointing to this file. | |
subl "$(echo $3 | sed 's|^Z:||' | sed 's|\\|/|g' | sed 's|;|:|')" |
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
var services = app.util.loader.dirSync("services"); | |
var routes = { | |
"/"(req, res, next) { | |
// Render the view found at /views/index.html. | |
res.view("index"); | |
}, | |
"/test": { | |
get(req, res, next) { |
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
#!/bin/bash | |
curl 'https://webapps2.uc.edu/scheduleofclasses/Details.asmx/Class' -H 'Pragma: no-cache' -H 'Origin: https://webapps2.uc.edu' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Host: webapps2.uc.edu' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1568.0 Safari/537.36' -H 'Content-Type: application/json; charset=UTF-8' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: __qca=P0-1621544612-1365361687310; ASP.NET_SessionId=gnsrz1rul2nvx51h4f2zblzq; webapps2uceducookie=ey5hOkc7j+t/KpNyYpKoOeYlNKHEwOQcVbv8g/JMr5HSxFjEI92jFDEib/DGPIvDXNRCeVWiP7lgUQ==; CookiesChecked=true; .ASPXAUTH=6A0499BF7BCD661E80CA972504265E9A47B8E972104A357E8BB09E3EA29D7E91A9E83E9EC27F80EE8BD798A4785B2B7A5E13C21E5F19379EB2C9F0518CC9338B3043B731C82959DC8101524738A70257E92F0B9BC0773037CD1100817828E862321B5241746AFFB3234DA4B4E4A9AFD06BF8B85B; __RequestVerificationToken_L1N0dWRlbnRJQVBSZXZpZXc_=qhB91oG/zb+WOPt |
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
// Let's call this fileA.js. | |
class Controller { | |
constructor() { | |
// This is the only way I can figure out how to do what I need, but it feels shitty. | |
var routes = []; | |
for (var route in this) { | |
if (typeof this[route] === "function") { | |
routes.push(route); | |
} | |
} |
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 enigma import * | |
machine = Enigma() | |
machine.setRotorPositions('A','A','A','A') | |
machine.setPlugboard({12:3,2:21,13:16,6:14,5:17,18:25,20:8,24:19,11:10,9:0,15:7,22:1,4:23}) | |
result = machine.decrypt('gnzbhnlxjikohyymbfhmitoicdossllwinhybzr',True) | |
print(result) |
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
rotors = [ | |
[22,5,1,19,8,25,13,20,21,2,16,4,9,15,14,10,18,7,23,6,12,0,3,24,17,11], | |
[7,12,17,6,13,16,15,10,9,0,2,8,21,22,11,20,4,1,5,25,18,24,23,19,3,14], | |
[3,17,20,0,7,11,1,5,25,21,6,12,22,2,10,23,15,8,16,24,18,14,13,19,9,4], | |
[14,22,19,21,18,10,24,15,9,8,5,12,11,20,0,7,17,16,4,2,13,3,1,25,6,23] | |
] | |
inverseRotors = [[None] * 26] * 3 | |
for r,rotor in enumerate(inverseRotors): |
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 math | |
################################ | |
# VARIABLES | |
################################ | |
code = 'gnzbhnlxjikohyymbfhmitoicdossllwinhybzr' | |
message2 = 'heythereross' | |
log = i = 1 | |
r0 = r1 = r2 = r3 = 0 |