This file contains 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
// ==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 |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using OpenTK; | |
using OpenTK.Graphics.OpenGL; | |
using OpenTK.Graphics; | |
using System.Drawing; | |
namespace GLTut | |
{ | |
public class Program : IDisposable |
This file contains 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
CFLAGS = -std=c99 -Wall -Wextra | |
all: q1 q2 | |
q1: q1.o bencode.o | |
q2: q2.o bencode.o | |
test: test.o bencode.o |
This file contains 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
#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 |
This file contains 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
; | |
; 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:: |
This file contains 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
CC=gcc | |
CFLAGS=-Wall -Wextra -Werror | |
LDFLAGS=-Wl,--as-needed | |
LDLIBS=-lm | |
all: q1 q2 q3 q4 q5 | |
q%: q%.c |
This file contains 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 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 "$@" |
This file contains 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
*.o | |
main | |
main.exe |
This file contains 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
@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 |
This file contains 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
# 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 |