Skip to content

Instantly share code, notes, and snippets.

View gvlx's full-sized avatar

Gerardo Lisboa gvlx

View GitHub Profile
@gvlx
gvlx / gist:1884078
Created February 22, 2012 10:33 — forked from neilj/gist:1532562
Sugared DOM: Better Than Templates
var el = ( function () {
var doc = document;
var directProperties = {
'class': 'className',
className: 'className',
defaultValue: 'defaultValue',
'for': 'htmlFor',
html: 'innerHTML',
# Unofficial brew formula for proxychains 4
# Instruction:
# $ git clone https://gist.github.com/gvlx/5441972 gist-5441972
# $ brew install --HEAD gist-5441972/proxychains_formula.rb
#
# The default config file will be located in /usr/local/etc/proxychains.conf
#
require 'formula'
class ProxychainsFormula < Formula
@gvlx
gvlx / dabblet.css
Created May 1, 2013 23:44
Circular Tooltip (SO)
/**
* Circular Tooltip (SO)
* http://stackoverflow.com/q/13132864/1397351
*/
* { margin: 0; padding: 0; }
body {
overflow: hidden;
background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg);
}
/* generic styles for button & circular menu */
@gvlx
gvlx / TM_makeImage.sh
Created October 20, 2013 11:06
A bash script to create a time machine disk image suitable for backups with OS X 10.6 (Snow Leopard)
#!/bin/bash
# A bash script to create a time machine disk image suitable for
# backups with OS X 10.6 (Snow Leopard)
# This script probably only works for me, so try it at your own peril!
# Use, distribute, and modify as you see fit but leave this header intact.
# (R) sunkid - September 5, 2009
#
# retrived from http://www.insanelymac.com/forum/topic/184462-guide-106-snow-leopard-time-machine-backup-to-network-share/
# http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=55807
@gvlx
gvlx / Text vs Diagrams.txt
Created June 10, 2016 08:07
Text vs Diagrams
https://blog.abstratt.com/2008/05/05/on-code-and-diagrams/
https://web.archive.org/web/20120127085644/http://blog.objectmentor.com/articles/2007/09/06/why-we-write-code-and-dont-just-draw-diagrams
https://web.archive.org/web/20101118004330/http://www.rgoarchitects.com/nblog/2007/08/28/AD2007BuildingDSLsInStaticAndDynamicLanguagesNealFord.aspx
@gvlx
gvlx / gist:7ad780f369474b0bff230705a7669546
Created June 10, 2016 09:33
Error handling vs Exceptions
http://dave.cheney.net/2012/01/18/why-go-gets-exceptions-right
@gvlx
gvlx / notepadpp_helper_remove_duplicate_lines.txt
Created September 2, 2016 12:27
Notepad++ Helper: remove duplicate lines
http://stackoverflow.com/a/16293580/43408
https://stackoverflow.com/questions/3958350/removing-duplicate-rows-in-notepad
Since Notepad++ Version 6 you can use this regex in the search and replace dialogue:
^(.*?)$\s+?^(?=.*^\1$)
and replace with *nothing*. This leaves from all duplicate rows the last occurrence in the file.
- ^ - matches the start of the line.
@gvlx
gvlx / L10n - Localization resources.txt
Created September 21, 2016 08:13
L10n - Localization resources
L10n - Localization resources
ICU - International Components for Unicode
http://site.icu-project.org/
CLDR - Unicode Common Locale Data Repository
http://cldr.unicode.org/
http://l10ns.org/
https://www.youtube.com/watch?v=4ZXagCR9urg
@gvlx
gvlx / Email accessibility compliance.txt
Created September 21, 2016 08:25
Email accessibility compliance
Email accessibility compliance
http://www.interactiveaccessibility.com/services/wcag-20-compliance
http://www.headstar.com/ten/
http://www.email-standards.org/
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>interactive xpath tester</title>
<!-- From http://ponderer.org/download/xpath/ by ([email protected]) on 2017-03-28 -->
<!-- license unknown -->
<style>
body {
background-color: #eee;
}
#in {