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
(defun prt-introduce-variables () | |
(interactive) | |
(if mark-active | |
(let ( | |
(resultbuf (get-buffer-create "*introduce-variables*")) | |
) | |
(with-current-buffer resultbuf | |
(setq buffer-read-only nil) | |
(erase-buffer) | |
) |
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 URI; | |
use DateTime; | |
use Test::More; | |
package Immutable { | |
sub new { | |
my ($class, $obj) = @_; | |
bless { |
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
gem "urls", git: "https://gist.github.com/8e3fde72960e9adbbc7b5cbf4e0d5861.git" |
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 'uri' | |
while line = gets | |
begin | |
URI.extract(line, ['http', 'https']).each do |uri| | |
puts uri | |
end | |
rescue | |
end | |
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
# Description: | |
# LGTM | |
# | |
# Commands: | |
# hubot LGTM - LGTM | |
# hubot lgtm register <URL> - register a new LGTM | |
BRAIN_KEY = 'lgtm' | |
module.exports = (robot) -> |
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
% for char in {a-z}; do; which $char; done; | |
a not found | |
b not found | |
c not found | |
d not found | |
e () { | |
emacsclient -n ${*:-.} 2> /dev/null || open -a /Applications/Emacs.app ${*:-.} | |
} | |
f () { | |
cd $__session_from |
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
@startuml | |
class HTTP::Message::PSGI { | |
{static} new($content, $chunked) | |
+ req_to_psgi() | |
+ res_from_psgi($psgi_res) | |
+ HTTP::Request::to_psgi() | |
+ HTTP::Response::from_psgi() | |
+ read() | |
+ close() | |
- _res_from_psgi($status, $headers, $body) |
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
body { | |
border-radius: 0px !important; | |
} |
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
% convert -trim sozai-big.png sozai-trim.png | |
% identify sozai-trim.png | |
sozai-trim.png PNG 2385x2885 2834x3000+286+115 8-bit sRGB 3.756MB 0.000u 0:00.000 | |
% convert -resize 2300x3000 -gravity south -background white -extent 2300x3000 sozai-trim.png onigiri.jpg |
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
#!/bin/bash | |
echo -n ! | |
exec git "$@" |