Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
hey ✌🏼

Davidson Fellipe davidsonfellipe

:octocat:
hey ✌🏼
View GitHub Profile
@davidsonfellipe
davidsonfellipe / gist:11199413
Created Apr 23, 2014
Get all friends who canceled facebook account
View gist:11199413
// go to https://www.facebook.com/YOURPROFILE/friends
var xx = document.querySelectorAll('.fsl.fwb.fcb a')
for (var i = 0; i<xx.length; i++){
if(xx[i].href === 'https://www.facebook.com/YOURPROFILE/friends#') {
console.log(xx[i].innerHTML);
@davidsonfellipe
davidsonfellipe / gist:d0fe40af8be82c10cc02
Created Oct 2, 2014
List with some Syntax Highlighters plugins
View gist:d0fe40af8be82c10cc02
http://craig.is/making/rainbows
https://github.com/cowlby/Lighter
http://jush.sourceforge.net/
https://github.com/aercolino/Chili
http://prismjs.com/
https://code.google.com/p/google-code-prettify/
https://highlightjs.org/
http://shjs.sourceforge.net/
http://pygments.org/
http://qbnz.com/highlighter/index.php
@davidsonfellipe
davidsonfellipe / br-responsive
Last active Aug 29, 2015
Breaklines responsive
View br-responsive
br,
br:after {
content: ' ';
}
@media only screen and (min-width: 1024px) {
br,
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
davidsonfellipe / pagespeed.md
Last active Aug 31, 2015
Workaround for pagespeed on Chrome
View pagespeed.md

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://www.swi-prolog.org/home/pl/git/pl.git
or
development version:
git://www.swi-prolog.org/home/pl/git/pl-devel.git
$ cd pl-devel
@davidsonfellipe
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
davidsonfellipe / gist:4529929
Last active Dec 11, 2015
install capistrano
View gist:4529929
# capistrano
if which cap &> /dev/null; then
echo "==> Checking capistrano... OK"
else
echo "==> Installing capistrano (gem install capistrano)..."
sudo gem install capistrano
echo "==> OK"
fi
You can’t perform that action at this time.