Skip to content

Instantly share code, notes, and snippets.

View soren121's full-sized avatar
🌸
Working from home

Nicholas Narsing soren121

🌸
Working from home
View GitHub Profile
@soren121
soren121 / mcomix-horiz-scroll-off.patch
Created December 30, 2017 02:15
MComix 1.21 patch to disable horizontal scroll page flip
--- event.py 2016-02-12 13:51:58.000000000 -0500
+++ event.py 2017-12-29 21:11:45.678336432 -0500
@@ -484,16 +484,10 @@
self._scroll_with_flipping(0, prefs['number of pixels to scroll per mouse wheel event'])
elif event.direction == gtk.gdk.SCROLL_RIGHT:
- if not self._window.is_manga_mode:
- self._window.flip_page(+1)
- else:
- self._previous_page_with_protection()

Keybase proof

I hereby claim:

  • I am soren121 on github.
  • I am soren121 (https://keybase.io/soren121) on keybase.
  • I have a public key ASBgb7W6yO-JrqdeysbyXbUUS8UvPCAb5xejTxjA2dgSjQo

To claim this, I am signing this object:

@soren121
soren121 / morse.py
Last active December 17, 2015 05:58
Raspberry Pi LED Morse code script
#!/usr/bin/python
import RPi.GPIO as gpio
import sys, time
def blink(pin, duration):
gpio.output(pin, gpio.HIGH)
time.sleep(0.4 * duration)
gpio.output(pin, gpio.LOW)
time.sleep(0.4)
<?php
// we're loading the Database TestCase here
require 'PHPUnit' . DIRECTORY_SEPARATOR . 'Extensions' .
DIRECTORY_SEPARATOR . 'Database' . DIRECTORY_SEPARATOR .
'TestCase.php';
class FixtureTestCase extends PHPUnit_Extensions_Database_TestCase {
public $fixtures = array(
'posts',
@soren121
soren121 / tumblr-archive-post-count.js
Last active November 15, 2017 01:57
Tampermonkey script to add post counts back to your Tumblr archive page.
// ==UserScript==
// @name Tumblr Archive Post Count
// @version 1.1
// @description STAFF STAHP REMOVING FEATURES I LIKE
// @author soren121 <soren121@sorenstudios.com>
// @match https://*.tumblr.com/archive
// @match https://*.tumblr.com/archive/*
// @run-at document-idle
// ==/UserScript==