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
<script> | |
(function() { | |
var config = { | |
kitId: '[your typekit kit id goes here]', | |
scriptTimeout: 3000 | |
}; | |
var h=document.getElementsByTagName("html")[0];h.className+=" wf-loading";var t=setTimeout(function(){h.className=h.className.replace(/(\s|^)wf-loading(\s|$)/g," ");h.className+=" wf-inactive"},config.scriptTimeout);var tk=document.createElement("script"),d=false;tk.src='//use.typekit.net/'+config.kitId+'.js';tk.type="text/javascript";tk.async="true";tk.onload=tk.onreadystatechange=function(){var a=this.readyState;if(d||a&&a!="complete"&&a!="loaded")return;d=true;clearTimeout(t);try{Typekit.load(config)}catch(b){}};var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(tk,s) | |
})(); | |
</script> |
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
/* | |
* This stylesheet overrides the display of code in the Chrome Inspector. | |
* Put it here: ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css | |
*/ | |
/**********************************************/ | |
/* | |
/* Darker Skin by Darcy Clarke - 2011 | |
/* | |
/* Based on Joe Bergantine's Specials Board: |
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
# Some goodies for your /Users/[username]/.bash_login file | |
# Set your search path | |
PATH=$PATH:/usr/local/bin | |
export PATH | |
# Alias for clearing your dns cache | |
alias dnscacheflush='dscacheutil -flushcache' | |
# Alias for subl |
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
# Set your name and email address. The rest can stay the same. | |
[user] | |
name = Your Name | |
email = [email protected] | |
[alias] | |
st = status | |
di = diff | |
co = checkout |
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 | |
header('Content-Type: application/csv'); | |
header('Content-Disposition: attachment; filename=member_export.csv'); | |
header('Pragma: no-cache'); | |
?> | |
{!-- | |
Exports the EE members in CSV format. This is only accessible to admins and editors. | |
Does not export members in the banned or guests groups. |
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
# ---------------------------------------------------------------------- | |
# Password protect staging server | |
# Use one .htaccess file across multiple environments | |
# (e.g. local, dev, staging, production) | |
# but only password protect a specific environment. | |
# ---------------------------------------------------------------------- | |
SetEnvIf Host staging.domain.com passreq | |
AuthType Basic | |
AuthName "Password Required" |
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
1) In your Dropbox directory, create a new directory called SublimeUserPackages | |
2) Open terminal | |
3) Go to Sublime's packages directory | |
cd ~/Library/Application Support/Sublime Text 2/Packages | |
4) Copy the user packages to your new dropbox folder | |
cp -rp User/* ~/Dropbox/SublimeUserPackages/ |
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
// pass a function as a parameter of another function | |
function doAnotherThing() { | |
console.log('Doing another thing…'); | |
} | |
function doSomething(callback) { | |
console.log('Doing something…'); | |
if (typeof callback == 'function') { | |
callback.call(); |
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
{!-- Displays the number of new ExpressionEngine members by month --} | |
{exp:query sql="select count(*) AS total, month(from_unixtime(join_date)) as month, year(from_unixtime(join_date)) as year from exp_members group by year, month order by year DESC, month DESC"} | |
<br/>{year}-{month}: {total} | |
{/exp:query} |
NewerOlder