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 cnsl = true; | |
var win = this; | |
var ajax = win["XMLHttpRequest"]; | |
| |
function start() { | |
var cookie_name = "app_" + profile_id; | |
var cookie_time = 40; | |
if (!getCookie(cookie_name) || parseInt(getCookie(cookie_name)) < Date.now() - 60 * 1000 * cookie_time) { | |
createCookie(cookie_name, Date.now(), 1); | |
config = {}; |
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 python3 | |
from os import path, makedirs | |
from PIL import Image | |
import image2gif | |
def splitImage_2x2(image): | |
w, h = image.size | |
assert((w % 2, h % 2) == (0, 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
// Before using, | |
// 1) add an ID (`ggg` in this case) to the container of the table of the sticker pack you want. | |
// 2) The static ones are cached unless the animated ones are needed so you must move your cursor through all the stickers. | |
// Hint: The URLs can be fed into DownloadThemAll! or something else. | |
Array.from(document.querySelectorAll("#ggg ._5r8i")) | |
.map( x=>x.style.backgroundImage | |
.match(/https[^"]+/)[0] | |
.replace(/(s|p)\d+x\d+/, "") ) |
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
#include "../drivers.h" | |
PUBLIC void get_bootenv(char *buf, int bufSize) { | |
int status; | |
char *char_p; | |
status = sys_getmonparams(buf, bufSize); | |
if (status != OK) printf("PROC: sys_getmonparams failed: %d", status); | |
/* Convert nulls between params into new lines */ | |
char_p = buf; |