Skip to content

Instantly share code, notes, and snippets.

View st63jun's full-sized avatar

Jun SAITO st63jun

View GitHub Profile
@st63jun
st63jun / spa.html
Last active December 25, 2015 11:49
YOLP Local Search API
<!DOCTYPE html>
<html>
<head>
<title>Listing Spa</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://js.api.olp.yahooapis.jp/OpenLocalPlatform/V1/jsapi?appid=dj0zaiZpPU9Qc0t2NEFLTTBLMyZzPWNvbnN1bWVyc2VjcmV0Jng9MmM-"></script>
<script src="spot.js"></script>
</head>
<body>
<h3>Spot lists</h3>
@st63jun
st63jun / 00README.md
Last active December 23, 2015 17:28
Lsyncd RPM Spec
@st63jun
st63jun / lsyncd
Created September 23, 2013 06:25
/etc/init.d/lsyncd
#!/bin/bash
#
# lsyncd: Starts the lsync Daemon
#
# chkconfig: 345 80 30
# description: Lsyncd uses rsync to synchronize local directories with a remote
# machine running rsyncd. Lsyncd watches multiple directories
# trees through inotify. The first step after adding the watches
# is to, rsync all directories with the remote host, and then sync
# single file buy collecting the inotify events.
@st63jun
st63jun / room_metro_tokyo_1.md
Last active December 19, 2015 10:19
めとべや東京#!

めとべや東京 #1

セッション

デバイス&サービス時代のWindowsストアアプリ開発 大西 彰氏 @oniak3

  • MSはデバイスとサービスのカンパニーになる
  • 世界でイケてる開発者を目指してほしい
    • 開発者に元気がない
    • しかし環境はよい(クラウド、ソフトウェア…)
  • デバイスとソフトウェアを組み合わせることを意識する
@st63jun
st63jun / TaskExtensions.cs
Created July 1, 2013 03:52
非同期メソッドでTry-メソッドめいたものを使う
using System.Threading.Tasks;
namespace Try
{
public static class TaskExtensions
{
public static async Task<ITriable<T>> AsTriable<T>(this Task<T> task)
{
return await Triable<T>.ToTriableAsync(task);
}
# Prefix
set-option -g prefix C-z
unbind-key C-b
bind-key C-z send-prefix
@st63jun
st63jun / girlfriend.go
Created March 14, 2013 13:49
彼女募集するHTTPリクエストを吐くプロクシサーバ (Go)
package main
import (
"github.com/elazarl/goproxy"
"log"
"net/http"
)
func main() {
proxy := goproxy.NewProxyHttpServer()
@st63jun
st63jun / .xmodmaprc
Last active December 14, 2015 12:38
swap capslock and ctrl
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
@st63jun
st63jun / girlfriend.psgi
Last active December 13, 2015 18:28
Proxy adds X-Girlfriend-Wanted header
use strict;
use warnings;
use Plack::Builder;
use Plack::App::Proxy;
builder {
enable 'Proxy::AddVia';
enable sub {
my $app = shift;
return sub {
@st63jun
st63jun / citmenu.rb
Last active December 12, 2015 04:18
学食のメニュー取得するやつ
#!env ruby
# -*- coding: utf-8 -*-
# Copyright (C) 2013 Jun SAITO <jsaito@xopowo.info>
#
# This is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#