Skip to content

Instantly share code, notes, and snippets.

View philippebarbosa's full-sized avatar

Philippe Barbosa philippebarbosa

View GitHub Profile
@philippebarbosa
philippebarbosa / auth.php
Created December 20, 2017 15:00
Restricted page
<?php ?>
@philippebarbosa
philippebarbosa / copyfolderstructure.md
Created July 1, 2017 09:18
Copy folder structure without files

rsync -a /path/from/ /path/to/ --include \*/ --exclude \*

@philippebarbosa
philippebarbosa / boucing-timing.css
Created October 1, 2014 14:03
Cute bouncing timing function
transition: all 0.4s cubic-bezier(0, 1.4, 1, 1.4);
@philippebarbosa
philippebarbosa / gzHDs.markdown
Created August 28, 2014 08:17
A Pen by Erick.
@philippebarbosa
philippebarbosa / 0_reuse_code.js
Created April 29, 2014 14:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@philippebarbosa
philippebarbosa / yoast-seo-schemaorg.php
Created April 22, 2014 09:43
Change the Yoast SEO breadcrumb from rdfa to schema.org. Updated from http://leaves-and-love.net/how-to-modify-wp-seo-breadcrumbs-for-schema-org : Generate duplicates item type.
class SchemaOrg_Breadcrumbs
{
// this class variable is needed to count the links since they have to be nested when using Schema.org markup
private $breadcrumb_link_counter = 0;
private $breadcrumb_element_wrapper = 'span';
private $breadcrumb_output_wrapper = 'span';
public function __construct()
{
<!-- HTML5 Doctype. Remember to delete these comments (Quirks Mode). -->
<!doctype html>
<!-- Modernizr HTML tags with IE classes. -->
<!--[if lt IE 7]> <html lang="" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html lang="" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html lang="" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="" class="no-js"> <!--<![endif]-->
<!-- Let's get started. -->
@philippebarbosa
philippebarbosa / unlike-facebook-page-fast.md
Last active August 24, 2022 01:40
A simple way to unlike all facebook page in one time !

How to unlike all Facebook page at once

If you want to do cleaning on your Facebook timeline, you may want to unlike all Facebook pages quickly. There is a way for that :

  • Go to firefox and install iMacros
  • Open a text editor (i.e. Notepad, Sublime Text), and paste that code inside :
VERSION BUILD=7401110 RECORDER=FX
@philippebarbosa
philippebarbosa / bourbon.scss
Last active December 20, 2015 03:29
Thanks for your help !
/*------------------------------------------------------*\
How to use transition on a vendor-prefixed property ?
http://bourbon.io/docs/#transitions
\*-------------------------------------------------------*/
.example {
@include transition (transition-property-names((transform), moz) 1.0s ease-in);
}
/*