Skip to content

Instantly share code, notes, and snippets.

hey ✌🏼

Davidson Fellipe davidsonfellipe

hey ✌🏼
View GitHub Profile
davidsonfellipe / gist:11199413
Created Apr 23, 2014
Get all friends who canceled facebook account
View gist:11199413
// go to
var xx = document.querySelectorAll('.fsl.fwb.fcb a')
for (var i = 0; i<xx.length; i++){
if(xx[i].href === '') {
davidsonfellipe / gist:d0fe40af8be82c10cc02
Created Oct 2, 2014
List with some Syntax Highlighters plugins
View gist:d0fe40af8be82c10cc02
davidsonfellipe / br-responsive
Last active Aug 29, 2015
Breaklines responsive
View br-responsive
br:after {
content: ' ';
@media only screen and (min-width: 1024px) {
br:after {
content: none;
View angular-icon-svg.js
(function() {
"use strict";
function Icon($sce) {
function Link(scope, elem, attrs) {
scope.getIcon = function(name) {
davidsonfellipe /
Last active Aug 31, 2015
Workaround for pagespeed on Chrome

PageSpeed Insights for Google Chrome has been deprecated. Please use the online version of PageSpeed Insights.

Workaround by @kiquenet

For Google Page Speed extension:

Maybe any partner in your company has installed the extension. Then do this::

Open chrome://version/ and look for Profile Path:

View gist:3782225
stable release:
$ git clone git://
development version:
$ cd pl-devel
davidsonfellipe / gist:3791691
Last active Oct 11, 2015
setDelay Javascript
View gist:3791691
var setDelay = (function(){
var timeout = 0;
return function(callback, milliseconds){
clearTimeout (timeout);
timeout = setTimeout(callback, milliseconds);
View gist:3923370
(A && B)
//Always evaluate A
//If A is true, evaluate B
(A || B)
//Always evaluate A
//If A is false, evaluate B
(A, B)
//Always evaluate A
davidsonfellipe / gist:4529929
Last active Dec 11, 2015
install capistrano
View gist:4529929
# capistrano
if which cap &> /dev/null; then
echo "==> Checking capistrano... OK"
echo "==> Installing capistrano (gem install capistrano)..."
sudo gem install capistrano
echo "==> OK"
You can’t perform that action at this time.