Skip to content

Instantly share code, notes, and snippets.

View philippebarbosa's full-sized avatar

Philippe Barbosa philippebarbosa

View GitHub Profile
@philippebarbosa
philippebarbosa / Better Helvetica
Created January 28, 2013 13:39
Better Helvetica - Thanks : css-tricks.com
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
@philippebarbosa
philippebarbosa / Social_snippets
Created January 31, 2013 14:29
Social Snippet for html <head>
<!-- FACEBOOK -->
<meta property="og:image" content="http://www.website.com/thumbnail.jpg" />
<meta property="og:title" content="Article Title." />
<meta property="og:description" content="Article Description." />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.website.com/article-title" />
<!-- TWITTER -->
<meta name="twitter:card" content="summary"/>
<meta name="twitter:url" content="http://www.website.com/article-name"/>
<meta name="twitter:title" content="Title of the Article"/>
@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.
// Source : http://bit.ly/124AZEH
-----
// Vendor
@import "susy";
@import "modular-scale";
@import "vendor/animate";
// Mixins
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
@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>
@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 / 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 / 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
<!-- 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. -->