Skip to content

Instantly share code, notes, and snippets.

View Layzie's full-sized avatar
🐈

HIRAKI Satoru Layzie

🐈
View GitHub Profile
@Layzie
Layzie / 2013-04-26-html5_study.md
Last active April 29, 2023 14:58
第38回 HTML5とか勉強会

第38回 HTML5とか勉強会

JavaScriptテスト最新事情 Why? What? How?

テスト環境の向上

  • Node.jsの隆盛など

どこから手をつけるか

### define function variable before block to avoid code being appended to closing part of JSDoc comment ###
cube = ''
###*
* Funtion to calculate cube of input
* @param {number} Number to operate on
* @return {number} Cube of input
###
cube = (x) -> x*x*x
@Layzie
Layzie / .jshintrc
Last active March 23, 2016 19:33
Sample of .jshintrc
{
"globals": {
"jasmine" : false,
"spyOn" : false,
"it" : false,
"describe" : false,
"expect" : false,
"beforeEach" : false,
"waits" : false,
"waitsFor" : false,

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 / 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, $) {
@Layzie
Layzie / file0.txt
Created August 27, 2013 15:24
npm update -gでこんなエラーが出たら… ref: http://qiita.com/Layzie/items/c8ca7917550e94202e42
npm ERR! cb() never called!
npm ERR! not ok code 0