Skip to content

Instantly share code, notes, and snippets.

CR kyuucr

Block or report user

Report or block kyuucr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View intellihide.js
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
const Shell = imports.gi.Shell;
const Main = imports.ui.main;
const Me = imports.misc.extensionUtils.getCurrentExtension();
@kyuucr
kyuucr / .jshintrc
Last active Aug 29, 2015
My .jshintrc file for gnome-shell extension development
View .jshintrc
{
"esnext": true,
"undef": true,
"unused": "vars",
"predef": [ "imports", "global" ]
}
@kyuucr
kyuucr / dev-proximity.patch
Created May 9, 2014
Pressure patch for xf86-input-wizardpen 0.8.1
View dev-proximity.patch
--- src/wizardpen.c.orig 2014-05-10 02:20:43.040405929 +0800
+++ src/wizardpen.c 2014-05-10 02:19:56.852518688 +0800
@@ -836,6 +836,7 @@
}
}
+ dev->proximity = NULL;
if (InitProximityClassDeviceStruct (dev) == FALSE)
{
xf86Msg(X_ERROR, "%s: unable to allocate ProximityClassDeviceStruct\n", local->name);
@kyuucr
kyuucr / gist:2658573
Created May 11, 2012
Android - Finish activity with result
View gist:2658573
Intent data = new Intent();
[...]
if (getParent() == null) {
setResult(Activity.RESULT_OK, data);
} else {
getParent().setResult(Activity.RESULT_OK, data);
}
finish();
@kyuucr
kyuucr / gist:2667195
Created May 12, 2012
Android - Hide context menu on certain ListView item.
View gist:2667195
public class ExampleActivity extends ListActivity {
[...]
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
[...]
@kyuucr
kyuucr / mes-decrypt.py
Last active Nov 16, 2015
MES file text extractor from Dead of the Brain (PC-9801, 1992)
View mes-decrypt.py
#!/usr/bin/python
import re
filename = './MES/OPEN_1.MES'
with open(filename, 'rb') as f:
content = f.read()
# get lines from bytes start marker 0xBA 0x23-25 to end marker 0xBA 0x26
# 0x23 == cole, 0x24 == doc, 0x25 == jack(?)
results = re.findall(br'(\xBA[\x23-\x25].*?)\xBA\x26', content)
@kyuucr
kyuucr / ntust-dormweb-indicator.py
Last active Dec 15, 2015
This is an Ubuntu Unity Indicator to track your Dorm internet usage in NTUST. Added manual update quota, changed html parser. Written on Python 2.7
View ntust-dormweb-indicator.py
#!/usr/bin/env python
# -*- coding: utf8 -*-
import appindicator
import bs4
import datetime
import glib
import gtk
import logging
import pynotify
View keybase.md

Keybase proof

I hereby claim:

  • I am kyuucr on github.
  • I am kyuucr (https://keybase.io/kyuucr) on keybase.
  • I have a public key whose fingerprint is 46EB 218B 35A1 809F 1FF8 2044 2B46 267C 0DA7 C4FA

To claim this, I am signing this object:

@kyuucr
kyuucr / twitch-bottom-chat.user.js
Last active Apr 29, 2017
Simple script to modify a Twitch channel so the video will be on top and the chat on bottom, useful for vertical monitor setup. Currently only for theater mode.
View twitch-bottom-chat.user.js
// ==UserScript==
// @name Twitch bottom chat
// @namespace kyuucr-twitch-bottom-chat
// @description Set video top and chat on bottom, useful for vertical monitor setup.
// @include https://www.twitch.tv/*
// @exclude https://www.twitch.tv
// @exclude https://www.twitch.tv/directory*
// @exclude https://www.twitch.tv/messages*
// @exclude https://www.twitch.tv/subscription*
// @exclude https://www.twitch.tv/settings*
@kyuucr
kyuucr / steam-fast-sell.user.js
Last active Oct 27, 2017
Fast sell Steam inventory items for the lowest market price
View steam-fast-sell.user.js
// ==UserScript==
// @name Steam Fast Sell
// @include http*://steamcommunity.com/profiles/*/inventory*
// @include http*://steamcommunity.com/id/*/inventory*
// @description Fast sell Steam items with current price
// @version 2
// @updateURL https://gist.github.com/kyuucr/84c2d99ea09a65fc904a6e40358171c2/raw/steam-fast-sell.user.js
// @namespace kyuucr-steam-fast-sell
// ==/UserScript==
//
You can’t perform that action at this time.