I hereby claim:
- I am phluid61 on github.
- I am phluid61 (https://keybase.io/phluid61) on keybase.
- I have a public key whose fingerprint is B99C 2E7E 1FD9 EABB A0CE C529 62B4 8913 E7EC 5EF9
To claim this, I am signing this object:
sub render_possible_doi | |
{ | |
my( $session, $field, $value ) = @_; | |
$value = "" unless defined $value; | |
$value =~ s!^https?://(?:dx\.)?doi\.org/+!!; | |
if( $value !~ m!(doi:)?10(\.[^./]+)+/.+!i ) { return $session->make_text( $value ); } | |
$value =~ s!^doi:!!i; |
require_relative 'b' | |
Foo.new.foo | |
p ['Main in a.rb', $global, bar, Baz.qux] |
$ ruby -v re.rb | |
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] | |
non-word: | |
/\W/ => [] | |
/\W/i => [] | |
/[\W]/ => [] | |
/[\W]/i => ["fF", "Ss"] | |
not word/leading word: | |
/^\w/ => ["f"] |
I hereby claim:
To claim this, I am signing this object:
/* | |
* URL: "https://tools.ietf.org/html/*" | |
*/ | |
body{font-size:1em!important;background:#fff;color:#000} | |
div.content{font-family:monospace;width:72ch!important; padding:0; margin:0 auto} | |
hr{width:100%!important;margin:0.5em 0} | |
small small{font-family:sans-serif;font-style:italic} | |
/* pure decoration: */ |
#!/bin/env ruby | |
if ARGV.length == 0 | |
puts "Usage: #$0 *.css" | |
exit 1 | |
end | |
$dict = {} | |
ARGV.each do |f| |
"use strict"; | |
(function(globals,$){ | |
/* scoped, safe, happy code goes here */ | |
$(function(){ | |
/* example jQuery onload function */ | |
}); | |
})((1,eval)('this'),jQuery); |
puts RUBY_DESCRIPTION | |
if $VERBOSE | |
# Works: | |
prc = proc{|a,b,c| [a,b,c] } | |
p prc.curry.call() | |
p prc.curry.call(1) | |
p prc.curry.call(1,2) | |
p prc.curry.call(1,2,3) |
<?php | |
function curl_get_contents($url) { | |
$ch = curl_init($url); | |
# curl options | |
curl_setopt($ch, CURLOPT_HEADER, FALSE); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
# socket options | |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); | |
curl_setopt($ch, CURLOPT_TIMEOUT, 20); |
AddType text/html .html_gz | |
AddType text/javascript .js_gz | |
AddType text/css .css_gz | |
AddEncoding gzip .html_gz .css_gz .js_gz | |
IndexIgnore *_gz | |
RewriteCond %{HTTP:Accept-Encoding} gzip | |
RewriteCond %{REQUEST_FILENAME}_gz -f |