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: |
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 helper = window.helper = { | |
/* | |
Boolean | |
*/ | |
isiPad: navigator.userAgent.match(/iPad/i) != null, | |
isRetina: window.devicePixelRatio && window.devicePixelRatio > 1, | |
isOnline: navigator.onLine, | |
isWebAppMode: window.navigator.standalone || false, | |
landscape: function(){ return Math.abs(helper.orientation) === 90; }, | |
portrait: function(){ return !helper.landscape() }, |
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
/** | |
* Circular Tooltip (SO) | |
* http://stackoverflow.com/q/13132864/1397351 | |
*/ | |
* { margin: 0; padding: 0; } | |
body { | |
overflow: hidden; | |
background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg); | |
} | |
/* generic styles for button & circular menu */ |
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
wp-config-locale.php |