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
// Codepen inserts 'use strict' in head!! | |
// Error | |
//this.poop = '💩'; | |
//console.log(`[top] this.poop: ${poop}`); | |
const Foo = function f() { | |
this.poopInF = '💩inFunc'; | |
console.log(`[f()] this.poopInF: ${this.poopInF}`); | |
} |
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
<h1>TouchEvent と MouseEventの同時使用テスト</h1> | |
<p>Push F12 to open console and to read event logs.</p> | |
<p> | |
<a id="javabo" class="redjavabo" href="javascript:void(0);" draggable="false"> | |
無料タッチイベント と マウスイベントのテスト | |
</a> | |
</p> | |
<form> |
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
?- 人間(X). |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# Implements | |
module TwLength | |
# ref. https://dev.twitter.com/docs/api/1.1/get/help/configuration | |
# Someone help me with getting twitter configuration without oAuth? ;( | |
# | |
# RESERVED_LENGTH.must_eqal [short_url_length_http, short_url_length_https].max | |
MAX_RESERVED_LENGTH = 23 |
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
# Add separating line between commands | |
# cf. oh-my-zsh af-magic theme https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/af-magic.zsh-theme | |
if [[ ! ( $PROMPT =~ '-----------------------------------------' ) ]]; then | |
PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%} | |
'"$PROMPT" | |
fi |
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
# インストール | |
> vagrant plugin install vagrant-vbguest | |
# 確認 | |
> vagrant plugin list | |
: | |
vagrant-vbguest (0.11.0) | |
: |
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 | |
# 概要: Ubuntu 12.04 デスクトップ上で、Ctrl+Qにて意図せずアプリケーションが終了されてしまうのを防ぐ | |
# 必要: $ sudo apt-get install gconf2 | |
# 確認方法: $ gconftool-2 -a /desktop/gnome/keybindings/$KEYBINDING_KEY | |
# 注意点: 誤ってキーが押されたら notify-send で通知しているので、邪魔なら外してください | |
KEYBINDING_KEY=custom100 | |
if [[ -z "$(gconftool-2 -a /desktop/gnome/keybindings/$KEYBINDING_KEY)" ]] ; then | |
gconftool-2 --set --type string /desktop/gnome/keybindings/$KEYBINDING_KEY/name 'unintentionally Ctrl+Q killer' |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
cakegetter.py | |
ツイッター検索からcakes無料時間の記事を探してダウンロードしておくスクリプト | |
""" | |
import os | |
import re |