This file contains hidden or 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 -w | |
use strict; | |
use Text::Xslate; | |
use AnyEvent::JSONRPC::Lite::Server; | |
use Getopt::Long; | |
my ( $port, $template_path ); | |
GetOptions( "port=i" => ¥$port, "path=s" => ¥$template_path ); |
This file contains hidden or 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
Checking if you have Pickles 0 ... No | |
==> Found dependencies: Pickles | |
Searching Pickles on cpanmetadb ... | |
--> Working on Pickles | |
Fetching http://search.cpan.org/CPAN/authors/id/D/DM/DMAKI/Pickles-0.08.tar.gz | |
-> OK | |
Unpacking Pickles-0.08.tar.gz | |
Entering Pickles-0.08 | |
Checking configure dependencies from META.yml | |
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56) |
This file contains hidden or 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
- var html='<script type="text/javascript" src="http****?hoge=fuga&foo=bar"><script>' | |
| !{html} |
This file contains hidden or 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
"選択範囲に対してperltidyを実行する例ですが、 | |
noremap <buffer> ,ptv <Esc>:'<,'>! perltidy -pbp<CR> | |
"こんな感じでいけます。'<,'>がヴィジュアルモードでの選択範囲を表してます | |
"選択して ,ptv とタイプすると選択範囲が perltidy -pbp に渡され、選択範囲がperltidyの標準出力で置換されます |
This file contains hidden or 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 utf8; | |
use Docca; | |
use Data::Section::Simple qw/get_data_section/; | |
my $docca = Docca->new( | |
from => { Xatena => { converter => { hatena_compatible => 1 }, }, }, | |
to => { PDF => { bin_name => '/usr/local/bin/wkhtmltopdf', }, }, |
This file contains hidden or 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
#logo-container, #search-submit, /*#chrome-lhn-menu,*/ #viewer-footer, #mark-#viewer-refresh, #item-up-down-buttons, #search div[class="goog-inline-block jfk-button jfk-button-action"] { | |
display: none !important; | |
} | |
#gb, #top-bar { | |
visibility: collapse !important; | |
height: 0px !important; | |
border: none !important; | |
} | |
#gbg { | |
z-index: 20010 !important; |
This file contains hidden or 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 node | |
(function() { | |
var verbose = false; | |
var args = process.argv; | |
var fs = require("fs"); | |
var jsmeter = require("jsmeter").jsmeter; | |
for(var a = 2; a < args.length; a++) { | |
if(args[a] === "--verbose") { | |
verbose = true; |
This file contains hidden or 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 | |
NODE_VERSIONS=("v0.4.12" "v0.6.5") | |
VERSION_MANAGER="/usr/local/bin/nodebrew use" | |
for val in ${NODE_VERSIONS[@]} | |
do | |
$VERSION_MANAGER $val | |
npm run-script install | |
npm run-script test |
This file contains hidden or 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 <map> | |
#include <string> | |
#include <cstdlib> | |
#include <iostream> | |
#include <fstream> | |
#include <ux/ux.hpp> | |
using namespace std; | |
int main(int argc, char** argv){ |
This file contains hidden or 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
var assert = function(expr, msg){ | |
var message = 'Assertion failed'; | |
if(msg) message += ': ' + msg; | |
if(!expr) throw new Error(message); | |
}; | |
var matchResultA; | |
(function(){ | |
var A = RegExp('.'); |