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 / gist:1382591
Created November 21, 2011 13:13
Compose Key hack for Autohotkey_L
;
; Autohotkey_L compose hack for Windows.
; Auto-generated from X Compose file by a script of <tuomov@iki.fi>.
;
; Modded with a few extra combinations
;
Endkeys={Esc}{Enter}
RAlt::
@Jessidhia
Jessidhia / crc32.c
Created December 16, 2011 02:35
CRC32 summer in C; unicode-compatible on windows
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#define CHUNK_SIZE 4096
#ifdef _WIN32
#include <wchar.h>
#include <io.h>
#define WIN32_LEAN_AND_MEAN
@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 / Program.cs
Created February 12, 2012 20:52
OpenTK shader loading / handling partial wrapper
using System;
using System.Collections.Generic;
using OpenTK;
using OpenTK.Graphics.OpenGL;
using OpenTK.Graphics;
using System.Drawing;
namespace GLTut
{
public class Program : IDisposable
@Jessidhia
Jessidhia / pixiv_novel_comic_nobs.js
Last active December 21, 2015 11:04
Greasemonkey script that removes the blackscreen that's shown when the viewer loses keyboard or mouse focus.
// ==UserScript==
// @name pixiv novel/comic anti-blackscreen
// @namespace https://gist.github.com/3172387
// @description Removes the blackscreen that's shown when the viewer loses keyboard or mouse focus.
// @icon http://comic.pixiv.net/favicon.ico
// @match *://comic.pixiv.net/viewer/stories/*
// @match *://novel.pixiv.net/viewer/stories/*
// @version 4
// @updateURL https://gist.github.com/raw/3172387/pixiv_novel_comic_nobs.js
// @grant none
@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