Skip to content

Instantly share code, notes, and snippets.

View ya-s-u's full-sized avatar
🍺
Drinking

Yasuaki Goto ya-s-u

🍺
Drinking
View GitHub Profile
@ya-s-u
ya-s-u / table.md
Last active August 29, 2015 14:04
CountryCode

#国一覧

num area country code country name(en) country name(ja) flag_png jqvmap(175)
1 Asia SG Singapore シンガポール x
2 Asia AM Armenia アルメニア x x
3 Asia AZ Azerbaijan アゼルバイジャン x x
4 Asia BD Bangladesh バングラデシュ x x
5 Asia BN Brunei ブルネイ x x
6 Asia BT Bhutan ブータン x x
o3djs.base.o3d = o3d;
o3djs.require('o3djs.webgl');
o3djs.require('o3djs.util');
o3djs.require('o3djs.math');
o3djs.require('o3djs.rendergraph');
o3djs.require('o3djs.primitives');
o3djs.require('o3djs.quaternions');
o3djs.require('o3djs.effect');
o3djs.require('o3djs.event');
@ya-s-u
ya-s-u / cask.txt
Last active August 29, 2015 14:15
App List
atom
dropbox
gimp
github
google-chrome
inkscape
kobito
skype
xquartz
@ya-s-u
ya-s-u / TabMenuController.swift
Created April 3, 2015 15:48
タブバーのアイコン色(非選択時)
//
// TabMenuController.swift
// BeeApp
//
// Created by 後藤 誉昌 on 2015/04/03.
// Copyright (c) 2015年 Yasuaki Goto. All rights reserved.
//
import UIKit
@ya-s-u
ya-s-u / gist:94eb292bc6c58a340128
Created August 18, 2015 14:16
Socket.io Tips
// sending to sender-client only
socket.emit('message', "this is a test");
// sending to all clients, include sender
io.emit('message', "this is a test");
// sending to all clients except sender
socket.broadcast.emit('message', "this is a test");
// sending to all clients in 'game' room(channel) except sender
@ya-s-u
ya-s-u / index.html
Last active November 21, 2015 07:52
Newspaper Layout
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>11月21日(土)の朝刊</title>
<link rel="stylesheet" href="normalize.css">
<link rel="stylesheet" href="style.css">
</head>
@ya-s-u
ya-s-u / Gemfile
Last active February 21, 2016 14:41
BeeAppを支える技術
ruby '2.2.3'
source 'https://rubygems.org'
#source 'https://rails-assets.org' do
# gem 'rails-assets-vue'
#end
gem 'rails', '4.1.7'
gem 'grape'
gem 'kaminari'
@ya-s-u
ya-s-u / api.md
Created April 2, 2016 05:46 — forked from koba04/api.md
Vue.js note(v0.10.3). not translate. This is draft of https://github.com/koba04/vuejs-book .

API

Class: Vue

  • Vueはvue.jsのコアとなるコンストラクタ
  • インスタンスが作られたときにデータバインディングが開始される
  • オプションを取ることも出来て、DOMやデータやメソッドについて定義出来る
@ya-s-u
ya-s-u / parser.swift
Last active November 29, 2017 09:04
パーサーコンビネータ
//
// ParserCombinator
//
// Created by 後藤誉昌 on 2016/10/06.
//
import Foundation
// モナド
struct Parser<Input, Output> {
@ya-s-u
ya-s-u / UITabBar+.swift
Created July 2, 2017 03:01
UITabBar.unselectedItemTintColorをiOS9以下でも使えるようにする
import UIKit
extension UITabBar {
private struct AssociatedKey {
static var unselectedItemTintColor = "UITabBar.UnselectedItemTintColor"
}
@nonobjc
var unselectedItemTintColor: UIColor? {