Skip to content

Instantly share code, notes, and snippets.

💤

WADA Takashi watagashi

💤
Block or report user

Report or block watagashi

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
@watagashi
watagashi / thumbnail.js
Created May 25, 2014
Multiple Media Entities in Statuses for twicli
View thumbnail.js
registerPlugin({
newMessageElement: function(elem, tw) {
tw = tw.retweeted_status || tw;
var entities = tw.extended_entities || tw.entities;
if (entities && entities.media) {
for (var i = 0; i < entities.media.length; i++) {
if (entities.media[i].type == "photo") {
addThumbnail(elem,
entities.media[i].media_url + ":thumb",
entities.media[i].expanded_url);
@watagashi
watagashi / httpd.conf.diff
Created Jun 12, 2014
WordPress for OS X (Mavericks)
View httpd.conf.diff
--- /private/etc/apache2/httpd.conf.bak 2014-06-13 01:37:58.000000000 +0900
+++ /private/etc/apache2/httpd.conf 2014-06-13 00:09:57.000000000 +0900
@@ -115,7 +115,7 @@
LoadModule alias_module libexec/apache2/mod_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
#LoadModule perl_module libexec/apache2/mod_perl.so
-#LoadModule php5_module libexec/apache2/libphp5.so
+LoadModule php5_module libexec/apache2/libphp5.so
LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so
View mobileweb.js
// apppend this file after ssl.js
twitterURL = 'http://mobile.twitter.com/';
View gearsgeo.js
registerPlugin({
init: function() {
if(!navigator.geolocation) {
try {
navigator.geolocation = google.gears.factory.create("beta.geolocation");
} catch(e) {
// Not found Gears.
}
}
}
@watagashi
watagashi / share_bookmarklet.txt
Created Oct 4, 2010
Share with Quoting Bookmarklet | dev.twitter.com http://t.co/khZ0IUy
View share_bookmarklet.txt
javascript:(function(){window.twttr=window.twttr||{};var%20D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;if(C>A){G=Math.round((C/2)-(A/2))}window.twttr.shareWin=window.open('http://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');E=F.createElement('script');E.src='https://raw.github.com/gist/609613/sharetweet.js';F.getElementsByTagName('head')[0].appendChild(E)}());
@watagashi
watagashi / tweet_URL_with_twicli.js
Created Oct 9, 2010 — forked from NeoCat/tweet_URL_with_twicli.js
Open twicli and input tweet with current URL, title and selected text
View tweet_URL_with_twicli.js
javascript:void(function(){var%20d=document,w=window,t=(d.selection)?(d.selection.createRange().text):(d.getSelection)?d.getSelection():(w.getSelection)?w.getSelection():'';w.open('http://twicli.neocat.jp/twicli.html?status='+encodeURIComponent((t?'"'+t+'"':'%20>')+'%20'+d.title+'%20'+location.href),'twicli')}())
@watagashi
watagashi / nonFollowerRetweeted.css
Created Oct 17, 2010
nonFollowerRetweeted.css for twicli
View nonFollowerRetweeted.css
.retweeted .non-follower {
color: #555588;
}
View insert_hashtag.js
(function(){
var footerSetting = footer;
registerPlugin({
switchTo: function(m) {
var sel = document.getElementsByClassName("sel");
if(sel.length < 1) return;
if(sel[0].id.indexOf("search-#") != 0) {
You can’t perform that action at this time.