Skip to content

Instantly share code, notes, and snippets.

Ori Pekelman OriPekelman

Block or report user

Report or block OriPekelman

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 gist:a1e8d08a46ba703e5e1b

Keybase proof

I hereby claim:

  • I am oripekelman on github.
  • I am oripekelman ( on keybase.
  • I have a public key whose fingerprint is C1A5 8C41 CA69 E74E 11F3 6BC1 618E BB91 D18D 764B

To claim this, I am signing this object:

View package.json
"name": "yourNewApp",
"description": " A fullstack JavaScript framework powered by MongoDB, ExpressJS, AngularJS, NodeJS.",
"version": "0.4.2",
"private": false,
"author": "Linnovate <>",
"contributors": "",
"mean": "0.4.2",
"repository": {
"type": "git",
View servig a static web site with
$path = parse_url($_SERVER['REQUEST_URI']);
$path = rtrim(ltrim(rtrim($path["path"], '/'), '.'),'/'); //trim trailing slash and prefix dots
$index = realpath(getcwd() .$path ."/index.html");
if (substr($index, 0, strlen(realpath(getcwd()))) === realpath(getcwd()) && file_exists($index)){
try {
} catch (Exception $e) {
/*Eating all exceptions*/
OriPekelman /
Created May 26, 2015
Recursively creates an md file for all rst files in the source t directory and below.
#!/usr/bin/env python
Recursively creates an md file for all rst
files in the source directory and below.
import sys, os, re, subprocess
target = 'gitbook/'
source = './'
OriPekelman / dlq.js
Created May 31, 2015
quantized Damreau Lehvenstein in Javascript
View dlq.js
(function() {
'use strict';
* Extend an Object with another Object's properties.
* The source objects are specified as additional arguments.
* @param dst Object the object to extend.
OriPekelman / Gemfile
Created Apr 4, 2012
Minimal File Indexer Elastic Search Example (ruby)
View Gemfile
source :rubygems
gem 'tire'
gem 'sinatra'
OriPekelman / ori-rulu
Created Jun 23, 2012
My #rulu presentation, what did Tony Arcieri did lately?
View ori-rulu
OriPekelman /
Last active Oct 10, 2015
domain compatible slugifcation
# coding=UTF-8
import re
import unicodedata
import string
import random
first_cap_re = re.compile('(.)([A-Z][a-z]+)')
all_cap_re = re.compile('([a-z0-9])([A-Z])')
def slugify(value):
OriPekelman / Gemfile
Last active Dec 19, 2015
The HTTP gem failing urls
View Gemfile
source ''
gem 'http', :path =>'/Users/oripekelman/Sites/http'
gem 'sinatra'
You can’t perform that action at this time.