Skip to content

Instantly share code, notes, and snippets.

View hbt's full-sized avatar

Hassen Ben Tanfous hbt

View GitHub Profile
@hbt
hbt / Custom.css
Created October 8, 2011 22:35
Custom.css google chrome
* {
color: rgb(237, 237, 237);
font-size: 14px;
background-image: initial;
background-attachment: initial;
background-origin: initial;
background-clip: initial;
background-color: rgb(15, 15, 15);
background-position: initial initial;
background-repeat: initial initial;
@hbt
hbt / all_dark.css
Created October 23, 2011 20:57
dark colors
/** dark_colors */
* {
color: rgb(237, 237, 237);
font-size: 14px;
background-image: initial !important;
background-attachment: initial;
background-origin: initial;
background-clip: initial;
background-color: rgb(15, 15, 15) !important;
background-position: initial initial;
@hbt
hbt / wupload.hack
Created November 13, 2011 06:20
wupload countdown hack --- copy paste script + call CMApplication.Pages.Download.CountDown.hack(); and download files without waiting
// Build on Thu Oct 20 21:06:21 CEST 2011 for language "en"
myHostname = window.location.hostname;
var myTLD = "." + myHostname.substring(myHostname.indexOf("wupload") + "wupload.".length).split(".")[0];
function afterLoad() {
return
}
ieFixForFileSelectionOnChangeEventTimer = null;
function ieFixForFileSelectionOnChangeEvent(a) {
@hbt
hbt / underscore_debug_version
Created January 6, 2012 19:25
underscore in coffeescript compiled javascript version with line numbers matching original source code
@hbt
hbt / underscore_prod_version_compiled
Created January 6, 2012 19:25
coffeescript with line numbers for debugging (prod version)
(function() {
var ArrayProto, ObjProto, addToWrapper, breaker, escapeRegExp, hasOwnProperty, idCounter, nativeEvery, nativeFilter, nativeForEach, nativeIndexOf, nativeIsArray, nativeKeys, nativeLastIndexOf, nativeMap, nativeReduce, nativeReduceRight, nativeSome, previousUnderscore, propertyIsEnumerable, result, root, slice, toString, unshift, wrapper, _,
__hasProp = Object.prototype.hasOwnProperty;
root = this;
previousUnderscore = root._;
breaker = typeof StopIteration === 'undefined' ? '__break__' : StopIteration;
@hbt
hbt / underscore.coffee
Created January 6, 2012 19:26
underscore in coffeescript
# **Underscore.coffee
# (c) 2011 Jeremy Ashkenas, DocumentCloud Inc.**
# Underscore is freely distributable under the terms of the
# [MIT license](http://en.wikipedia.org/wiki/MIT_License).
# Portions of Underscore are inspired by or borrowed from
# [Prototype.js](http://prototypejs.org/api), Oliver Steele's
# [Functional](http://osteele.com), and John Resig's
# [Micro-Templating](http://ejohn.org).
# For all details and documentation:
# http://documentcloud.github.com/underscore/
@hbt
hbt / gist:2324282
Created April 7, 2012 00:33
script to align code without using a parter + tokenizer
# add("zi", Zoom["in"]);
# add("zo", Zoom.out);
# add("zm", Zoom.more);
# add("zr", Zoom.reduce);
# add("zz", Zoom.reset);
#
# add("zI", Zoom.current_in);
# add("zO", Zoom.current_out);
#
# add("zM", Zoom.current_more);
@hbt
hbt / netflix-ratings-export.js
Created June 27, 2014 19:31
export netflix ratings by saving html pages using pentadactyl
with(window.content.window)
{
// start page
localStorage['minc'] = localStorage['minc'] || 1
function main()
{
// only run on ratings page
@hbt
hbt / medium-tmp-post-problem-elimination.md
Created December 20, 2015 17:49
The difference between solving a problem and eliminating it

The difference between solving a problem and eliminating it

There is a lot of talk about incremental improvements vs innovation and companies calling themselves "disruptive".

What we should be asking:

  • What is the root problem we are trying to eliminate?
  • Where does the solution fit in the grand scheme of things?
  • How far are we from actually eliminating the problem?

Keybase proof

I hereby claim:

  • I am hbt on github.
  • I am hbt (https://keybase.io/hbt) on keybase.
  • I have a public key whose fingerprint is B5EF 5804 CB7E F892 CF5C 0F97 C962 EE71 1DD5 255E

To claim this, I am signing this object: