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
object scala { | |
val version = "SCALA_VERSION$" | |
} | |
val xml = <dependencies> | |
<dependency> | |
<groupId>org.scalanlp</groupId> | |
<artifactId>scalala_${scala.version}</artifactId> | |
<version>0.3.1</version> | |
</dependency> |
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
! rxvt-cygwin-native .Xdefault with sane colors | |
#ifdef COLOR | |
*customization: -color | |
#endif | |
! GVim colors, etc | |
!! GTK versions of gvim will not use all these. | |
Vim*useSchemes: all | |
Vim*sgiMode: true |
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 name="gradle-wrapper" default="" basedir="."> | |
<description> | |
</description> | |
<!-- set global properties for this build --> | |
<property environment="env" /> | |
<property name="gradle.executable" location="${env.GRADLE_HOME}/bin/gradle" /> | |
<target name="jar"> | |
<exec executable="${gradle.executable}" dir="."> | |
<arg value="jar" /> |
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 'fog' | |
compute = Fog::Compute.new(:provider => 'VirtualBox') | |
server = compute.servers.create(:name => 'lucid', :os => 'Ubuntu') | |
medium = compute.mediums.create(:device_type => :hard_disk, :location => '/Users/geemus/geemus/virtualbox_poc/lucid.vmdk', :read_only => false) | |
storage_controller = server.storage_controllers.create(:bus => :sata, :name => 'sata') | |
storage_controller.attach(medium, 0) |

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
#Final Sevens | |
#6/5/2011 | |
#Blocks already in curTiles that fall down don't trigger the scoring. | |
#Of the spawning blocks, 3 is overused. Maybe add in 4's and 5's | |
import pygame, sys, random, time | |
from pygame.locals import * | |
pygame.init() | |
gameClock = pygame.time.Clock() |
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
package org.behrang.deliciouscleaner | |
@Grab(group = "net.sf.delicious-java", module = "delicious", version = "1.14") | |
import del.icio.us.Delicious | |
def d = new Delicious("username", "password") | |
def posts = d.allPosts | |
posts.eachWithIndex { p, i -> | |
println (i+1) + "/" + posts.size() |
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 org.junit.Test; | |
import org.sikuli.script.App; | |
import org.sikuli.script.Screen; | |
public class GoogleDemoTest { | |
@Test | |
public void testGoogleSearch() throws Exception { | |
Screen screen = new Screen(); | |
App app = new App("Firefox 4.app"); |
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
#Bookmarklet to generate QIF for Recent Item and Previous Statement pages on SMILE.co.uk bank | |
#Will (try to) open a new popup window where you will have to either: | |
#a) Copy text from and paste to text editor (Chrome) | |
#b) Save the page as a text file (Firefox) | |
# | |
#Written in Coffescript, but just use http://javascriptcompressor.com/ to compress the | |
#compiled javascript so you have a bookmarklet. | |
data = document.getElementsByClassName("summaryTable")[0].children[1].children |
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
<!DOCTYPE html> | |
<meta charset=utf-8> | |
<meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<meta name=apple-mobile-web-app-capable content=yes> | |
<meta name=apple-mobile-web-app-status-bar-style content=black> | |
<title>Test fullscreen</title> | |
<style> | |
html, body { | |
margin: 0; | |
padding: 0; |
OlderNewer