Skip to content

Instantly share code, notes, and snippets.

View syoichi's full-sized avatar

Syoichi Tsuyuhara syoichi

View GitHub Profile
@nolanlawson
nolanlawson / protips.js
Last active November 19, 2024 02:40
Promise protips - stuff I wish I had known when I started with Promises
// Promise.all is good for executing many promises at once
Promise.all([
promise1,
promise2
]);
// Promise.resolve is good for wrapping synchronous code
Promise.resolve().then(function () {
if (somethingIsNotRight()) {
throw new Error("I will be rejected asynchronously!");
@ailispaw
ailispaw / patch.update.tumble.favicon.tbrl.js
Last active January 6, 2020 13:11
Update Tumblr's favicon 2015.06
// ==Taberareloo==
// {
// "name" : "Update Tumblr's favicon 2015.06"
// , "description" : "Update Tumblr's favicon 2015.06"
// , "include" : ["background"]
// , "version" : "0.1.1"
// , "downloadURL" : "https://gist.githubusercontent.com/ailispaw/db3d9be7620e75e44045/raw/patch.update.tumble.favicon.tbrl.js"
// }
// ==/Taberareloo==
@ailispaw
ailispaw / patch.fix.tumblr.getTumblelogs.tbrl.js
Last active December 28, 2021 04:33
Fix Tumblr.getTumblelogs 2021.10
// ==Taberareloo==
// {
// "name" : "Fix Tumblr.getTumblelogs 2021.12"
// , "description" : "Fix Tumblr.getTumblelogs 2021.12"
// , "include" : ["background"]
// , "version" : "0.5.2"
// , "downloadURL" : "https://gist.githubusercontent.com/ailispaw/3aef8857c274e22f2b41/raw/patch.fix.tumblr.getTumblelogs.tbrl.js"
// }
// ==/Taberareloo==
@ailispaw
ailispaw / patch.fix.missing.ctx.host.tbrl.js
Last active January 6, 2020 13:11
Fix missing ctx.host for Chrome Dev 43
// ==Taberareloo==
// {
// "name" : "Fix missing ctx.host"
// , "description" : "Fix missing ctx.host"
// , "include" : ["content"]
// , "match" : ["*://*/*"]
// , "version" : "0.1.1"
// , "downloadURL" : "https://gist.githubusercontent.com/ailispaw/2f15aeabf922afada020/raw/patch.fix.missing.ctx.host.tbrl.js"
// }
// ==/Taberareloo==
@koba04
koba04 / .gitignore
Last active December 21, 2018 02:21
karma + mocha + browserify + babel + power-assert
node_modules/

ECMAScript6th Quiz Answer

Answer of ES6 Quiz

A.1

  • 2 "func"

see: [9.2.12 SetFunctionName][9.2.12], [12.14.4 Runtime Semantics of AssignmentExpression][12.14.4]

ECMAScript6th Quiz

Q.1

let func = function() {};
func.name
  1. ""
  2. "func"
@hashrock
hashrock / vuejs.md
Last active October 5, 2023 23:42
Vue.js資料まとめ(古いので注意)

#まず見るべき

以下のURLは、常に更新されているコンテンツです。

@azu
azu / github:place-holder-textarea.user.js
Created February 15, 2015 13:55
add placeholder textarea which sync with ACE Editor to GitHub.
// ==UserScript==
// @name github:place-holder-textarea
// @namespace http://efcl.info/
// @description place holder textare
// @include https://github.com/*/*/edit/*/*
// @include https://github.com/*/*/new/*/*
// @version 1
// @grant none
// @run-at document-end
// ==/UserScript==