Skip to content

Instantly share code, notes, and snippets.

View norio-nomura's full-sized avatar

Norio Nomura norio-nomura

View GitHub Profile
@norio-nomura
norio-nomura / gist:940027
Created April 25, 2011 01:04
Twitter で共有
javascript:(function(){
var w = window,
d = w.document,
enc = w.encodeURIComponent,
j = (w.getSelection || d.getSelection),
k = d.selection,
l = d.location,
t = d.title,
s = (j ? j() : (k ? k.createRange().text : 0)),
s2 = ((s.toString() === '') ? t : (t + ' "' + s + '"'));
@norio-nomura
norio-nomura / private.xml
Created August 30, 2011 02:38
KeyRemap4MacBook で ¥ → \ に Option+¥ → ¥ にする。
<?xml version="1.0"?>
<root>
<list>
<item>
<name>JIS Yen(¥) to Backslash(\), Option+JIS Yen(¥) to JIS Yen(¥)</name>
<identifier>private.swap_jis_yen_backslash</identifier>
<autogen>--KeyToKey-- KeyCode::JIS_YEN, VK_OPTION, KeyCode::VK_JIS_YEN</autogen>
<autogen>--KeyToKey-- KeyCode::JIS_YEN, KeyCode::VK_JIS_BACKSLASH</autogen>
</item>
</list>
@norio-nomura
norio-nomura / AppDelegate.m
Created October 4, 2012 02:14
How to call objc_msgSendSuper()
//
// AppDelegate.m
// CallSuperMethod
//
#import <objc/objc-runtime.h>
#import "AppDelegate.h"
@interface Superclass : NSObject
- (NSString*)a;
@norio-nomura
norio-nomura / gist:3937593
Created October 23, 2012 08:15
superに任意のメッセージを送る方法
#import <objc/objc-runtime.h>
// [super description];
struct objc_super s = {self, [self superclass]};
objc_msgSendSuper(&s, @selector(description));
@norio-nomura
norio-nomura / Info.plist
Last active December 29, 2015 07:59
EasySIMBL-1.6 compatible Info.plist for ColorfulSidebar.bundle.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>ColorfulSidebar</string>
<key>CFBundleIdentifier</key>
<string>jp.cvz.ColorfulSidebar</string>
@norio-nomura
norio-nomura / project.js.patch
Last active August 29, 2015 13:57
Additional patch for project.js
--- /Applications/Atom.app/Contents/Resources/app/src/project.js.orig 2014-03-24 09:39:52.000000000 +0900
+++ /Applications/Atom.app/Contents/Resources/app/src/project.js 2014-03-25 15:53:16.000000000 +0900
@@ -335,6 +335,7 @@
searchOptions = {
ignoreCase: regex.ignoreCase,
inclusions: options.paths,
+ follow: options.follow,
includeHidden: true,
excludeVcsIgnores: atom.config.get('core.excludeVcsIgnoredPaths'),
exclusions: atom.config.get('core.ignoredNames')
#pragma mark - MutableChildren
- (void)testMutableChildren
{
NSArray *array = @[@"0",
@"1",
[NSNull null],
@"2",
@[@"0",
[NSNull null],

Keybase proof

I hereby claim:

  • I am norio-nomura on github.
  • I am norio_nomura (https://keybase.io/norio_nomura) on keybase.
  • I have a public key whose fingerprint is 0010 36FA 2504 DBFF 37BA 2EF8 D4A7 318E B7F7 138D

To claim this, I am signing this object:

@norio-nomura
norio-nomura / swift-demangle-filter.py
Last active April 27, 2022 04:17
`swiftc -emit-assembly`してシンボルを`swift-demangle`で変換する
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# usage: swift-demangle-filter.py [-h] [-o <outfile>] [<file> <options>]
#
# Read swift assembly, demangle Swift Symbol and output it.
#
# positional arguments:
# <file> <options> If <file> has .swift, compile it with <options>; or read
# (<file> or <stdin>) as assembly.
@norio-nomura
norio-nomura / How I stream from iPad to Twitch and Ustream.md
Last active November 20, 2020 18:18
How I stream from iPad to Twitch and Ustream.

How I stream from iPad to Twitch and Ustream.

I'm broadcasting my iPad game playing on Twitch.tv and Ustream.tv.

I'm using following hardwares.

  • Playing Game: iPad 3 w/ iOS 7.1.2
  • Broadcasting to Twitch: MacBook Air Mid 2011 w/ OS X 10.9

I'm using following softwares on Mac.