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/perl | |
use strict; | |
use warnings; | |
use Web::Scraper; | |
use URI; | |
use YAML; | |
my $airlines_accident_scraper = scraper { |
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
let foo = "post from gist-vim" |
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
@echo off | |
if not "%SSH_AGENT_PID%" == "" goto end | |
for /f "eol=; tokens=1,2 delims==;" %%1 in ('ssh-agent.exe') do ( | |
if "%%1" == "SSH_AUTH_SOCK" set SSH_AUTH_SOCK=%%2 | |
if "%%1" == "SSH_AGENT_PID" set SSH_AGENT_PID=%%2 | |
) | |
ssh-add | |
end |
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
require 'ditz' | |
require 'pathname' | |
config = begin | |
Ditz::Config.from ".ditz-config" | |
rescue SystemCallError => e | |
Ditz::Config.new | |
end | |
issue_dir = Pathname.new(config.issue_dir || '.ditz') | |
project_root = Ditz::find_dir_containing(issue_dir + Ditz::FileStorage::PROJECT_FN) |
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/python | |
# -*- coding: utf-8 -*- | |
class Hoge: | |
def __init__(self): | |
print u"ほげ" | |
hoge = Hoge() |
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
use strict; | |
use warnings; | |
use POSIX; | |
if (my $pid = fork()) { | |
sleep 3; | |
kill TERM => $pid; | |
waitpid( $pid, 0 ); | |
} elsif ($pid == 0) { | |
sleep 10; |
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
#!perl | |
use strict; | |
use warnings; | |
use Config::Pit; | |
use Getopt::Long; | |
use WWW::Mechanize; | |
use Perl6::Say; | |
my $conf = pit_get("vim.com", require => { | |
"username" => "your username on vim.org", # NOTE: do not edit this line |
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
#!perl | |
use strict; | |
use warnings; | |
use Config::Pit; | |
use Getopt::Long; | |
use WWW::Mechanize; | |
use Perl6::Say; | |
my $conf = pit_get("vim.com", require => { | |
"username" => "your username on vim.org", # NOTE: do not edit this line |
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 <iostream> | |
static const int a = ( | |
std::cout << "foo" << std::endl, | |
1); | |
int main(int argc, char** argv) { | |
std::cout << "bar" << std::endl; | |
return 0; | |
} |
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/perl | |
use strict; | |
use warnings; | |
use Config::Pit; | |
use Digest::SHA1 qw(sha1_hex); | |
use Encode; | |
use Getopt::Long; | |
use JSON; | |
use LWP::UserAgent; |
OlderNewer