View paper.item.patch
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
[ | |
[ | |
{"op" : "test", "path" : "/learnBlueprintsOnPickup", "inverse" : true}, | |
{"op" : "add", "path" : "/learnBlueprintsOnPickup", "value" : [] } | |
], | |
[ | |
{"op" : "add", "path" : "/learnBlueprintsOnPickup/-", "value" : "waterlamp"}, | |
{"op" : "add", "path" : "/learnBlueprintsOnPickup/-", "value" : "hylotlcalligraphy7"}, | |
{"op" : "add", "path" : "/learnBlueprintsOnPickup/-", "value" : "hylotlcalligraphy8"}, | |
{"op" : "add", "path" : "/learnBlueprintsOnPickup/-", "value" : "hylotlcalligraphy9"}, |
View rotate-video.sh
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
$INPUTVIDEO='input.mp4' | |
$OUTPUTVIDEO='output.mp4' | |
ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO |
View showroom.url.user.js
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
// ==UserScript== | |
// @name show Showroom streaming url | |
// @namespace https://gist.github.com/wlerin | |
// @description ShowroomのストリーミングURLを表示 | |
// @include https://www.showroom-live.com/* | |
// @require http://code.jquery.com/jquery-3.4.1.min.js | |
// @version 0.6 | |
// ==/UserScript== | |
// Will display a streaming url in a box at the top of the screen |
View ann_image_replacer.js
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
// ==UserScript== | |
// @name ANN Image Replacer | |
// @namespace http://scripts.social48.net | |
// @version 0.1 | |
// @description Replace small images from ANN with large ones. | |
// @author Social48 | |
// @include http://www.allnightnippon.com/wp/assets/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
View solar_system_objects.sql
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
/* | |
Solar system objects | |
Adapted from: http://en.wikipedia.org/wiki/List_of_Solar_System_objects_by_size | |
Collected by: https://www.khanacademy.org/profile/patrick809/programs | |
*/ | |
CREATE TABLE solar_system_objects( | |
body TEXT | |
, mean_radius NUMERIC /* km */ | |
, mean_radius_rel NUMERIC /* relative to earth */ | |
, volume NUMERIC /* 10^9 km^3 */ |
View pst_mods.sh
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
#!/bin/env bash | |
#Please specify path to Plansecape: Torment installer | |
export PST=./setup_planescape_torment_2.0.0.8.exe | |
#Please specify path to Planescape: Torment with Widescreen mod. | |
export WINEPREFIX=~/.planescapetorment | |
if [[ ! -f $PST ]]; then | |
echo "Please specify valid path to Planescape: Torment installer" | |
exit | |
fi | |
echo "Installing needed mods" |
View tumblr_photoset_upload.py
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
# Adapted from: | |
# https://gist.github.com/charlesbrandt/11eadaec114288d621fa | |
# https://gist.github.com/velocityzen/1242662 | |
# https://gist.github.com/derekg/1198576 | |
# https://groups.google.com/forum/#!msg/tumblr-api/0QxFn79B2n4/6MHC4GNHqp8J | |
# https://github.com/tumblr/jumblr/blob/master/src/main/java/com/tumblr/jumblr/request/MultipartConverter.java | |
import requests_oauthlib | |
import requests | |
import os.path |