This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.is-languageTier3 .graf--h3 { | |
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif | |
} | |
.is-languageTier3 .postContent { | |
font-family: Georgia, Cambria, "Times New Roman", Times, serif | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###* | |
* String prototype to check the presence of a substring | |
* @param {String} needle to look for | |
* @return {Bool} Presence of needle in String | |
### | |
if typeof String::contains isnt 'function' | |
String::contains = (needle) -> | |
(@.match new RegExp needle.replace(/[-[\](){}*+?.,\\^$|#\s]/g, "\\$&"))? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function array_reorder( $array, $index_from, $index_to ) { | |
array_splice( | |
$array, | |
$index_to, | |
count( $array ), | |
array_merge( | |
array_splice( $array, $index_from, 1 ), | |
array_slice( $array, $index_to, count( $array ) ) | |
) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if typeof Number::mod isnt 'function' | |
Number::mod = (n) -> | |
( ( @ % n ) + n ) % n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Clearfix */ | |
@mixin clearfix { | |
&:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
} | |
/* Media Queries */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Load Wordpress in any file inside wp-content/ */ | |
defined('ABSPATH') or define('ABSPATH', preg_replace('/\/wp-content\/.*/', '', __DIR__) . '/'); | |
require_once ABSPATH . 'wp-load.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patterns = | |
name: | |
/// ^ | |
[a-z|A-Z|àáèéíòóúÀÁÈÉÍÒÓÚïÏüÜçÇñÑ\-ºª\s]{2,} | |
$ ///i | |
email: | |
/// ^ | |
([\w-\.]+@([\w-]+\.)+[\w-]{2,4}) | |
$ ///i | |
date: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class API | |
constructor: (url) -> | |
@url ?= apiURL | |
@status = | |
OK: 200, | |
DONE: 4 | |
@cache = {} | |
@cacheExpiration = 0 #seconds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ######################## | |
# Leverage browser caching | |
# ######################## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/gif A2592000 | |
ExpiresByType image/jpeg A2592000 | |
ExpiresByType image/jpg A2592000 | |
ExpiresByType image/png A2592000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let jordiNebot = { | |
type: 'Full Stack Web Developer', | |
employer: 'Self-employed', | |
from: { | |
city: 'Barcelona', | |
coordinates: { | |
lat: 41.3891006, | |
lng: 2.1333274999999503 | |
} | |
}, |
OlderNewer