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
@y-yu
y-yu / inherit.md
Created August 9, 2012 06:57
JavaScriptの継承について

JavaScriptの継承について

全然理解出来てなかったので調べてみた。

経緯

function f () {
	// Class
}
@hakre
hakre / dl-file.php
Created January 2, 2012 21:41
Wordpress login to download uploaded files
<?php
/*
* dl-file.php
*
* Protect uploaded files with login.
*
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in
*
* @author hakre <http://hakre.wordpress.com/>
* @license GPL-3.0+
@NeoCat
NeoCat / tweet_URL_with_twicli.js
Created October 9, 2010 01:52
Open twicli and input tweet with current URL and title
javascript:void(window.open('http://twicli.neocat.jp/twicli.html?status="'+encodeURIComponent(document.title)+'":%20'+location.href,'twicli'))
@azu
azu / twicli_post_canceler.js
Created September 7, 2010 07:10
5秒以内なら送信中止できるtwicli plugin
// ==UserScript==
// @name twicli post canceler
// @namespace http://efcl.info/
// @description twicliのポストを行うのに5秒の猶予を設けて、その間にキャンセルボタンを押せばポストをキャンセルできます。
// @author azu
// @homepage http://efcl.info/
// @twitter https://twitter.com/azu_re
// ==/UserScript==
/* http://gist.github.com/567983.txt をプラグインにロード */
(function(){
@azu
azu / switchViewedSearches.js
Created September 4, 2010 05:11
検索結果のタブを一覧表示するタブを作るtwicli plugin
/* twicli plugin (http://twicli.neocat.jp/)
* switchViewedSearches.js
* 検索結果のタブを一覧表示するタブを作る - サイドバーなど狭い場所で使ってる人向け
* Pluginsに http://gist.github.com/564921.txt を読み込む
*/
registerPlugin({
switchTo: function(tab) {
if (tws_list.length > 1 && !$('viewed_searches')) {
var newTab = document.createElement('a');
newTab.href = 'javascript:void switchViewedSearches()';
/* twicli plugin (http://twicli.neocat.jp/)
* multi-users.js
* 一度タイムラインを表示したことのあるユーザーのタイムラインを簡単に再表示することができます。
* 複数のユーザーのタイムラインを表示することも可能です。
* http://twitter.com/edvakf/status/20406609758
* http://twitter.com/edvakf/status/20406753129
*/
var viewed_users = [];
diff -r 3331756e4232 .hgignore
--- a/.hgignore Thu Jul 08 22:27:55 2010 +0200
+++ b/.hgignore Fri Jul 09 19:13:29 2010 +0900
@@ -42,3 +42,7 @@
*.mo
*.swp
*~
+
+# KaoriYa
+src/Obj/*/pathdef.c