This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -- GrowlMonkey stuff below here - do not edit | |
GrowlMonkey = function(){ | |
function fireGrowlEvent(type, data){ | |
var element = document.createElement("GrowlEventElement"); | |
element.setAttribute("data", JSON.stringify(data)); | |
document.documentElement.appendChild(element); | |
var evt = document.createEvent("Events"); | |
evt.initEvent(type, true, false); | |
element.dispatchEvent(evt); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* json2.js | |
* 2008-01-17 | |
* Public Domain | |
* No warranty expressed or implied. Use at your own risk. | |
* See http://www.JSON.org/js.html | |
*/ | |
if(!this.JSON){JSON=function(){function f(n){return n<10?'0'+n:n;} | |
Date.prototype.toJSON=function(){return this.getUTCFullYear()+'-'+ | |
f(this.getUTCMonth()+1)+'-'+ | |
f(this.getUTCDate())+'T'+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -- | |
set -e | |
echo "" | |
echo "START POST-MERGE HOOK" | |
echo "" | |
HOOK_DIR=`dirname $0` #git_hooks directory | |
PROC_DIR="$HOOK_DIR/../.." #vimproc directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
printf("Hello, World!\n"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -name ".DS_Store" -print -exec rm -r {} ";" ; find . -name "._*" -exec rm -r {} ";" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
# こんな変数がありましたとさ | |
my $data = { param => "foo\n" }; | |
for (0..1) { | |
# 丁寧に?書くとこうなる | |
if (defined($data->{param})) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Crowsnest Tweak - Open item in background by pressing 'v' | |
// @namespace http://blog.tndl.net/2012/05/04/474/ | |
// @description Crowsnest Tweak - Open item in background by pressing 'v' | |
// @include http://www.crowsnest.tv/* | |
// ==/UserScript== | |
var x; | |
var link; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Skype::Any; | |
use File::Spec; | |
use File::Basename; | |
use lib File::Spec->catdir(dirname(__FILE__), '..', 'lib'); | |
use Term::ReadLine; | |
use Data::Dumper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
# こんな変数がありましたとさ | |
my $data = { param => "foo\n" }; | |
for (0..1) { | |
# 丁寧に?書くとこうなる | |
# if ($data->{param}) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# wiki-data 以下のパーミッション設定 | |
ch wiki-data | |
chmod 777 attach/ backup/ cache/ counter/ diff/ trackback/ wiki/ | |
chmod 666 cache/* wiki/* |
OlderNewer