Skip to content

Instantly share code, notes, and snippets.

Zoli Kahan Zolmeister

Block or report user

Report or block Zolmeister

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View track-network-timings-ga.js
// send network request timings to Google Analytics
(function() {
var nativeOpen = XMLHttpRequest.prototype.open
var nativeSend = XMLHttpRequest.prototype.send
var startTime = null
var pendingCount = 0
XMLHttpRequest.prototype.open = function(_, url) {
this._url = url
return nativeOpen.apply(this, arguments)
}
@Zolmeister
Zolmeister / calc.coffee
Last active Aug 29, 2015
A/B test calculations
View calc.coffee
################################################################################
# A/B test calculations #
# #
# Based on Stats Engine #
# //pages.optimizely.com/rs/optimizely/images/stats_engine_technical_paper.pdf #
################################################################################
##################
# Helper Methods #
##################
@Zolmeister
Zolmeister / app.yml
Created Mar 19, 2015
Ansible Skeleton
View app.yml
---
# file: roles/app/tasks/main.yml
- name: ensure logging directory exists
file: path=/var/log/acme state=directory
tags:
- install
- name: ensure config directory exists
file: path=/etc/acme/app state=directory
@Zolmeister
Zolmeister / github_sync.sh
Created Nov 16, 2014
Clone all github repos
View github_sync.sh
curl -s https://api.github.com/users/<USERNAME>/repos\?per_page\=200 | grep ssh_url | cut -d \" -f 4 | xargs -n 1 git clone
View keybase.md

Keybase proof

I hereby claim:

  • I am Zolmeister on github.
  • I am zolmeister (https://keybase.io/zolmeister) on keybase.
  • I have a public key whose fingerprint is 29B1 BB4C 362A 2C14 C19E 4C33 43AA D778 81AE 0EB0

To claim this, I am signing this object:

@Zolmeister
Zolmeister / config
Last active Aug 29, 2015
i3 config file
View config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@Zolmeister
Zolmeister / zolmeister.css
Last active Dec 25, 2015
Brackets / CodeMirror theme
View zolmeister.css
@import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono);
.cm-s-zolmeister.CodeMirror {
background: #272822; color: #f8f8f2;
font-family:'Ubuntu Mono', monospace;
line-height: 1.2em;
}
.cm-s-zolmeister div.CodeMirror-selected {background: #49483E !important;}
.cm-s-zolmeister .CodeMirror-gutters {background: #272822; border: 1px solid rgba(0,0,0,.25);}
.cm-s-zolmeister .CodeMirror-gutter-text {color: #d0d0d0;}
.cm-s-zolmeister .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
@Zolmeister
Zolmeister / xmonad.hs
Created Aug 30, 2013
Xmonad + Gnome 3 config
View xmonad.hs
--
-- xmonad example config file.
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
import XMonad
View events.js
/* The MIT License (MIT)
Copyright (c) 2013 Zolmeister
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@Zolmeister
Zolmeister / ImagePicker.py
Created Aug 26, 2013
reads *.jpg files from 1-162.jpg, in a slideshow. j - next slide, k - previous slide, l - save image to 'saved/' directory, o - load next 100 images You need to press o every 100 images to buffer in the next image set
View ImagePicker.py
#!/usr/bin/env python
"""Show slideshow for images in a given directory (recursively) in cycle.
If no directory is specified, it uses the current directory.
"""
import logging
import os
import platform
import sys
from collections import deque
You can’t perform that action at this time.