Skip to content

Instantly share code, notes, and snippets.

View nelson-o's full-sized avatar
✈️
ἓν οἶδα ὅτι οὐδὲν οἶδα

Nelson nelson-o

✈️
ἓν οἶδα ὅτι οὐδὲν οἶδα
View GitHub Profile
@nelson-o
nelson-o / indexeddb-problems.md
Created March 26, 2024 15:58 — forked from pesterhazy/indexeddb-problems.md
The pain and anguish of using IndexedDB: problems, bugs and oddities

This gist lists challenges you run into when building offline-first applications based on IndexedDB, including open-source libraries like Firebase, pouchdb and AWS amplify (more).

Note that some of the following issues affect only Safari. Out of the major browsers, Chrome's IndexedDB implementation is the best.

Backing file on disk (WAL file) keeps growing (Safari)

When this bug occurs, every time you use the indexeddb, the WAL file grows. Garbage collection doesn't seem to be working, so after a while, you end up with gigabytes of data.

Random exceptions when working with a large number of indexeddb databases (Safari)

@nelson-o
nelson-o / rxjs_operators_by_example.md
Created August 16, 2016 10:12 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example
@nelson-o
nelson-o / introrx.md
Created August 15, 2016 09:58 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@nelson-o
nelson-o / .tmux.conf
Last active August 29, 2015 14:10 — forked from terrywang/.tmux.conf
# /home/terrywang/.tmux.conf
# Based on tmux book written by Brian P. Hogan
# c-a o to switch to another panel
# c-d to close shell
# c-a ! to close panel
# c-a w to list windows
# c-a " split pane horizontally
# c-a % split pane vertically
# Setting the prefix from C-b to C-a
Rails.application.routes.draw do
get '/(:locale)/products/(:category)/(page/:page).:extension',
:to => 'products#index',
:as => :products,
:constraints => {
:locale => /[a-z]{2}/,
:category => /.+?/,
:page => /\d+/
},
# nelson aliases
alias vim='mvim -v'
alias vgi="vim .gitignore"
alias zp="vim ~/.zprofile"
# rails dev
alias poc="powder open -b 'chromium'"
alias single_quote="grep \' -r --include=\*.{rb,erb}"
alias be="bundle exec"
alias ber="bundle exec rake"
alias bec="bundle exec cap"
if application "VLC" is running then
tell application "VLC"
step backward
end tell
end if
property step : 10
if application "QuickTime Player" is running then
tell application "QuickTime Player"
set playerPosition to (current time of front document) - step
set movieDuration to duration of front document
require "mysql_big_table_migration_helper"
class AddIndexOnSomeColumnToSomeTable < ActiveRecord::Migration
extend MySQLBigTableMigrationHelper
def self.up
add_index_using_tmp_table :some_table, :some_column
end
# encoding: utf-8
# inspired by http://jsbin.com/nuhinuda/1/edit
def  
"U+2004 THREE-PER-EM SPACE"
end
def  
"U+2005 FOUR-PER-EM SPACE"