Skip to content

Instantly share code, notes, and snippets.

View watagashi's full-sized avatar
🏠
Working from home, except for the weekend.

WADA Takashi watagashi

🏠
Working from home, except for the weekend.
View GitHub Profile
.get-next {font-size: 4em;}
@watagashi
watagashi / thumbnail.js
Created May 25, 2014 12:00
Multiple Media Entities in Statuses for twicli
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 June 12, 2014 16:44
WordPress for OS X (Mavericks)
--- /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
// apppend this file after ssl.js
twitterURL = 'http://mobile.twitter.com/';
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 October 4, 2010 12:19
Share with Quoting Bookmarklet | dev.twitter.com http://t.co/khZ0IUy
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 October 9, 2010 04:02 — forked from NeoCat/tweet_URL_with_twicli.js
Open twicli and input tweet with current URL, title and selected text
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 October 17, 2010 14:48
nonFollowerRetweeted.css for twicli
.retweeted .non-follower {
color: #555588;
}
(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) {