Skip to content

Instantly share code, notes, and snippets.

Avatar

moyashi moyashi

View GitHub Profile
@moyashi
moyashi / EgoProwlKai.rb
Created Feb 20, 2014
EgoProwlで検索クエリに-noprowlが付いてたら対象にしないという改造
View EgoProwlKai.rb
# 新設判定メソッド
def qualified_query?( query )
if ( query.include?('-noprowl') )
return false
else
return true
end
end
View chromeToTweetbot2.js
javascript:(function()%7B%20var%20prefix%3D%22tweetbot%3A%2F%2F%2Fpost%3Ftext%3D%22%3B%20var%20postfix%3D%22%26callback_url%3Dgooglechrome%3A%22%3B%20var%20mes%3DencodeURIComponent('%22'%2Bdocument.title%2B'%22%20'%2Blocation.href)%3B%20location.href%3Dprefix%2Bmes%2Bpostfix%3B%7D)()%3B
View pull_image_from_amazon.js
// ↓ブックマークレット
javascript:(function(){%20var%20width%20=%20"200";%20var%20format%20=%20"<div%20align=\"center\"%20class=\"amzimg\"><img%20src=\"$src\"%20width=\""+%20width%20+%20"\"%20/></div>";%20var%20fmt%20=%20function%20(text,%20table)%20{%20%20%20var%20varpat%20=%20new%20RegExp("^([\\s\\S]*?)\\$([_a-zA-Z0-9]+)",%20"m");%20%20%20var%20m,%20z%20=%20'';%20%20%20while%20((m%20=%20text.match(varpat)))%20{%20%20%20%20%20var%20subtext%20=%20m[0],%20value%20=%20table[m[2]];%20%20%20%20%20if%20(typeof%20value%20===%20'function')%20{%20value%20=%20value();%20}%20%20%20%20%20z%20+=%20value%20!==%20undefined%20?%20m[1]%20+%20value.toString()%20:%20subtext;%20%20%20%20%20text%20=%20text.substring(subtext.length);%20%20%20}%20%20%20z%20+=%20text;%20%20%20return%20z;%20};%20var%20code%20=%20"";%20asin%20=%20$('input#ASIN');%20if%20(asin.length%20>%200)%20{%20%09code%20=%20asin[0].value;%20}%20else%20{%20%09match%20=%20$('body')[0].innerHTML.match(/<li><b>ISBN-10:<\/b>%20([0-9]{10})<\/li>/);%20%09if%20(match%20!=%20null
View gist:11207595
iOS-Runtime-Headers-master $ grep -ir RemoteInspector *
Frameworks/UIKit.framework/_UIServiceWebViewController.h:- (void)_setupRemoteInspectorDetailsForRequestingProcess;
PrivateFrameworks/WebKit.framework/WebView.h:+ (void)_disableAutoStartRemoteInspector;
PrivateFrameworks/WebKit.framework/WebView.h:+ (void)_disableRemoteInspector;
PrivateFrameworks/WebKit.framework/WebView.h:+ (void)_enableRemoteInspector;
PrivateFrameworks/WebKit.framework/WebView.h:+ (BOOL)_hasRemoteInspectorSession;
PrivateFrameworks/WebKit.framework/WebView.h:+ (BOOL)_isRemoteInspectorEnabled;
PrivateFrameworks/WebKit.framework/WebView.h:- (id)remoteInspectorUserInfo;
PrivateFrameworks/WebKit.framework/WebView.h:- (void)setIndicatingForRemoteInspector:(BOOL)arg1;
PrivateFrameworks/WebKit.framework/WebView.h:- (void)setRemoteInspectorUserInfo:(id)arg1;
View gist:2f7961d33e0d62bef30e
brompton OR ブロンプトン -入札数 -from:gudon910 -from:olafugar -from:EOS910 -from:akkun910 -from:tarosuke_B -from:yamajirushi lang:ja
@moyashi
moyashi / gist:39545c029e401ba4a3e0
Created Oct 16, 2014
irMagician + REX-WIFIUSB1
View gist:39545c029e401ba4a3e0
↓接続 /dev/ttyACM0として 認識成功
usb 2-1: new full speed USB device using rt3xxx-ohci and address 2
usb 2-1: configuration #1 chosen from 1 choice
drivers/usb/class/cdc-acm.c: This device cannot do calls on its own. It is no modem.
cdc_acm 2-1:1.0: ttyACM0: USB ACM device
↓切断
usb 2-1: USB disconnect, address 2
↓再接続、認識失敗
usb 2-1: new full speed USB device using rt3xxx-ohci and address 3
usb 2-1: device descriptor read/64, error -62
@moyashi
moyashi / gist:47a4f4a48c489619e584
Last active Aug 29, 2015
Kindle Cloud Reader ( https://read.amazon.co.jp/ ) で読んでる本の画像サイズを表示するブックマークレット
View gist:47a4f4a48c489619e584
javascript:img%3D%24%28%27%23KindleReaderIFrame%27%29.contents%28%29.find%28%27%23kindleReader_content%20iframe%27%29.first%28%29.contents%28%29.find%28%27img%27%29%3Balert%28%22height%3A%22%20%2B%20img.attr%28%27height%27%29%20%2B%20%22%20width%3A%22%20%2B%20img.attr%28%27width%27%29%29
@moyashi
moyashi / gist:3d11f2417e9a3c5a7771
Created Dec 26, 2014
RegionalSystemSoundsThatShareBehaviour.plist
View gist:3d11f2417e9a3c5a7771
<?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>J</key>
<dict>
<key>BeginVideoRecording</key>
<string>BeginVideoRecordingAlwaysHeard</string>
<key>CameraShutter</key>
<string>CameraShutterAlwaysHeard</string>
View ZweiteGPS Error Log
Jan 15 19:19:44 iPhone5s ZweiteGPS[12790] <Warning>: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
Jan 15 19:19:44 iPhone5s ZweiteGPS[12790] <Warning>: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
Jan 15 19:19:45 iPhone5s ZweiteGPS[12790] <Warning>: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
Jan 15 19:19:45 iPhone5s ZweiteGPS[12790] <Warning>: Unable to get data for URL: The operation couldn’t be completed. (Cocoa error 260.)
Jan 15 19:19:45 iPhone5s ZweiteGPS[12790] <Warning>: Unknown activity items supplied: (
"<UIPrintInfo: 0x17107e940>"
)
Jan 15 19:19:45 iPhone5s ZweiteGPS[12790] <Warning>: LaunchServices: invalidationHandler called
Jan 15 19:19:45 iPhone5s com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.system) <Error
View flashput.py
#coding: utf-8
import os
import requests
import clipboard
host = "192.168.0.1"
dir = "FlashAir"
fname = "CLIP.TXT"
You can’t perform that action at this time.