Skip to content

Instantly share code, notes, and snippets.

View Linrstudio's full-sized avatar
🌴
On vacation

xyz Linrstudio

🌴
On vacation
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
@jed
jed / LICENSE.txt
Created June 24, 2011 10:20 — forked from 140bytes/LICENSE.txt
Array.prototype.unique
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@vladocar
vladocar / DrawShape.js
Created October 23, 2011 22:33
Draw Shape in Photoshop with JavaScript
/* Code by Mike Hale http://www.ps-scripts.com/bb/viewtopic.php?f=14&t=1802&start=15
with small modification by Vladimir Carrer
*/
function DrawShape() {
var doc = app.activeDocument;
var y = arguments.length;
var i = 0;
@jonschoning
jonschoning / FiddlerScript.js
Created November 15, 2011 21:55
FiddlerScript.js
//https://gist.github.com/1368507
import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;
// INTRODUCTION
// This is the FiddlerScript Rules file, which creates some of the menu commands and
// other features of Fiddler. You can edit this file to modify or add new commands.
(function($) {
// Used by dateinput
$.expr = {':': {}};
// Used by bootstrap
$.support = {};
// Used by dateinput
$.fn.clone = function(){
var ret = $();
@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@timoxley
timoxley / isPortTaken.js
Last active April 19, 2024 11:51
check if a port is being used with nodejs
var isPortTaken = function(port, fn) {
var net = require('net')
var tester = net.createServer()
.once('error', function (err) {
if (err.code != 'EADDRINUSE') return fn(err)
fn(null, true)
})
.once('listening', function() {
tester.once('close', function() { fn(null, false) })
.close()
@frne
frne / auth_response.xml
Created February 16, 2012 13:19
ejabberd, BOSH und Strophe.js
<body xmlns="http://jabber.org/protocol/httpbind"
sid="e0408bf8d86f0a7f44afda59aa8f81b75d029bb6"
wait="60"
requests="2"
inactivity="30"
maxpause="120"
polling="2"
ver="1.6"
from="ymc-pg-ejabberd"
secure="true"
@SAPikachu
SAPikachu / GetFontPath.cs
Created April 12, 2012 13:41
For use with https://gist.github.com/2367357 . Get font's file path by font name, requires Windows 7 (2008R2 should be OK too). Uses undocumented feature, not sure whether it still works on Win8. Compiled version: http://nmm.me/fq
using System;
using System.Collections.Generic;
using System.Text;
using SharpDX.DirectWrite;
using System.Reflection;
using System.Runtime.InteropServices;
namespace GetFontPath
{
class Program
@andershaig
andershaig / CSS3_Full.jsx
Created April 17, 2012 21:44
Create CSS3 code from Photoshop layers
/* Copyright 2012 - Minim Group - http://minim.co/ */
// Enable double-clicking from Finder/Explorer
#target photoshop
app.bringToFront();
// ### Document Variables
var doc_layers = app.activeDocument.layers;
var num_layers = doc_layers.length;