Skip to content

Instantly share code, notes, and snippets.

View msikma's full-sized avatar
🚀
オープンソースの熱狂的なファン

Michiel Sikma msikma

🚀
オープンソースの熱狂的なファン
View GitHub Profile
// ==UserScript==
// @name SumoDB - Rikishi win/loss record highlighter
// @namespace http://sumodb.sumogames.de/
// @version 0.1.1
// @description Highlights wrestlers' kachikoshi records
// @author dada78641
// @match http*://sumodb.sumogames.de/Rikishi.aspx?r=*
// @grant none
// ==/UserScript==
#!/usr/bin/env python3
import unicodedata
with open('SLPS-01144+AREA17+A003.UNGAM_21.html', 'r') as file:
data = file.read()
norm = unicodedata.normalize('NFC', data)
with open('out.html', 'w') as file:
#!/usr/bin/env bash
self=`basename "$0"`
usage="usage: $self [-h] [-v] audio_dir image_dir out_dir"
homepage="https://github.com/msikma/makevids"
audio_dir="$1"
image_dir="$2"
out_dir="$3"

When compiling FreeImage/libfreeimage on Mac OS X, some changes to the makefile are needed for it to work. This guide was written on 2019-06-16 and I was using the trunk from r1815. (The "trunk" is basically SVN's version of the master branch, for those of you who only know Git.)

Before you start, did you know you can use Homebrew to avoid having to compile it at all? It's available here:

brew install freeimage

For those who want to build it, read on.


SystemID PSX
0C0510 b u 0 MainRAM Music 1 on/off
0C05C0 d u 0 MainRAM Music 2 on/off
0C0670 d u 0 MainRAM Music 3 on/off
0C0720 d u 0 MainRAM Music 4 on/off
0C07D0 d u 0 MainRAM Music 5 on/off
0C0880 d u 0 MainRAM Music 6 on/off
0C0250 d u 0 MainRAM Menu sfx
0C03B0 d u 0 MainRAM Get quest sfx
0C0460 d u 0 MainRAM Complete quest sfx
#!/usr/bin/env fish
#set -l dark (set_color blue)
set -l dark (set_color 333333)
set -l norm (set_color normal)
echo (set_color yellow)" \\ / "(set_color normal)Clear
echo (set_color yellow)" .-. "(set_color green)11(set_color normal) °C
echo (set_color yellow)" ― ( ) ― "(set_color normal)→ (set_color green)4(set_color normal) km/h
echo (set_color yellow)" `-’ "(set_color normal)10 km
extern crate ncurses;
use ncurses::*;
use std::thread;
use std::time;
use std::env;
use std::str::FromStr;
const USAGE: &str = "Usage: readc [TIMEOUT_MS]";
/// Reads a single character from stdin with a timeout specified in milliseconds.
import React from 'react'
// Decorator that passes on a 'message' property to a class.
const addMessage = (str) => (component) => {
component.prototype.message = str
}
@addMessage('Hello world!')
export default class DecoratorTest extends React.PureComponent {
render() {
const { override, addDecoratorsLegacy } = require('customize-cra')
// Adds legacy decorator support to the Webpack configuration.
module.exports = override(addDecoratorsLegacy())