Skip to content

Instantly share code, notes, and snippets.

View sundaycrafts's full-sized avatar

sundaycrafts

View GitHub Profile
@sundaycrafts
sundaycrafts / Twitter Like
Created November 6, 2015 14:54 — forked from agektmr/Twitter Like
Copy and paste this code to your browser URL bar. (URLバーにコピペしてね)
data:text/html,<script>i=0;setInterval(function(){i=(i+100)%252000;document.querySelector('div').style.backgroundPositionX='-'+i+'px';},30);</script><div%20style="width:100px;height:100px;background:url(https://goo.gl/6nq9n5)">
@sundaycrafts
sundaycrafts / make-flexible-col.scss
Created May 16, 2016 02:36
make flexible col mixin
@mixin make-col($ref, $margin, $col, $reverse: false) {
$marginSum: $margin*($col - 1);
$itemWidth: floor(($ref -$marginSum)/$col);
width: percentage($itemWidth/$ref);
@if ($reverse == true) {
float: right;
margin-left: percentage($margin/$ref);
&:last-child {
margin-left: 0;
@sundaycrafts
sundaycrafts / .zshrc
Created November 19, 2017 16:51
My zsh setting
# Init Antigen https://github.com/zsh-users/antigen zsh plugin manager
source ~/.antigen.zsh
# Init Nvm https://github.com/creationix/nvm node version manager
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
# Init Pure https://github.com/sindresorhus/pure zsh prompt
autoload -U promptinit; promptinit
prompt pure