This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains 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
UPDATE `wp_posts` SET `guid` = REPLACE( `guid` , 'localhost', 'liveserver' ) |
This file contains 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
<?php if(is_front_page()): ?> | |
// do not use prefecth on homepage | |
<?php elseif (is_singular()): ?> | |
// load the next post, view http://ideasandpixels.com/get-only-url-of-next-and-previous-posts-wordpress | |
<link rel="prefetch" href="<?php echo get_permalink(get_adjacent_post(false,'',true)); ?>"> | |
<link rel="prerender" href="<?php echo get_permalink(get_adjacent_post(false,'',true)); ?>"> | |
<?php else: ?> | |
<link rel="prefetch" href="<?php echo home_url(); ?>"> | |
<link rel="prerender" href="<?php echo home_url(); ?>"> | |
<?php endif; ?> |
This file contains 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
Accounts.loginServiceConfiguration.remove({service: "github"}); | |
Accounts.loginServiceConfiguration.remove({service: "facebook"}); | |
Accounts.loginServiceConfiguration.remove({service: "twitter"}); | |
Accounts.loginServiceConfiguration.remove({service: "linkedin"}); | |
Accounts.loginServiceConfiguration.insert({ | |
service: "github", | |
clientId: "ID", | |
secret: "SECRET" | |
}); |
This file contains 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
@import "style_bootstrap"; // twitter bootstrap or zurb foundation | |
@import "settings"; // contains the variables | |
@import "helpers" // contains all the reusable classes | |
@import "styles" // contains the general style could be split into small files (ie: 'header', 'content', 'column_left', 'footer', 'page1') | |
@import "tweaks" // your shame | |
This file contains 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
var hasPlaceholder = function(){ | |
return 'placeholder' in document.createElement('input'); | |
} | |
if(hasPlaceholder()){ | |
$('form label').hide(); | |
} |
This file contains 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
<ul class="slideContainer" id="money_start"> | |
<li class="slideItem" > | |
EUR | |
</li> | |
<li class="slideItem"> | |
USD | |
</li> | |
<li class="slideItem"> | |
JPY | |
</li> |
This file contains 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
// http://api.colourco.de/export/png/%23cdb6e7%2C%23bedae9%2C%23c0df9f%2C%23ddca98%2C%23e8baba | |
purple | |
#cdb6e7 | |
rgb(205, 182, 231) | |
hsl(268, 50%, 81%) | |
hcl(309, 28%, 77%) | |
lab(77, 17, -21) | |
blue |
This file contains 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 is_array(variable){ | |
return Object.prototype.toString.call( variable ) === '[object Array]' | |
} |
This file contains 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
<?php | |
/* | |
* find_and_replace_by takes 4 optional arguments | |
* first is the host | |
* second is db username | |
* third is db password | |
* fourth is database name | |
* ie: $ find_and_replace_by.php root password drupal | |
* or with two arguments: |