Skip to content

Instantly share code, notes, and snippets.

View Managing HTML5 Offline

Managing HTML5 Offline Storage

HTML5 introduced many storage APIs that let you store a large amount of data locally in your users' browsers. But the amount of space allocated for each app is, by default, restricted to a few megabytes. Google Chrome lets you ask for a larger storage quota, beyond the previous limit of just 5 MB.

This document introduces you to the basic concepts around the types of storage used in Chrome and describes the experimental Quota Management API, which lets you manage your storage quota. The document assumes that you are already familiar with the general concepts of client-side storage and know how to use offline APIs.


agektmr / Getting $promise as a result of $resource.js
Last active Aug 29, 2015
I'm getting $promise as a result for fetching css using $resource. Does anyone know how to resolve?
View Getting $promise as a result of $resource.js
var app = angular.module('app', ['ngResource']);
app.service('fetch', ['$resource', function() {
return $resource('css/:id/:file_name', {id: '@id'}, {
'get': {
method: 'GET',
params: {
file_name: 'style.css'
View designer.html
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
:host {
position: absolute;
View ws_echo_server
var WebSocket = require('ws').Server;
var ws = new WebSocket({port:8080});
var conn = [];
// Start accepting WebSocket connection
ws.on('connection', function(socket) {
// Add socket to list
broadcast('1 peer connected.');
agektmr / Twitter Like
Last active Nov 6, 2015
Copy and paste this code to your browser URL bar. (URLバーにコピペしてね)
View Twitter Like
agektmr / gist:5917056
Created Jul 3, 2013
Angular controller inheritance example
View gist:5917056
<!DOCTYPE html>
<html ng-app>
<title>Angular Example</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="styles/style.css">
<script src="scripts/angular.min.js"></script>
var ListCtrl = function($scope) {
$scope.list = [
View Can't get uglifyjs working as expected
if (DEBUG === undefined) DEBUG = true;
DEBUG && console.log('test');
agektmr / Installing Project Tab Manager
Last active Feb 3, 2016
How to install Project Tab Manager beta
View Installing Project Tab Manager
  1. Download a zip file from here
  2. Open chrome://extensions on Chrome
  3. Check "Developer Mode"
  4. Click "Load unpacked extension..." and select the unzipped folder

Questions are welcome at


Keybase proof

I hereby claim:

  • I am agektmr on github.
  • I am agektmr ( on keybase.
  • I have a public key ASA18VYrnHxJ0JjmiW3VhGzGrQPzg7V1DnYvG07Mwk4xHwo

To claim this, I am signing this object: