Skip to content

Instantly share code, notes, and snippets.

View watagashi's full-sized avatar
🏠
Working from home, except for the weekend.

WADA Takashi watagashi

🏠
Working from home, except for the weekend.
View GitHub Profile
@watagashi
watagashi / changehome.cmd
Created December 29, 2015 02:32
日本語 USERPROFILE 問題の一時回避スクリプト
set HOME=H:\
subst H: %HOMEDRIVE%%HOMEPATH%
set TEMP=%HOME%\AppData\Local\Temp
set TMP=%HOME%\AppData\Local\Temp
cd /d %HOME%
@watagashi
watagashi / vimplugins.txt
Last active May 25, 2017 08:48
vim plugins
SyntaxComplete
Tail-Bundle
TwitVim
agit.vim
calendar-vim
csv.vim
editorconfig-vim
emmet-vim
gapply.vim
gitv
@watagashi
watagashi / index.js
Last active December 16, 2015 15:17
Promise で実行順序を問わない場合
'use strict';
var fs = require('fs');
var program = require('commander');
var GoogleMapsAPI = require('googlemaps');
var gapiConf = {
key: 'google API key',
secure: true
};
@watagashi
watagashi / index.js
Last active December 16, 2015 15:22
'use strict';
var fs = require('fs');
var program = require('commander');
var GoogleMapsAPI = require('googlemaps');
var gapiConf = {
key: 'google API key',
secure: true
};
@watagashi
watagashi / data.json
Last active December 17, 2015 13:28 — forked from mid0111/data.json
javascript の ループ内での同期
[
{"name": "静岡市立番町小学校", "address": "静岡市葵区新富町一丁目 23 番地の 1", "tel": "054-253-2148"},
{"name": "静岡市立新通小学校", "address": "静岡市葵区駒形通二丁目 4 番 47 号", "tel": "054-252-1301"},
{"name": "静岡市立駒形小学校", "address": "静岡市葵区南安倍二丁目 1 番 1 号", "tel": "054-252-3340"},
{"name": "静岡市立安西小学校", "address": "静岡市葵区安西一丁目 96 番地の 3", "tel": "054-271-1551"},
{"name": "静岡市立田町小学校", "address": "静岡市葵区田町五丁目 70 番地", "tel": "054-255-3428"},
{"name": "静岡市立井宮小学校", "address": "静岡市葵区平和一丁目 7 番 1 号", "tel": "054-271-5288"},
{"name": "静岡市立井宮北小学校", "address": "静岡市葵区上伝馬 2 番 1 号", "tel": "054-272-1326"},
{"name": "静岡市立安倍口小学校", "address": "静岡市葵区安倍口新田 50 番地", "tel": "054-296-0005"},
{"name": "静岡市立美和小学校", "address": "静岡市葵区遠藤新田 69 番地の 1", "tel": "054-296-0700"},
@watagashi
watagashi / httpd.conf.diff
Created June 12, 2014 16:44
WordPress for OS X (Mavericks)
--- /private/etc/apache2/httpd.conf.bak 2014-06-13 01:37:58.000000000 +0900
+++ /private/etc/apache2/httpd.conf 2014-06-13 00:09:57.000000000 +0900
@@ -115,7 +115,7 @@
LoadModule alias_module libexec/apache2/mod_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
#LoadModule perl_module libexec/apache2/mod_perl.so
-#LoadModule php5_module libexec/apache2/libphp5.so
+LoadModule php5_module libexec/apache2/libphp5.so
LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so
@watagashi
watagashi / thumbnail.js
Created May 25, 2014 12:00
Multiple Media Entities in Statuses for twicli
registerPlugin({
newMessageElement: function(elem, tw) {
tw = tw.retweeted_status || tw;
var entities = tw.extended_entities || tw.entities;
if (entities && entities.media) {
for (var i = 0; i < entities.media.length; i++) {
if (entities.media[i].type == "photo") {
addThumbnail(elem,
entities.media[i].media_url + ":thumb",
entities.media[i].expanded_url);
.get-next {font-size: 4em;}
<!DOCTYPE html>
<html>
<head>
<title>Search engines</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="//code.jquery.com/jquery.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
</head>