View world-travel-twitter-embeds.html
<blockquote data-conversation="none" class="twitter-tweet"><p lang="und" dir="ltr">At <a href="https://twitter.com/hashtag/RioCarnaval2017?src=hash&amp;ref_src=twsrc%5Etfw">#RioCarnaval2017</a> <a href="https://t.co/TcyDzn8Eqd">pic.twitter.com/TcyDzn8Eqd</a></p>&mdash; Shu Uesugi (@chibicode) <a href="https://twitter.com/chibicode/status/835603023367979010?ref_src=twsrc%5Etfw">February 25, 2017</a></blockquote>
<blockquote data-conversation="none" class="twitter-tweet"><p lang="en" dir="ltr">Beach Party in Rio de Janeiro <a href="https://t.co/SvSZiyCS6Z">pic.twitter.com/SvSZiyCS6Z</a></p>&mdash; Shu Uesugi (@chibicode) <a href="https://twitter.com/chibicode/status/835970813975281664?ref_src=twsrc%5Etfw">February 26, 2017</a></blockquote>
<blockquote data-conversation="none" class="twitter-tweet"><p lang="en" dir="ltr">Rio Carnival 2017 Samba Parade! It was a surreal experience. Sucks that I left my iPhone at home. <a href="https://t.co/sY4YpgD9qZ">pic.twitter.com/sY4YpgD9qZ</a></p>&mdash; Shu Uesugi (@chibico
View TOEFLの点数のインフォグラフィック.md

2013年10月に旧ブログに書いた記事です。ブログ移行に伴い削除しました。

TOEFLの点数のインフォグラフィック

ネット上で知り合ったデザイナーさんのなかこちゃんに、TOEFLの点数のインフォグラフィックを作ってもらったので、みなさんにご覧頂きたい。

TOEFL 点数

TOEFLiBTのinfograficsつくってみたー! 日本の平均点をアジア諸国と比べてみたー! 大学生の頃、70くらいで頑張ったと勘違いしていたから、 点数上げるの大変だけど、100点でも生活に支障あるよーと書きたかった。 pic.twitter.com/BqyvrdnUVp

— Nakako Teresa Minami (@minakaco0301) October 6, 2013
View trump.sh
# Check Donald Trump's Site
# See: https://blog.chibicode.com/you-can-submit-a-pull-request-to-inject-arbitrary-js-code-into-donald-trumps-site-here-s-how-782aa6a17a56
# ==================================================================
function trump {
curl -s https://secure.donaldjtrump.com/donate-homepage > /tmp/trump.html
if grep -q "igorescobar.github.io" /tmp/trump.html
then
echo "MAKE AMERICA GREAT AGAIN!"
else
echo "igorescobar.github.io has disappeared from Trump's site"
View init.coffee
atom.commands.add 'atom-text-editor.vim-mode:not(.insert-mode)',
'user:vim-mode-move-down-three-times': (event) ->
atom.commands.dispatch event.target, 'vim-mode:move-down'
atom.commands.dispatch event.target, 'vim-mode:move-down'
atom.commands.dispatch event.target, 'vim-mode:move-down'
atom.commands.add 'atom-text-editor.vim-mode:not(.insert-mode)',
'user:vim-mode-move-up-three-times': (event) ->
atom.commands.dispatch event.target, 'vim-mode:move-up'
atom.commands.dispatch event.target, 'vim-mode:move-up'
View init.coffee
atom.commands.add 'atom-text-editor',
'user:toggle-vim-mode': (event) ->
if atom.packages.isPackageDisabled("vim-mode")
atom.packages.enablePackage("vim-mode")
else
atom.packages.disablePackage("vim-mode")
View multipleFiles.js
// Directory structure:
// some_directory/index.js
// some_directory/library1.js ---> exports library1
// some_directory/library2.js ---> exports library2
// some_directory/index.js
export { default as library1 } from './library1'
export { default as library2 } from './library2'
// Importing (you can also do `import * as ... from ...`)
View send.rb
class SomeMailer < ActionMailer::Base
def send(id)
@resource = SomeModel.find(id) # => id is _process_action_callbacks
end
end
View hips-tertheme.js
<script src="https://cdnjs.cloudflare.com/ajax/libs/fitvids/1.1.0/jquery.fitvids.min.js"></script>
<script>$(".article-content .caption, .article-content .text-post-wrap").fitVids();</script>
View database.yml
myapp_development:
adapter: postgresql
encoding: unicode
pool: 5
username: myapp
database: myapp_development
View identicon.rb
# See: https://en.gravatar.com/site/implement/images/
def gravatar_url(size: 400)
@gravatar_url ||= begin
md5 = Digest::MD5.hexdigest(email.downcase.strip)
"http://www.gravatar.com/avatar/#{md5}?s=#{size}&d=identicon"
end
end
def anonymous_gravatar_url(size: 400)
@gravatar_url ||= begin