Skip to content

Instantly share code, notes, and snippets.

View rootux's full-sized avatar
🌴
Crafting

Gal Bracha rootux

🌴
Crafting
View GitHub Profile
@rootux
rootux / find_in_string_reverse.js
Last active August 29, 2015 14:24
Javascript Find char in string reverse from position
if (typeof String.prototype.findACharInStringPrev !== 'function') {
String.prototype.findACharInStringPrev = function(char, start) {
do {
if(this[start] == char)
return start;
start--;
}while(start >= 0)
return -1;
};
}
@rootux
rootux / people2csv.py
Last active August 29, 2015 14:20 — forked from marinamixpanel/people2csv.py
Mixpanel People 2 CSV + UNICODE support
''' people export'''
import hashlib
import time
import urllib #for url encoding
import urllib2 #for sending requests
import base64
import sys
import csv
@rootux
rootux / index.html
Created November 29, 2012 15:57
A CodePen by Gal Bracha.
Try searching for 'here' usually you won't find it with normal Chosen.<br>
My fork that splits by '-' char you can find it. Try it out
<br><br><br>
<select id="chosen">
<option>search-with-some-more-info</option>
<option>you-can-search-any-string-in-here</option>
<option>this is a result</option>
<option>this-is-a-result</option>
@rootux
rootux / index.html
Created November 21, 2012 12:16
A CodePen by Gal Bracha. Wash over image animation - Using css transition to create a wash effect over an image that changes from white to black
<html>
<head>
</head>
<body>
<div class="creative">
<img src="http://25.media.tumblr.com/tumblr_mc1h3mRdRW1r4nnyto1_400.gif">
<div class="creativeWash">
<img src="http://openclipart.org/people/Rocket000/Rocket000_emblem-star.svg" class="star">
<div>
<p class="creativeTitle">This is a title</p>