Skip to content

Instantly share code, notes, and snippets.

View joonaspaakko's full-sized avatar
🍕
Pizza...

Joonas Pääkkö joonaspaakko

🍕
Pizza...
View GitHub Profile
@theinsanecow
theinsanecow / ChangeColor.jsx
Created March 31, 2011 04:23
Photoshop script to update the colour of all shape and fill layers that are the same colour as the currently selected layer. Uses the foreground colour as the new colour. Tested in CS4
// ChangeColor.jsx
//
// This photoshop script finds all shape and solid fill layers that match the color
// of the currently selected shape/fill layer and changes their color to the
// foreground color.
//
// Tested on Adobe Photoshop CS4 (Mac)
// enable double clicking from the Macintosh Finder or the Windows Explorer
#target photoshop
@DanielWright
DanielWright / README.md
Created November 16, 2011 18:51
Simple font-smoothing in Internet Explorer

The filter and zoom rules in the sample stylesheet above will apply a smoothing/blurring effect to text elements. In the sample stylesheet, these rules are applied to all headers, paragraphs, list items, and table cells, but in practice, you will want to tailor the application of the smoothing effect to only those elements rendering with significant aliasing.

Nota Bene: the filter appears to place an overflow: hidden-style block around the elements being smoothed, so do not apply these rules directly to elements that need to scroll, or which contain absolutely positioned elements that appear outside the boundaries of the element itself.

@Integralist
Integralist / remote-git.md
Created February 21, 2012 09:51
Basic set-up of remote git repository on a standard server

Set-up remote git repository on a standard server

The first thing to do is to install Git on the remote server.

Once you do that the rest of the process is split into three sections:

  1. Server set-up
  2. Local set-up (push commits)
  3. Server (pull commits)
@lg0
lg0 / filename.applescript
Created April 20, 2012 15:57
applescript:get selected filename and extension
tell application "Finder" to set theFile to POSIX path of (selection as alias)
tell application "Finder" to set fileExtension to name extension of (selection as alias)
@jamtur01
jamtur01 / generate_navigation.rb
Created May 20, 2012 21:28
Auto-generates navigation menu for Jekyll sites using pages based on subdirectories and contents
# Auto-generates navigation
# {% generate_navigation %}
#
require 'pathname'
module Jekyll
class Page
def source_path
File.join(@dir, @name).sub(%r{^/*},'')
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@mattupstate
mattupstate / Scale to Fit.jsx
Created August 22, 2012 00:30
Photoshop script to scale an image to fill a specified rectangle and preserve aspect ratio. Save this in <Photoshop Install Folder>/Presets/Scripts and restart Photoshop.
#target photoshop
main ();
function cloneRectangle(rect) {
return { x:rect.x, y:rect.y, width:rect.width, height:rect.height };
}
function rectangle(x, y, width, height) {
return { x:x, y:y, width:width, height:height };
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active November 5, 2024 18:44
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@cameronmcefee
cameronmcefee / ps-dev-references.md
Last active January 26, 2016 09:48
Here's a list of resources I provide people when they want to start looking into Photoshop development.

Sites and tools

Roughly ordered by functional (not skill level) simplicity, that is they go from simple (basic scripting) to complex (full Photoshop Extensions).

  • Photoshop Script reference - Start here for all your scripting needs. Check out the script listener plugin too. It outputs anything you do in Photoshop as Javascript.
  • Adobe Configurator - Build quick (but simple) panels. Basically GUI interface for scripts.
  • Adobe Photoshop Scripting and SDK forums. Somewhat helpful for scripting/extension building. Don't expect quick answers.
  • PS-Scripts - Another semi-helpful forum
  • Photoshop CS5 Panel Developer's Guide - Hard to find now. I don't think they made one for CS6, but it's still releveant for so
@GrahamWalters
GrahamWalters / gist:5848822
Created June 24, 2013 09:21
Reset QuickLook Thumbnail Cache: Open Terminal and run the following commands
sudo find /var/folders/ -name com.apple.QuickLook.thumbnailcache -type d
# Enter your password and hit enter (it will not display your password).
cd COPY-AND-PAST-THE-ABOVE-OUTPUT-HERE
cd ../
sudo mv com.apple.QuickLook.thumbnailcache com.apple.QuickLook.thumbnailcache-BACK
# Restart your computer.
### If anything goes wrong run the following:
sudo find /var/folders/ -name com.apple.QuickLook.thumbnailcache-BACK -type d