Skip to content

Instantly share code, notes, and snippets.

View japboy's full-sized avatar
🏠
WFH

Yu Inao / 稲尾 遊 japboy

🏠
WFH
View GitHub Profile
@japboy
japboy / annoying-social-buttons.md
Last active January 29, 2016 10:32
ソーシャルボタンのスバラシサについてまとめてみた (嘘

みんなだいすきそーしゃるぼたん

今日は以下の記事よりソーシャルボタンのスクリプト読み込み最適化についてメモしておきたいと思います。

Delay-load non-essential scripts (e.g., Facebook Like, Google +1, Twitter).

Everyone wants their page to be popular on social networks, but social network scripts tend to be large and can cause sluggish response for the user. Waiting until the page has loaded before requesting these scripts can make the page responsive sooner. Even better, rethink whether these buttons are necessary at all, and whether they improve your page's overall experience.

@japboy
japboy / socials.js
Last active December 17, 2015 14:29
SNS ボタン JavaScript コードまとめ。
/**
* Social button BFFs (modified)
*
* http://www.phpied.com/social-button-bffs/
* http://t32k.me/mol/log/social-button-bffs/
* http://www.aaronpeters.nl/blog/why-loading-third-party-scripts-async-is-not-good-enough
*
* Load this script before `</body>` like:
*
* <script src="./socials.js"></script>
@japboy
japboy / oculus-rift-notes.md
Last active August 14, 2017 18:44
Oculus Rift について。

Oculus Rift メモ

概要

2012 年 8 月に Kickstarter 上で立ち上げられたプロジェクト。新しいゲーム用バーチャルリアリティ (VR) ヘッドセットとして高い注目を集め、同年 9 月に 250,000 USD 資金調達目標を大きく上回る 2,437,429 USD の資金調達に成功し、プロジェクトのスタートを切る。

同種のデバイスとしては Sony のヘッドマウントディスプレイ (HMD) である HMZ シリーズなどが考えられるだろうが、Oculus Rift はこれをはるかにしのぐ機能と性能を兼ね備えている。

@japboy
japboy / rpi-and-pl2303hx.md
Last active December 16, 2015 14:49
Raspberry Pi でイロイロ。

Raspberry Pi と USB シリアルコンソール

接続

RPi の GPIO と PL-2303HX の接続

  • TX <=> RX
  • RX <=> TX

Wine 1.6 on Mac OS X

インストール

依存ライブラリは --universal オプションを付与してコンパイルされている必要がある模様。

brew install wine winetricks
@japboy
japboy / jade-ftw.md
Last active May 21, 2025 06:31
Jade について。

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。

@japboy
japboy / .gitignore
Last active December 15, 2015 18:59
Just a test script to communicate with serial ports
node_modules

Frontrend 04

JavaScript Development Tools

id:Layzie

GUI ツール

@japboy
japboy / post-receive
Created November 21, 2012 00:40
Useful Git hook script snippets that I can easily forget :P
#!/bin/bash
# Apply administrative privilege to a command line user
# 1) Add `git` user to sudoers:
# sudo /usr/sbin/visudo
# 2) Give permissions to `git` user:
# git ALL=NOPASSWD: /usr/local/bin/curlftpfs, /bin/mount, /bin/umount
# 3) Disable to prevent `sudo` w/o tty:
# Defaults requiretty # Comment out this