Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Shu Uesugi chibicode

🎯
Focusing
Block or report user

Report or block chibicode

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chibicode
chibicode / README-Twemoji-React.md
Last active Mar 1, 2019
A dead simple React.js Twemoji component.
View README-Twemoji-React.md

Twemoji + React

A dead simple React Twemoji component.

Requirements: twemoji

npm install --save twemoji
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'
@chibicode
chibicode / init.coffee
Last active Aug 29, 2015
Some Useful Atom Vim Mode Snippets
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")
@chibicode
chibicode / multipleFiles.js
Last active Sep 14, 2017
es6 import/export cheat sheet
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
@chibicode
chibicode / hips-tertheme.js
Last active Aug 29, 2015
Additions to Hipster Tumblr Theme by Precrafted
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
You can’t perform that action at this time.