This file contains 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 groovy | |
@Grapes([ | |
@Grab(group = 'com.rabbitmq', module = 'amqp-client', version = '2.6.1'), | |
@Grab(group = 'org.codehaus.jackson', module = 'jackson-mapper-asl', version = '1.8.3') | |
]) | |
import com.rabbitmq.client.ConnectionFactory; | |
import com.rabbitmq.client.Connection; | |
import com.rabbitmq.client.Channel; | |
import com.rabbitmq.client.QueueingConsumer |
This file contains 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
require 'rubygems' | |
require 'net/toc' | |
def send_aol_message(user, message) | |
client = Net::TOC.new("notifier", "password") | |
client.connect | |
sleep 3 | |
buddy = client.buddy_list.buddy_named(user) | |
buddy.send_im(message) if buddy.available? | |
sleep 3 |
This file contains 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
;(require 'python-mode) | |
;; our dtd mode | |
(autoload 'dtd-mode "tdtd" "Major mode for SGML and XML DTDs." t) | |
(autoload 'dtd-etags "tdtd" | |
"Execute etags on FILESPEC and match on DTD-specific regular expressions." | |
t) | |
;; setup js2 mode | |
(setq load-path (append (list (expand-file-name "~/.emacs.d/js2")) load-path)) |
This file contains 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
import Image | |
import ImageDraw | |
import ImageFont | |
bg = Image.open('Preview/PreviewCards/C1_LALJ_B_LUX_RISCAL.jpg') | |
aff_logo = Image.open('aff_logos/AAA_LEFT.png') | |
mbr_since = Image.open('member_since/B06.png') | |
bg = bg.crop((0, 10, 320, 190)) |
This file contains 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
import glob | |
import os.path | |
import Image | |
import ImageDraw | |
import ImageFont | |
size = 75, 50 | |
for infile in glob.glob("*.png"): | |
file, ext = os.path.splitext(infile) | |
im = Image.new("RGB", (248, 182), "#ffffff") |
This file contains 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.codehaus.trygvis.blog</groupId> | |
<artifactId>simpleenvironment</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>Building For Different Environments with Maven 2 Example Code</name> | |
<url>http://blogs.codehaus.org/people/trygvis</url> | |
<dependencies> |
This file contains 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:jvm-1.5 | |
-make:transitivenocp | |
-dependencyfile | |
/home/charliek/projects/scala-test/target/.scala_dependencies | |
-classpath | |
/home/charliek/projects/scala-test/target/classes:/home/charliek/.m2/repository/org/scala-lang/scala-library/2.8.0-SNAPSHOT/scala-library-2.8.0-SNAPSHOT.jar:/home/charliek/.m2/repository/org/scala-lang/scala-swing/2.8.0-SNAPSHOT/scala-swing-2.8.0-SNAPSHOT.jar | |
-sourcepath | |
/home/charliek/projects/scala-test/src/main/scala | |
-bottom | |
"Copyright (c) 2009. All Rights Reserved." |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.google.common</groupId> | |
<artifactId>google-guava</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>Google Guava</name> | |
<build> | |
<sourceDirectory>src/</sourceDirectory> |
This file contains 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
(function($) { | |
$.fn.myplugin = function(options){ | |
// support mutltiple elements | |
if (this.length > 1){ | |
this.each(function() { $(this).myplugin(options) }); | |
return this; | |
} | |
// private variables | |
var opts = $.extend({}, $.fn.myplugin.defaults, options); |
This file contains 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
(function($) { | |
$.fn.myplugin = function(options){ | |
// build main options before element iteration | |
var opts = $.extend({}, $.fn.myplugin.defaults, options); | |
// return the jQuery object for chaining | |
return this.each(function() { | |
var $this = $(this); | |
// build element specific options using the meta tag if availible |
NewerOlder