๐
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 Encode; | |
use Gtk2 -init; | |
my $data = decode_utf8 do { local $/; <STDIN> } || ''; | |
&main();exit; |
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
// Running JSDeferred on WSH | |
var _util = { | |
cat : function(f){ | |
if(f.match(/^http:/)) { | |
var xhr = new ActiveXObject("Microsoft.XMLHTTP"); | |
xhr.open("GET", f, false); | |
xhr.send(); | |
return xhr.responseText; | |
} | |
return (new ActiveXObject("Scripting.FileSystemObject")).OpenTextFile(f,1,false).ReadAll(); |
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
#if _WIN32_WINNT < 0x0500 | |
# error "should be NT" | |
#endif | |
#include <windows.h> | |
#include <tlhelp32.h> | |
#include <winternl.h> | |
#include <stdio.h> | |
DWORD getppid() | |
{ |
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
package main | |
import "sort"; | |
type PeYon []string | |
func (p PeYon) Len() int { | |
return len(p); | |
} | |
func (p PeYon) Less(i, j int) bool { | |
return p[i] < p[j]; |
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 gist: replace title with filename | |
// @namespace http://d.hatena.ne.jp/youpy/ | |
// @include http://gist.github.com/* | |
// @exclude http://gist.github.com/gists | |
// ==/UserScript== | |
(function() { | |
var $ = $ || unsafeWindow.$; | |
var username = $('#owner a').text() |
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
้ข่ฅฟใ้จใงใใ |
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
mattn: ใใใใพใใใใพใผ? | |
ใใใใกใใใพใ | |
ใกใใใฎใ | |
ใใใใใกใใใพใใ | |
ใใใใใใใ ใ ใใใ ใ ใ ใ ใ ใใโโโโโ | |
ใใใใใใใใใใใ ใ ใ ใ ใ ใใใ| ใ | |
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
mattn: ใใใใพใใใใพใผ? | |
ใใใใกใใใพใ |
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
mattn: pipe() ใฏ Perl ใฎๅ ดๅใwin32 ใงใใใใใพใใ? | |
ๅใใพใใ | |
----------------------------------------- | |
#!/usr/bin/perl -w | |
use IO::Handle; | |
pipe(PARENTREAD, PARENTWRITE); |
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
# Blosxom Plugin: urlshorter | |
# Author(s): Kyo Nagashima <[email protected]>, http://hail2u.net/ | |
# Version: 2009-04-15 | |
# Documentation: See the bottom of this file or type: perldoc urlshorter | |
package urlshorter; | |
use strict; | |
use vars qw($link_element); |