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
license: mit | |
height: 960 |
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
license: mit | |
height: 960 |
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 requests | |
import time | |
class API: | |
def __init__(self, key): | |
self.key = key | |
def get(self, path, **args): | |
if path == 'replay': | |
time.sleep(6) |
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
10 rupees | |
stick | |
lw escape | |
wess to kak | |
bottle | |
80 rupees | |
buy shield | |
dot skip | |
sw |
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 ctypes | |
import time | |
import re | |
RE_TITLE = re.compile(r'''^osu\![^\-]+\-\s+(.+)$''') | |
user32 = ctypes.windll.user32 | |
EnumWindows = user32.EnumWindows | |
EnumWindowsProc = ctypes.WINFUNCTYPE(ctypes.c_bool, | |
ctypes.POINTER(ctypes.c_int), |
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
PATHNAME="songs/kokou" | |
TITLE='50 replays - Yousei Teikoku - Kokou no Sousei [Chaos]' | |
MAP="https://osu.ppy.sh/b/118068&m=0" | |
BASENAME="$(basename $PATHNAME)" | |
MP3=($PATHNAME/*.mp3) | |
python multi_image.py "$PATHNAME" && \ | |
ffmpeg -framerate 60 -i "out/$BASENAME-%05d.png" -i "$MP3" -map 0:v:0 -map 1:a:0 -c copy "$BASENAME.avi" && \ | |
youtube-upload "$BASENAME.avi" -t "$TITLE" -d "map: $MAP\nsoource: https://github.com/andrew12/osr-stuff" |
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
var console = require('demo-console') | |
process.nextTick(function () { | |
console.log('hi') | |
}) |
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
require 'bigdecimal' | |
max = min = count = start = last = bank = nil | |
$<.each_line do |line| | |
line.strip! | |
case line | |
when /^Starting with BANK of (.+) BTC$/ | |
start = last = bank = BigDecimal.new($1) | |
count = 0 | |
max = BigDecimal.new(-1) / 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
var events; | |
events = require(' | |
Obj events | |
Key EventEmitter'); |
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
require 'bencode' | |
require 'sinatra' | |
torrents = {} | |
get '/announce' do | |
compact = (params[:compact] || '1') == '1' | |
no_peer_id = params[:no_peer_id] == '1' | |
event = params[:event] || 'empty' | |
numwant = (request[:numwant] || 50).to_i |