Skip to content

Instantly share code, notes, and snippets.

View alan-andrade's full-sized avatar
💻

Alan Andrade alan-andrade

💻
View GitHub Profile
Elevation Bike Company (make sure they have bike)
Saturday Morning - :
@alan-andrade
alan-andrade / checklist.md
Last active June 1, 2016 23:20
MIssing stuff
  • Aggregate total gameplays with new endpoint.
  • Empty look on lpi screen if nothing renders.
  • Last update label on calendar.
  • Position arrow under current day.
  • View layout fixes such as margin at the bottom of the page.
@alan-andrade
alan-andrade / Ioc.md
Last active July 25, 2017 23:55
Inversion Of Control

The term Inversion of control started to be used when programming started to do UI applications.

print "What's your name?"
var name = READLINE()

The control relies on the user for the program to continue.

On UI, the code has to be always running and be ready to react when the user taps the screen.

@alan-andrade
alan-andrade / Ohhh noes.txt
Created October 12, 2017 21:11 — forked from unixcharles/Ohhh noes.txt
OSX libxml2 error fix
Look like brew libxml2 and the one bundled with osx are fighting
/Users/unixcharles/.rvm/gems/ruby-1.8.7-p352/gems/libxml-ruby-1.1.4/lib/libxml_ruby.bundle: dlsym(0x7ffb44ee7880, Init_libxml_ruby): symbol not found - /Users/unixcharles/.rvm/gems/ruby-1.8.7-p352/gems/libxml-ruby-1.1.4/lib/libxml_ruby.bundle (LoadError)
from /Users/unixcharles/.rvm/gems/ruby-1.8.7-p352/gems/libxml-ruby-1.1.4/lib/libxml.rb:9
from /Users/unixcharles/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
from /Users/unixcharles/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
from /Users/unixcharles/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
from /Users/unixcharles/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `require'
from /Users/unixcharles/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
from /Users/unixcharles/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.1
@alan-andrade
alan-andrade / config.md
Created September 7, 2018 19:19 — forked from 0XDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@alan-andrade
alan-andrade / next.js
Last active March 31, 2021 22:01
Jump to next hotkey
javascript:(() => {
const contains = (text) => `contains(text(),'${text}')`;
const conditions = (textOrArray) => textOrArray instanceof Array ? textOrArray.map(contains) : [contains(textOrArray)];
const btnXpath = (text) => `//button[${conditions(text).join(" or ")}]`;
const divXpath = (text) => `//div[${contains(text)}]`;
const findEl = (xpath) => document.evaluate(
xpath,
document,
null,
XPathResult.FIRST_ORDERED_NODE_TYPE,