Skip to content

Instantly share code, notes, and snippets.

View philippebarbosa's full-sized avatar

Philippe Barbosa philippebarbosa

View GitHub Profile
@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 / copyfolderstructure.md
Created July 1, 2017 09:18
Copy folder structure without files

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

@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()
{
@philippebarbosa
philippebarbosa / auth.php
Created December 20, 2017 15:00
Restricted page
<?php ?>
@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);
}
/*
@philippebarbosa
philippebarbosa / gist:5712392
Created June 5, 2013 08:17
URL redirect if mobile/tablet
<script>
var mobile = (/iphone|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if (mobile) { document.location = "http://www.yoururl.com/mobile"; }
if( navigator.userAgent.match(/iPad/i) != null ){ document.location = "http://www.yoururl.com/ipad"; }
</script>
@philippebarbosa
philippebarbosa / Set jquery cdn with a local fallback
Created May 31, 2013 10:27
Set jquery with a local fallback
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
Settings an executable sh file :
- Last line of .sh file :
#!/bin/sh
- in terminal, set the file executable
chmod +x name.sh
- then to open it :
./script.sh
// Source : http://bit.ly/124AZEH
-----
// Vendor
@import "susy";
@import "modular-scale";
@import "vendor/animate";
// Mixins
@philippebarbosa
philippebarbosa / semanticgridsystem.md
Last active December 16, 2015 04:29
Here is a list of the current available CSS grid-systems that don't use ugly span-X or col-X classes.