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
const RICKROLL = "https://www.youtube.com/watch?v=oHg5SJYRHA0"; | |
const RICKROLL_DAY = 1; | |
const RICKROLL_MONTH = 4; | |
if(Storage && window.localStorage && window.localStorage instanceof Storage) { | |
// Check if it's 1st of April | |
var date = new Date(); | |
// Note that months are zero indexed | |
if(date.getDate() == RICKROLL_DAY && date.getMonth() == RICKROLL_MONTH-1) { | |
// If local storage does not work, rickroll will simply never occur | |
// this is a safety measure to prevent people being rickrolled forever |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package test; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.PrintStream; |
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 KOS multiple tabs | |
// @namespace util | |
// @description Allows you to use KOS in mutiple tabs. | |
// @include https://www.kos.cvut.cz/kos/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// Name of local storage entry where page id is stored | |
const DATA_NAME = "KOS_PAGE_ID"; |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<meta name="generator" content="PSPad editor, www.pspad.com"> | |
<title>PyPy</title> | |
</head> | |
<body> | |
<h2>Select python file</h2> | |
<input type="file" id="files" name="file" multiple /> |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, graph = require('fbgraph'); | |
var app = express(); | |
var server = require("http").createServer(app); | |
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
# Homework tester script | |
# ---------------------- | |
# This script will automatically (try to) test | |
# IO of your homework. | |
# | |
# Requirements: | |
# Python 2.7 In order to use Python 3, change `raw_input` to `input` | |
# gcc compiler | |
# | |
# Parameters: |
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
@echo off | |
set FILETOZIP=%1 | |
echo Selected file: %FILETOZIP% | |
set TEMPDIR=TMP | |
echo Creating temporary file directory .\%TEMPDIR% | |
mkdir %TEMPDIR% | |
copy %FILETOZIP% %TEMPDIR%\main.c |
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
toggle=0 | |
F12:: | |
If (toggle := !toggle) | |
SetTimer, Timer, -1 | |
return | |
timer: | |
while toggle | |
{ |
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
const readline = require('readline'); | |
var oldCreateIface = readline.createInterface; | |
readline.createInterface = function() { | |
var iface = oldCreateIface.apply(this, arguments); | |
var oldQuestion = iface.question; | |
iface.question = function(question) { | |
var promise = Promise.defer(); | |
oldQuestion.call(this, question, (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
{ | |
"id":"0000", | |
"message":"TEXT", | |
"badWordReplacements":null, | |
"user":{ | |
"id":"USER_ID", | |
"name":"SUMMONER_NAME", | |
"lolSummonerLevel":"LEVEL (0-30)", | |
"lolProfileIcon":"PROFILE_ICON_ID", | |
"realm":"NA/EUNE/EUW/OCE", |