Skip to content

Instantly share code, notes, and snippets.

View Layzie's full-sized avatar
🐈

HIRAKI Satoru Layzie

🐈
View GitHub Profile

WebRTC Conference 2016

Value-Added Services and WebRTC

Dialogic

  • Cloudベースのネットワークやアプリを作ってる

WebRTCはVoIPと同じ特徴がある

  • 同期的なイベント
  • 革新的なテクノロジー
  • コミュニケーションの進化

WebRTCの現在の状態

  • 現状は普及期

Clojure & Spacemacs on Mac OS

install

$ brew install leiningen
$ brew install boot-clj
$ vi ~/.boot/profile.boot
$ vi ~/.lein/profiles.clj
@Layzie
Layzie / _sprite.scss
Created December 11, 2015 06:45
Railsアプリでsprite-factoryを使ってRetina対応したい気持ち ref: http://qiita.com/Layzie/items/d4268b8d76d668d3f232
.ico-hoge-sp {
background-image: image-url('sprite@2.png');
width: 109px;
height: 29px;
background-position: 0px -103px;
background-repeat: no-repeat;
background-size: 322px auto;
}
@Layzie
Layzie / chrome-tech-night-8.md
Last active August 29, 2015 14:25
Chrome Tech Night #8 メモ
@Layzie
Layzie / file0.vim
Created February 6, 2015 12:03
indentLineがそこまでイケてなかったのに気付いた ref: http://qiita.com/Layzie/items/a1c8d14bccb14c02eb1b
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_start_level = 2
let g:indent_guides_guide_size = 1
let g:indent_guides_exclude_filetypes = ['help', 'nerdtree', 'tagbar', 'unite']
@Layzie
Layzie / 2014-11-15-node-fest2014.md
Last active August 29, 2015 14:09
Node学園祭2014メモ

Node学園祭2014

基調講演

ファイルアップロードについて

アップロードの歴史

  • HTTPはあんまりアップロードのこと考えてない
  • FTPはいまはあんまり使われてないけど、前は使われてた
#!/bin/bash
#
# git-feature-start - Git リポジトリディレクトリで、指定したブランチ名でブランチを作成し、合わせてリモートブランチも作成するコマンド
#
pushd `dirname $0` >/dev/null 2>&1
[ $? -eq 1 ] && exit 1
__script_dir=`pwd`
popd >/dev/null 2>&1
__base_dir=`dirname ${__script_dir}`
@Layzie
Layzie / backbone.diff
Created December 17, 2013 05:22
`beforeSend` was changed at Zepto1.1.1. So `Backbone.sync` is now broken. This patch will fix, maybe. see https://github.com/madrobby/zepto/issues/878
diff --git a/backbone.js b/backbone.js
index 2171292..fd83e56 100644
--- a/backbone.js
+++ b/backbone.js
@@ -1162,8 +1162,12 @@
params.type = 'POST';
if (options.emulateJSON) params.data._method = type;
var beforeSend = options.beforeSend;
- options.beforeSend = function(xhr) {
- xhr.setRequestHeader('X-HTTP-Method-Override', type);
@Layzie
Layzie / 2013-10-29-google_tech_night.md
Created October 29, 2013 10:13
Google Tech Talk Night vol.6

Polymer

Web Components

  • add custom tags
  • add function to native tag
  • hard to maintain
  • shadow DOM

Parts

@Layzie
Layzie / index.js
Last active December 25, 2015 09:29
follow SassConf speakers
#!/usr/bin/env node
// vim: set tabstop=2 shiftwidth=2 softtabstop=2 expandtab :
/* jshint indent:2 */
/* global require */
var scraper = require('scraper'),
GitHubApi = require('github'),
usersId = [], github;
scraper('http://sassconf.com/schedule/', function (err, $) {