info.json | Info.dat |
---|---|
+ | _version = "2.0.0" |
songName | _songName |
songSubName | _songSubName |
authorName | _songAuthorName |
+ | _levelAuthorName = "" |
beatsPerMinute | _beatsPerMinute |
difficultyLevels[].offset | _songTimeOffset |
Difficulty.json => _shuffle | _shuffle |
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
// | |
// buffer.c | |
// | |
// Created by Homework User on 10/20/18. | |
// Copyright ยฉ 2018 JackMacWindows. All rights reserved. | |
// | |
#include "buffer.h" | |
#include <stdlib.h> | |
#include <string.h> |
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
# Requires smbus: sudo apt install python-smbus | |
import I2C_LCD_driver | |
import time | |
import json | |
import httplib | |
import io | |
import os | |
from sys import exit | |
# Add the refresh key here (https://bit.ly/2DM1oRZ) |
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
#!/bin/bash | |
if [ "$1" == "pack" ]; then | |
BNAME=`basename $2` | |
mkdir "._$BNAME" | |
git format-patch --root -o "._$BNAME" | |
git log > "._$BNAME/history.txt" | |
tar -cJf "$2" -C "._$BNAME" . | |
rm -r "._$BNAME" | |
elif [ "$1" == "unpack" ]; then | |
BNAME=`basename $2` |
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
tell application "Finder" to set theBounds to bounds of window of desktop | |
repeat | |
set theNumber to random number from 1 to 1000000 | |
try | |
tell application (path to frontmost application as text) | |
if theNumber is 51 then set bounds of front window to theBounds | |
if theNumber is 87 then set miniaturized of front window to true | |
end tell | |
on error |
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 png # pip install pypng | |
class pixel: | |
def __init__(self, x=0, y=0, r=0, g=0, b=0, a=0): | |
self.x = x | |
self.y = y | |
self.r = r | |
self.g = g | |
self.b = b | |
self.a = a |
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
-- Syntax: runapi <file> <func> [<format> <args...>] | |
-- format argument is in the format [bnstx]+ | |
-- Example: runapi CCWinX/CCWinX.lua QueueEvent snbt CustomEvent 0 false {test=true,text="Hello\sWorld!"} | |
local args = {...} | |
if args[2] == nil then error("Usage: runapi <file> [<format> <args...>]") end | |
local file = table.remove(args, 1) | |
if not os.loadAPI(file) then error("Could not load API at " .. file) end | |
local apiname = string.gsub(fs.getName(file), ".lua", "") | |
local api = _G[apiname] | |
if api == nil then error("Could not determine name of API (tried " .. apiname .. ")") end |
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
-- Tape Archive (tar) archiver/unarchiver library (using UStar) | |
-- Use in the shell or with os.loadAPI | |
local function trim(s) return string.match(s, '^()[%s%\0]*$') and '' or string.match(s, '^[%s%\0]*(.*[^%s%\0])') end | |
local function u2cc(p) return bit.band(p, 0x1) * 8 + bit.band(p, 0x2) + bit.band(p, 0x4) / 4 + 4 end | |
local function cc2u(p) return bit.band(p, 0x8) / 8 + bit.band(p, 0x2) + bit.band(p, 0x1) * 4 end | |
local function pad(str, len, c) return string.len(str) < len and string.sub(str, 1, len) .. string.rep(c or " ", len - string.len(str)) or str end | |
local function lpad(str, len, c) return string.len(str) < len and string.rep(c or " ", len - string.len(str)) .. string.sub(str, 1, len) or str end | |
local function tidx(t, i, ...) | |
if i and t[i] == nil then t[i] = {} end |
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 python | |
from sys import argv, stdout | |
from os import system, remove, path | |
from urlparse import urlparse | |
import re | |
import dfu | |
import ssl | |
import math | |
import json | |
import getopt |
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
--[[ | |
XZ/LZMA decompressor ported from https://github.com/pts/muxzcat | |
Licensed under GNU GPL 2.0 or later | |
This should work under all Lua 5.1+ | |
To use: | |
muxzcat.DecompressXzOrLzmaFile(input, output) will read an XZ/LZMA file from input (FILE* or path) and write the result to output (FILE* or path) | |
muxzcat.DecompressXzOrLzmaString(input) will decompress a loaded XZ/LZMA file and returns the result | |
muxzcat.GetError(num) will return a string representation for an error code | |
muxzcat.ErrorCodes is a table that reverses GetError() | |
Written by [email protected] at Sat Feb 2 13:28:42 CET 2019 |