Skip to content

Instantly share code, notes, and snippets.


Amitai Burstein amitaibu

View GitHub Profile
bennycode / dexie-auto-increment.html
Last active May 25, 2020
Auto incremental primary keys with Dexie
View dexie-auto-increment.html
<!DOCTYPE html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="bower_components/dexie/dist/dexie.js"></script>

Looking for experienced web developers

Gizra is a 20+ person company, located in central Tel Aviv and US.

We work solely with Open Source technologies, some of our products are themselves released as Open Source. Our contributions help power websites like, The Economist, MSNBC and others. Among our clients are Harvard University, the European Commission and the UN.

It's important to us to work on interesting projects, with advanced technologies and clients who see us as partners. In particular we love projects that challenge us to figure out new stuff - technology and otherwise - and we look for people with a similar mindset.

Everyone at Gizra can code. We aim to hold ourselves to the highest coding standards and constantly seek better ways to do our work.

docker run --rm --name=ch -p= -p= \
-p= -p= \
-e SSH_PUB_KEY="$(cat ~/.ssh/" \
e0ipso / rest-performance
Last active Aug 29, 2015
REST modules performance comparison.
View rest-performance
# Varnish caching
## List of 300 items
Requests per second: 6717.35 [#/sec] (mean) # RESTful Memcache render cache.
Requests per second: 7096.14 [#/sec] (mean) # RESTful Database render cache.
Requests per second: 6379.45 [#/sec] (mean) # RESTful No render cache.
Requests per second: 95.24 [#/sec] (mean) # RESTWS
Requests per second: 1125.62 [#/sec] (mean) # Services
## List of 50 items
Requests per second: 6632.03 [#/sec] (mean) # RESTful Memcache render cache.
Requests per second: 7057.74 [#/sec] (mean) # RESTful Database render cache.
View event.builder.js
angular.module('', [
.factory('EventBuilder', function ($injector, $window, apiUrl) {
var EventBuilder = function EventBuilder(message) {
this['@timestamp'] = new Date();
this['@message'] = message || '';
return this;
vivien / imgur
Last active Oct 23, 2019
Shell script to upload image(s) to
View imgur
# Upload image(s) to
# Copyright (C) 2014 Vivien Didelot <>
# Licensed under GPL version 3, see
# Requires "jshon":
# Alternatives, which suck:
egonSchiele / diners.hs
Last active May 25, 2020
Dining philosophers solution in Haskell using STM. Taken from with some minor modifications.
View diners.hs
import Control.Monad
import Control.Concurrent
import Control.Concurrent.STM
import System.Random
import Text.Printf
-- Forks
type Fork = TMVar Int
newFork :: Int -> IO Fork
RainerAtSpirit / JekyllApps.js
Created Jul 9, 2012
Adding AngularJS search in Jekyll blog
View JekyllApps.js
* Setup Module with `highlight` filter
var JekyllApp = angular.module('JekyllApp', [], function ($routeProvider, $locationProvider) {
JekyllApp.filter('highlight', function () {
return function (text, filter) {
View paginator_patch.rb
# Patches Jekyll's built-in pagination to work with files *other* than the base index.html.
# Expects the following to be specified in your _config.yml:
# paginate_base: "blog" # Puts all pagination folders in the "blog" dir, e.g. "/blog/page2"
# paginate_index: "blog/index.html" # Paginates using the specified file
module Jekyll
class Page