Skip to content

Instantly share code, notes, and snippets.

View alagu's full-sized avatar

Alagu alagu

View GitHub Profile
@alagu
alagu / gist:138700
Created July 1, 2009 09:20
Delicious account copier
import getpass
from pydelicious import DeliciousAPI, DeliciousItemExistsError
sourceUser = raw_input("Username [source]: ")
sourcePasswd = getpass.getpass("Password [source]: ")
sourceDlcs = DeliciousAPI(sourceUser, sourcePasswd)
print "Getting all bookmarks from source:" + sourceUser
sourceBkmrks = sourceDlcs.posts_all()['posts']
print "Done getting bookmarks"
fromTag = ' from:' + sourceUser
destUser = raw_input("Username [destination]: ")

Capturing Events

Install ScriptListener Plugin plugin

Short tutorial

You'd find logs in ScriptingListenerJS.log like this

fs = require 'fs'
path = require 'path'
PSD = require './psd.js/src/psd'
Parser = require './psd.js/src/parser'
psd = PSD.fromFile process.argv[2]
psd.parse()
for layer in psd["layerMask"]["layers"]
if layer["adjustments"].hasOwnProperty "solid_fill"
#! /usr/bin/ruby
##
# == remember:
# * insert your login and password at Line 100, and save this file.
# * of couse, be very carefull if you send this to a friend... REMOVE your credentials first!
# * if you are using Google Hosted for your Domain (Google Apps), your_login is something like: me@mydomain.com
# * example: go = GoGmail.new($*[0], 'imap.gmail.com', 993, $*[1], 'tree@forest.org', 'littlebird', $*[2])
#
# == usage: