Skip to content

Instantly share code, notes, and snippets.

💭
📝 Writing @js-primer

azu azu

💭
📝 Writing @js-primer
Block or report user

Report or block azu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@azu
azu / READ.md
Last active Jun 19, 2019
JavaScriptの本を書くときに参考にしてるもの
View READ.md

jsprimerというJavaScriptの書籍を書いている。 これを書いてるときに参考にしているものを書いていく。

ECMAScript® Language Specification

ECMAScriptのLiving Standardな仕様書ページ。 スナップショットなECMAScriptの仕様書ページもあるけど、基本的にはLiving Standardの方しか見てない。

@azu
azu / npm: package support types.user.js
Last active Jun 8, 2019
Greamonkey Scripts: detect npm package support TypeScript.
View npm: package support types.user.js
// ==UserScript==
// @name npm: package support types
// @namespace info.efcl
// @match https://www.npmjs.com/package/*
// @grant GM_xmlhttpRequest
// ==/UserScript==
// License: MIT © azu
const NAME = "$Greasemonkey:package support types$";
const fetchPackage = (packageName) => {
@azu
azu / findAll.js
Last active Jun 8, 2019
windowのkey/valueを検索するSnnipet
View findAll.js
function __findAllName(query, isStrict){
__findAll("byName", query, isStrict);
}
function __findAllValue(query, isStrict){
__findAll("byValue", query, isStrict);
}
/*!
* Chrome JS runtime inspector plugin v0.1
* Copyright 2013 Andrei Kashcha <https://github.com/anvaka/>
* Based on Spotlight.js v1.0.0-pre <http://github.com/bestiejs/spotlight.js/>
@azu
azu / geocities:redirect-to-wayback.user.js
Last active May 30, 2019
Yahoo! ジオシティをInternet ArchiveにリダイレクトするGreasemonkey
View geocities:redirect-to-wayback.user.js
// ==UserScript==
// @name geocities:redirect-to-wayback
// @namespace info.efcl.geocities-redirect-to-wayback
// @match http://www.geocities.jp/*
// @match https://www.geocities.jp/*
// @grant none
// ==/UserScript==
// See also
// https://qiita.com/__cooper/items/5ec5453c82fd3b03d7f6
@azu
azu / 2018-2019.md
Last active Apr 6, 2019
ECMAScript Proposal Diff between 2018 - 2019.
View 2018-2019.md
@azu
azu / README.md
Last active Apr 6, 2019
2019年4月6日(土): #TC39MTG ECMAScript議事録の読書会
View README.md
View ndjson-to-json-stream.js
import * as fs from "fs";
import split from "split2";
export interface ndjsonToJsonTextOption extends split.Options {
}
export function ndjsonToJsonText(ndjsonFileName: string, options: ndjsonToJsonTextOption = {}) {
function appendComma(line: string) {
return line + ",";
}
View cla.txt
CLAの同意文のテストです。
@azu
azu / debug.js
Created Feb 10, 2019
debug: replace process.cwd() with <cwd>
View debug.js
const cwd = process.cwd();
const replaceCwd = target => {
if (typeof target === "string") {
return target.split(cwd).join("<cwd>");
}
return target;
};
const walkJSON = function walkJSON(data, callback) {
Object.keys(data).forEach(key => {
const item = data[key];
View irodr:post-tweet.user.js
// ==UserScript==
// @name irodr:post-tweet
// @namespace info.efcl
// @include https://irodr.netlify.com/
// @include http://localhost:13245/
// @version 1
// @grant none
// @run-at document-end
// ==/UserScript==
window.addEventListener("keydown", (event) => {
You can’t perform that action at this time.