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 / 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>
@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 / 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 / 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 / WhatsApp Web Send Random Heart
Last active October 18, 2020 01:06
Just a simple WhatsApp Web Heart Sender
/*
Simple WhatsApp Web Spam Bot Originally written by Pablode. Modified by Gal Bracha.
Use with love <3. Do not act reckless.
====================================================================================
DISCLAIMER: I do not take any responsibility for any damage caused with this script.
WhatsApp might be able identify script users if this becomes a problem. Do only use
this if you are aware of the consquences.
====================================================================================
Usage: Copy all of this script (Ctrl+A, Ctrl+C). Add a new Bookmark. In the URL section,
write "javascript:" and paste (Ctrl+V) this script. Visit WhatsApp Web, select your
/**
* Write a description of class BusArrival here.
*
* @author (your name)
* @version (a version number or a date)
*/
/*# Joni: no API documentation */
public class BusArrival
{
@rootux
rootux / MouseControl.h
Created June 24, 2016 13:04 — forked from chuckleplant/MouseControl.h
Mouse control for Windows in C++. Dependencies: User32 Windows library.
#ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x500
#endif
#include "Winuser.h"
#include "windef.h"
class ofxMouse
{
public:
static enum MouseEventFlags
@rootux
rootux / create_safetyfile.gs
Last active November 21, 2016 22:53
Creates a Safety file from
/**
* Generate Google Docs based on a template document and data incoming from a Google Spreadsheet
*
* License: MIT
*
* Copyright 2013 Mikko Ohtamaa, http://opensourcehacker.com
*
* Modified by Gal Bracha for http://dreams.midburnerot.com
* This is the source file from which we generate the Safety file template
* https://docs.google.com/document/d/1jTb-7Y3ApVchQwqfw7CcKstBNAt8-rmwtLMYU4oi2jk/edit?usp=sharing
@rootux
rootux / midburnerot_omg.js
Last active December 11, 2016 12:46
Midburnerot omg sale shuffle from array of emails
/*
* Based on Fisher-Yates (Aka Knuth) shuffle
* https://github.com/Daplie/knuth-shuffle
*/
Array.prototype.shuffle = function() {
let currentIndex = this.length, temporaryValue, randomIndex;
// While there remain elements to shuffle...
while (0 !== currentIndex) {
require 'googleauth/stores/file_token_store'
require 'googleauth/token_store'
# Implementation of google auth storage backed by ENV variable
# Gal Bracha
class EnvTokenStore < Google::Auth::TokenStore
@token = ''
def initialize(options = {})