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
#target photoshop | |
if (app.documents.length > 0) { | |
var existingColor = prompt("Colour to change: color(r,g,b - e.g. 255,255,255 or Hex - e.g. FFFFFF)", "255,255,255"); | |
var newColor = prompt("New colour: color(r,g,b - e.g. 255,255,255 or Hex - e.g. FFFFFF)", "255,255,255"); | |
var newRed = 0, newGreen = 0, newBlue = 0; | |
if (newColor.indexOf(",") > 0) { | |
var list = newColor.split(","); |
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
cd ~ | |
sudo curl -sS https://getcomposer.org/installer | sudo php | |
sudo mv composer.phar /usr/local/bin/composer | |
sudo ln -s /usr/local/bin/composer /usr/bin/composer |
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 | |
/** | |
* Converts string to SEO-friendly form (lowercase hyphenated alphanumeric words) | |
* | |
* @param $string | |
* @return string | |
*/ | |
function seoUrl($string) | |
{ | |
// qv stackoverflow.com/questions/11330480, stackoverflow.com/questions/1017599 |