Skip to content

Instantly share code, notes, and snippets.

View teppeis's full-sized avatar

Teppei Sato teppeis

View GitHub Profile
// taze: Set from //third_party/javascript/node_modules/typescript:es2015.collection
import * as fs from 'fs'; // from //third_party/javascript/typings/node
import * as ts from 'typescript';
function load(fileName: string, names: Set<string>) {
const text = fs.readFileSync(fileName, 'utf8');
const sf = ts.createSourceFile(fileName, text, ts.ScriptTarget.ES5, true);
sf.forEachChild((node) => {
switch (node.kind) {
Renovate logo
repos : kintone/plugin-packer #11570061
INFO: Renovating repository
DEBUG: assignPlatform
DEBUG: initRepo("kintone/plugin-packer")
DEBUG: Setting token in env for use by gh-got
DEBUG: Resetting platform config
DEBUG: GET repos/kintone/plugin-packer [retries=5]
DEBUG: kintone/plugin-packer owner = kintone
DEBUG: GET repos/kintone/plugin-packer/git/refs/heads/master [retries=5]

Keybase proof

I hereby claim:

  • I am teppeis on github.
  • I am teppeis (https://keybase.io/teppeis) on keybase.
  • I have a public key whose fingerprint is D017 16FE 42BE D344 AAE2 00FE EE91 7B25 B729 B849

To claim this, I am signing this object:

@teppeis
teppeis / array_copywithin_test.js
Last active April 22, 2018 07:45
Testing Closure Compiler's polyfill with Test262 suite
'use strict';
const test262 = require('./test262_util');
test262.builtins('Array.prototype.copyWithin');
--- original.list 2018-01-01 16:53:53.000000000 +0900
+++ npmignore.list 2018-01-01 16:54:01.000000000 +0900
@@ -1,28 +1,16 @@
-package/.travis.yml
package/AUTHORS
package/CONTRIBUTING
package/LICENSE
package/README.md
-package/all_tests.html
-package/alltests.js
@teppeis
teppeis / closure-compiler-help.txt
Created February 4, 2016 17:01
Closure Compiler Help (v20160201)
--angular_pass : Generate $inject properties for
AngularJS for functions annotated
with @ngInject
--assume_function_wrapper : Enable additional optimizations based
on the assumption that the output
will be wrapped with a function
wrapper. This flag is used to
indicate that "global" declarations
will not actually be global but
instead isolated to the compilation
@teppeis
teppeis / closure.d.ts
Created November 13, 2017 15:57 — forked from orian/closure.d.ts
A Google Closure Library DefinitelyTyped typings
//!! Processing provides [] from input tools/closure-compiler/externs/browser/w3c_eventsource.js
//!! Processing provides [goog.labs.userAgent.engine] from input closure-library/closure/goog/labs/useragent/engine.js
//!! Processing provides [goog.html.TrustedResourceUrl] from input closure-library/closure/goog/html/trustedresourceurl.js
//!! Processing provides [goog.events.EventId] from input closure-library/closure/goog/events/eventid.js
//!! Processing provides [goog.html.SafeUrl] from input closure-library/closure/goog/html/safeurl.js
//!! Processing provides [] from input tools/closure-compiler/externs/browser/intl.js
//!! Processing provides [] from input tools/closure-compiler/externs/browser/w3c_pointerlock.js
//!! Processing provides [goog.dom.vendor] from input closure-library/closure/goog/dom/vendor.js
//!! Processing provides [] from input tools/closure-compiler/externs/browser/w3c_vibration.js
//!! Processing provides [] from input tools/closure-compiler/externs/browser/webkit_notifications.js
@teppeis
teppeis / csp-github.txt
Created February 3, 2017 11:02
CSP Header of GitHub (2017-02-03)
Content-Security-Policy:
default-src 'none';
base-uri 'self';
block-all-mixed-content;
child-src render.githubusercontent.com;
connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com wss://live.github.com;
font-src assets-cdn.github.com;
form-action 'self' github.com gist.github.com;
frame-ancestors 'none';
img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com;
@teppeis
teppeis / safari-nomodule.js
Last active September 18, 2017 05:04 — forked from samthor/safari-nomodule.js
Safari 10.1 `nomodule` support
/**
* Safari 10.1 supports modules, but does not support the `nomodule` attribute - it will
* load <script nomodule> anyway. This snippet solve this problem, but only for script
* tags that load external code, e.g.: <script nomodule src="nomodule.js"></script>
*
* Again: this will **not** prevent inline script, e.g.:
* <script nomodule>alert('no modules');</script>.
*
* This workaround is possible because Safari supports the non-standard 'beforeload' event.
* This allows us to trap the module and nomodule load.
@teppeis
teppeis / es-module-http2.md
Last active August 7, 2017 23:51
ES ModulesはHTTP/2で部分更新の夢を見るか?