Skip to content

Instantly share code, notes, and snippets.

View raulghm's full-sized avatar
🏠
Working from home

Raúl raulghm

🏠
Working from home
View GitHub Profile
{
"require": {
"slim/slim": "2.*",
"illuminate/database": "*",
"dhorrigan/capsule": "*"
}
}
function hasFileUploadSupport(){
var hasSupport = true;
try{
var testFileInput = document.createElement('input');
testFileInput.type = 'file';
testFileInput.style.display = 'none';
document.getElementsByTagName('body')[0].appendChild(testFileInput);
if(testFileInput.disabled){
hasSupport = false;
}
<link rel="shortcut icon" href="/img/favicons/favicon.ico">
<link rel="icon" sizes="16x16 32x32 64x64" href="/img/favicons/favicon.ico">
<link rel="icon" type="image/png" sizes="196x196" href="/img/favicons/favicon-196.png">
<link rel="icon" type="image/png" sizes="160x160" href="/img/favicons/favicon-160.png">
<link rel="icon" type="image/png" sizes="96x96" href="/img/favicons/favicon-96.png">
<link rel="icon" type="image/png" sizes="64x64" href="/img/favicons/favicon-64.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicons/favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicons/favicon-16.png">
<link rel="apple-touch-icon" sizes="152x152" href="/img/favicons/favicon-152.png">
<link rel="apple-touch-icon" sizes="144x144" href="/img/favicons/favicon-144.png">
@raulghm
raulghm / gist:50c6769ecc74cb1ffbe2
Created August 12, 2014 15:23
[Wordpress] Remove extra head tags
// Remove extra head tags
remove_action( 'wp_head', 'feed_links_extra', 3 ); //Extra feeds such as category feeds
remove_action( 'wp_head', 'feed_links', 2 ); // General feeds: Post and Comment Feed
remove_action ('wp_head', 'rsd_link');
remove_action( 'wp_head', 'wlwmanifest_link');
remove_action( 'wp_head', 'wp_shortlink_wp_head');
remove_action('wp_head', 'wp_generator');
@raulghm
raulghm / styles.scss
Created October 22, 2014 15:35
este es un super Gist!
.container {
.inner {
width: 100%;
margin: 100px;
}
.div {
color: rgb(255, 237, 93);
}
}
$module: 'block';
.#{$module} {
&__element {
}
&--modifier {
.#{$module}__element {
}
@raulghm
raulghm / gist:abf460cdbe2c4ce3013d
Created November 24, 2014 13:54
BEM Snippet [Sublime Text]
<snippet>
<content><![CDATA[
\$module: 'block';
.#{\$module} {
&__element {}
&--modifier {
.#{\$module}__element {}
.block
.block__element
p Lorem ipsum
.block__element--modifier
p Lorem ipsum
.block__element.block__element--modifier
p Lorem ipsum
@raulghm
raulghm / gist:a1bb39536e4a55b2e020
Created January 26, 2015 13:18
BEM Snippet [Suit CSS]
// https://github.com/suitcss/suit/blob/master/doc/naming-conventions.md
// u-utilityName
// ComponentName
// ComponentName--modifierName
// ComponentName-descendantName
// ComponentName.is-stateOfComponent
$module: 'ComponentName';
@raulghm
raulghm / gist:2d052f5c643aba971a1d
Created January 26, 2015 13:22
BEM Snippet [SuitCSS, Sublime Text]
<snippet>
<content><![CDATA[
// https://github.com/suitcss/suit/blob/master/doc/naming-conventions.md
// ComponentName
// ComponentName--modifierName
// ComponentName-descendantName
// ComponentName.is-stateOfComponent
// u-utilityName