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
It works both ways. If designers understood the shit developers have to go through when they send them >1GB PSDs with badly named layers and multiplies everywhere and if developers understood why designers want that button moved by 3px we'd live in a better world. | |
A designer doesn't need to know how to code as such but understand how the development process works (if they can good well, that's always a bonus) and a developer needs to understand the design process too (if they can use photoshop and edit the PSDs then we're going well). | |
The fact of the matter is that in this day and age it's less about being a master of one trade or a jack of all, but having a good understanding how different factors from design, development and even sysadmin, come together to make a digital "product". It's that key understanding that means that the players in the different verticals will respect each others comments and decisions. |
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
$m = $wp_query->max_num_pages; | |
if ( $m > 1 ) | |
{ | |
?> | |
<div class="pagination"> | |
<ul> | |
<?php for ( $i = 1; $i <= $m; $i++ ): ?> | |
<li> | |
<a href="<?php the_permalink(); ?>/page/<?php echo $i; ?>" title="Go to page <?php echo $i; ?>"> |
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
#!/usr/bin/env python | |
import profile | |
LIST = ['ass','ass lick','asses','asshole','assholes','asskisser','asswipe','balls','bastard','beastial','beastiality','beastility','beaver','belly whacker','bestial','bestiality','bitch','bitcher','bitchers','bitches','bitchin','bitching','blow job','blowjob','blowjobs','bonehead','boner','brown eye','browneye','browntown','bucket cunt','bull shit','bullshit','bum','bung hole','butch','butt','butt breath','butt fucker','butt hair','buttface','buttfuck','buttfucker','butthead','butthole','buttpicker','chink','circle jerk','clam','clit','cobia','cock','cocks','cocksuck','cocksucked','cocksucker','cocksucking','cocksucks','cooter','crap','cum','cummer','cumming','cums','cumshot','cunilingus','cunillingus','cunnilingus','cunt','cuntlick','cuntlicker','cuntlicking','cunts','cyberfuc','cyberfuck','cyberfucked','cyberfucker','cyberfuckers','cyberfucking','damn','dick','dike','dildo','dildos','dink','dinks','dipshit','dong','douche bag','dumbass','dyke','ejaculate','ejaculated' |
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
var Storage = function(name, callback) | |
{ | |
var cache = { }; | |
var keysIndex = '_' + name + '_'; | |
var write = true; | |
// let's cache! | |
function _get(key) | |
{ | |
var data = _.clone( cache[ key ] ); |
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
#!/usr/bin/env bash | |
DIR='tmp' | |
REMOTE='your_app' | |
echo 'Making tmp dir' | |
if [[ -d "$DIR" ]]; then | |
rm -rf $DIR | |
fi | |
echo 'Exporting SVN to tmp' |
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.linkify = function() | |
{ | |
var str = this.toString(); | |
str = str.replace(/(https?:\/\/[^\s]+)/gim, '<a href="$1">$1</a>', str); | |
str = str.replace(/([#|@][^\s]+)/gim, '<a href="http://twitter.com/$1">$1</a>', str); | |
return str; | |
} |
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
ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="muse" | |
alias zshconfig="st $HOME/.zshrc" | |
COMPLETION_WAITING_DOTS="true" | |
plugins=(git git-extras osx sublime) | |
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:$PATH | |
export PATH=$HOME/.macports/bin:$HOME/.macports/sbin:$PATH |
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
<?php | |
function get_assets($ext, $template) | |
{ | |
$folders = array( | |
'assets/' . $ext . '/vendor', | |
'assets/' . $ext | |
); | |
foreach ($folders as $folder) | |
{ |
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
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
BrowserMatch MSIE ie | |
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie | |
</IfModule> | |
</IfModule> | |
<IfModule mod_headers.c> | |
Header append Vary User-Agent | |
</IfModule> |
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
<?php | |
define('ENVIRONMENT', $_SERVER['HTTP_HOST'] === 'domain.dev' ? 'development' : 'production'); | |
include 'version.php'; | |
function get_assets($ext, $template) | |
{ | |
$folders = array( | |
'assets/' . $ext . '/vendor', | |
'assets/' . $ext |