Skip to content

Instantly share code, notes, and snippets.

View Jessidhia's full-sized avatar

Jessica Franco Jessidhia

  • @pixiv Inc, pixiv desktop
  • Tokyo, Japan
View GitHub Profile
@Jessidhia
Jessidhia / Makefile
Created December 18, 2011 00:36
Programming homework #3
CFLAGS = -std=c99 -Wall -Wextra
all: q1 q2
q1: q1.o bencode.o
q2: q2.o bencode.o
test: test.o bencode.o
@Jessidhia
Jessidhia / gist:3740361
Created September 17, 2012 23:17
BR-ABNT2 QWERTY to Dvorak mapping
; Use Scroll Lock to control keyboard ("on" is Dvorak)
; Modified from http://esnm.sourceforge.net/keys.html#dvorak
#SingleInstance force
; BR-ABNT2 QWERTY to Dvorak mapping
Loop {
If GetKeyState("ScrollLock", "T")
{
Suspend, Off
} else {
Suspend, On
@Jessidhia
Jessidhia / CMakeLists.txt
Created November 18, 2012 00:36
PPSSPP WIP CMakeLists.txt
cmake_minimum_required(VERSION 2.8.10.1)
project(PPSSPP)
# User-editable options (go into CMakeCache.txt)
set(ARM OFF CACHE
BOOL "Set to ON if targeting an ARM processor")
set(ANDROID OFF CACHE
BOOL "Set to ON if targeting an Android phone")
set(BLACKBERRY OFF CACHE
BOOL "Set to ON if targeting a Blackberry phone")
@Jessidhia
Jessidhia / gist:5138803
Last active December 14, 2015 19:48
Class notes

Software Quality / Evaluation

  • Quality system implantation
  • Define scope
  • Diagnostics
  • Documentation
  • Transition
  • Quality system certification
  • Pre-audit (find non-conformities)
@Jessidhia
Jessidhia / extract-aa.rb
Created March 13, 2013 20:43
Extracts album art embedded in audio files. If given a directory, will recursively extract the album art from the first file in each subdir that has embedded art.
#! /usr/bin/env ruby
require 'open3'
require 'json'
def ff_find_first(*binaries)
binaries.find do |cmd|
begin
pid = Process.spawn(cmd, '-version', [:in, :out, :err] => :close)
Process.wait2(pid)[1].success?
#! /usr/bin/env ruby
require 'dm-core'
require 'unicode'
DataMapper::Logger.new($stdout, :info)
DataMapper.setup(:default, "sqlite://#{ENV['HOME']}/.kadr/db")
module KADR
class List
@Jessidhia
Jessidhia / gist:5373607
Created April 12, 2013 17:19
Musicbrainz Picard tagging script
$set(date,%originaldate%)
$if(%albumsort%,,$set(albumsort,%album%)))
$set(albumsort,$if(%catalognumber%,%catalognumber% ,)%albumsort%)
$set(albumsort,$if(%originaldate%,%originaldate% ,)%albumsort%)
$unset(compilation)
#! /usr/bin/env perl
use v5.14;
use strict;
use warnings;
use List::Util qw{first};
sub read_line {
my $line = scalar <>;
return () unless $line;
#! /usr/bin/env perl
use v5.14;
use strict;
use warnings;
use List::Util qw{first sum};
use IO::Handle;
sub debug(@) {
return unless $ENV{DEBUG};
@Jessidhia
Jessidhia / 0001-Make-fontconfig-less-dumb-on-windows.patch
Last active December 20, 2015 01:29
[PATCH] Make fontconfig-2.11.0 less dumb on windows
From 771818fab860a6e897f4046d67d8fd9949662977 Mon Sep 17 00:00:00 2001
From: "Diogo Franco (Kovensky)" <diogomfranco@gmail.com>
Date: Sat, 25 Jan 2014 18:04:20 -0300
Subject: [PATCH] Make fontconfig-2.11.0 less dumb on windows
Yes, fontconfig's indentation is that weird.
Adds the windows font directory to the default search path, stores
fontconfig cache files in a folder in the local application data folder.
This behaves correctly with roaming profiles and doesn't litter the