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> | |
| <meta charset="utf-8"> | |
| <style> | |
| path { stroke: none; } | |
| </style> | |
| <svg width="960" height="500"></svg> | |
| <script src="//d3js.org/d3.v4.min.js"></script> | |
| <script> | |
| var svg = d3.select('svg') | |
| var w = +svg.attr('width') |
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
| license: mit | |
| height: 960 |
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
| license: mit | |
| height: 960 |
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 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 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
| 10 rupees | |
| stick | |
| lw escape | |
| wess to kak | |
| bottle | |
| 80 rupees | |
| buy shield | |
| dot skip | |
| sw |
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 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 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
| 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 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 console = require('demo-console') | |
| process.nextTick(function () { | |
| console.log('hi') | |
| }) |
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
| 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 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 events; | |
| events = require(' | |
| Obj events | |
| Key EventEmitter'); |