Skip to content

Instantly share code, notes, and snippets.

@igara
igara / file0.txt
Created April 11, 2016 08:58
閲覧しているサイトのServiceWorkerの登録削除とCache APIのキャッシュを全て削除するJSコード ref: http://qiita.com/igara/items/9564008194c74e12551e
navigator.serviceWorker.getRegistrations().then(function(registrations) {
// 登録されているworkerを全て削除する
for(let registration of registrations) {
registration.unregister();
}
});
caches.keys().then(function(keys) {
var promises = [];
// キャッシュストレージを全て削除する
keys.forEach(function(cacheName) {
@taichi
taichi / configure_bower.md
Created September 2, 2013 06:50
bowerにbowerrcを使ってプロキシの設定をする

bowerにプロキシの設定をする方法

プロジェクトのディレクトリかユーザホームディレクトリに.bowerrcファイルを作る。

  • Windowsのユーザホームの確認の仕方
> echo %HOMEPATH%
@Gab-km
Gab-km / whyILeftHeroku.rst
Last active December 30, 2022 10:56
何故私は Heroku から離れたか、および新しい AWS セットアップのメモ

何故私は Heroku から離れたか、および新しい AWS セットアップのメモ

原著者

Adrian Holovaty

原文

Why I left Heroku, and notes on my new AWS setup

金曜日、私は Heroku から Amazon Web Services(AWS) を直接使うように Soundslice を移行しました。私はこの変更ができてとても、そうとても嬉しくて、私がどうやったかということと、もし皆さんが同じような立場だったら何故それを検討すべきかということについて広く伝えたいと思います。

@Jxck
Jxck / main.go
Last active August 31, 2017 10:27
interface of Go blog sample
package main
/*
Go のインタフェース設計
参考
https://code.google.com/p/go-wiki/wiki/GoForCPPProgrammers
http://jordanorelli.tumblr.com/post/32665860244/how-to-use-interfaces-in-go
http://research.swtch.com/interfaces
http://www.airs.com/blog/archives/277
@moshen
moshen / nyan.pl
Created December 1, 2011 16:29
Terminal Nyancat 256 color
#!/usr/bin/env perl
use warnings;
use strict;
# Animation frames...
# Color ASCII escape sequences, gzipped and base64 encoded, because
# I thought 300 lines of animation frames was a little much.
my @frames = ( q(
H4sIAHywIU8AA+1d23XkOA797xT8oxBst+11z4QyMVQO+7ExbIAbydrdVXqCeJOEKNQZnzMURIq4
BEAU6jb19M/b59/vfz/fnv78z8uvj9u0+zz98yUFrrI6PG473nX8wA/68cSYI+fze/hlNkvz9fWV