サイズがあまりに大きくなってしまったので、gist ではなくて github 上で管理するようにしました。
https://github.com/Shinpeim/process-book
URL 変わっちゃうの申し訳ないんだけど、一覧性が高くなるのと pull req が受け取れるメリットのほうを取ります。せっかく読みにきてくれたのにひと手間かかっちゃってすみません。
サイズがあまりに大きくなってしまったので、gist ではなくて github 上で管理するようにしました。
https://github.com/Shinpeim/process-book
URL 変わっちゃうの申し訳ないんだけど、一覧性が高くなるのと pull req が受け取れるメリットのほうを取ります。せっかく読みにきてくれたのにひと手間かかっちゃってすみません。
<?php | |
function nyan(){ | |
return 1; | |
} | |
$nyan = NyAn(); | |
var_dump($nyan); // => int(1) |
package Yancha::Plugin::SalvageDarkHistory; | |
use strict; | |
use warnings; | |
sub setup { | |
my ($class, $sys) = @_;$sys->register_hook( 'before_send_post', sub { | |
my $int = int rand 100; #数字が低いほど高確率 | |
return if $int; | |
my $pid = fork; |
ChefとかPuppetとかの勉強会です
次回があるかはわかりませんが、今回はChef成分多めになっております
Twitterハッシュタグ #pfcasual
IRCチャンネル #chef-casual@freenode
use strict; | |
use warnings; | |
use Test::More; | |
BEGIN { | |
use List::Util (); | |
no warnings 'redefine'; |
use strict; | |
use warnings; | |
use feature 'say'; | |
use AE; | |
use AnyEvent::IRC::Server; | |
use AnyEvent::IRC::Util; | |
use Getopt::Long; | |
use Yancha::Client; | |
use LWP::UserAgent; | |
use AnyEvent::IRC::Client; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
require "singleton" | |
class Option | |
def map(f) | |
flatmap(->(x){option(f.call(x))}) | |
end | |
end | |
def option(value) | |
if value == nil |
# -*- mode: sh -*- | |
_cpanm() { | |
local cur prev | |
COMPREPLY=() | |
cur=${COMP_WORDS[COMP_CWORD]} | |
prev=${COMP_WORDS[COMP_CWORD-1]} | |
opt_bool=(--verbose --quiet --interactive --force --notest --test-only --sudo --installdeps --showdeps --reinstall --mirror-only --prompt --self-contained --self-upgrade --version --dev | |
--with-all-features --with-develop --without-develop --pp --pureperl |