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 / 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 / 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 / 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 / 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 / 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 / Makefile
Created November 17, 2011 02:13
EE2 test
CC=gcc
CFLAGS=-Wall -Wextra -Werror
LDFLAGS=-Wl,--as-needed
LDLIBS=-lm
all: q1 q2 q3 q4 q5
q%: q%.c
@Jessidhia
Jessidhia / gist:1346563
Created November 7, 2011 23:40
'eject'-like syntax wrapper for CDR as a profile snippet
#! /usr/bin/env bash
# Uses the CDR program from http://www.codeguru.com/cpp/w-p/system/cd-rom/article.php/c5775
# Just remove the "eject () {" and the "}" lines to turn this into a standalone script
eject () {
if [ "$1" = "-t" ]; then
shift;
CDR close "$@"
else
CDR open "$@"
@Jessidhia
Jessidhia / .gitignore
Created October 19, 2011 16:58
EE2 Exercises
*.o
main
main.exe
@Jessidhia
Jessidhia / msys.bat
Created September 28, 2011 14:49
msys.bat modified to try mintty before rxvt
@echo off
rem Copyright (C): 2001, 2002, 2003, 2004, 2005 Earnie Boyd
rem mailto:earnie@users.sf.net
rem This file is part of Minimal SYStem
rem http://www.mingw.org/msys.shtml
rem
rem File: msys.bat
rem Revision: 2.4
rem Revision Date: December 8th, 2005
@Jessidhia
Jessidhia / gist:1176927
Created August 28, 2011 17:06
.profile snippet for making sure an ssh-agent is running
# Make sure we always have a running ssh-agent
# Try and reuse a running one if possible, otherwise start a new one
fail_agent_check () {
ssh-add -l >/dev/null 2>&1
[ "$?" = 2 ];
}
if [ -r "${HOME}/.ssh_agent" ]; then
# the .ssh_agent file already has an 'echo' so augment it