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 | |
import java.util.regex.* | |
def inviteFileName = args[0] | |
def inviteFile = new File(inviteFileName) | |
def pattern = Pattern.compile('^ATTENDEE;CN=(.*);PARTSTAT=ACCEPTED:(.*)') | |
inviteFile.eachLine { line -> | |
def m = pattern.matcher(line) |
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
public class WCC2012_23 { | |
Expression bestSolution = null | |
BigDecimal target = null | |
List list | |
enum Operation { | |
plus('+'), minus('-'), multiply('*'), div('/') | |
String symbol |
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
var Robot = function(robot) { | |
// var robot = ev.robot; | |
} | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.clone(); | |
robot.rotateCannon(360); | |
robot.turn(360) |
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 ruby | |
require 'yaml' | |
require 'pp' | |
if ARGV.count == 0 | |
puts "Usage: simian-sum <simian-result.yml>" | |
puts | |
puts "Remember to remove the first 3 lines of the yml file" | |
exit |
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
#!/bin/sh | |
# | |
# $Id: bb-trigger.sh,v 1.2 2002/01/29 18:50:17 deluan Exp $ | |
# | |
# by Deluan Cotts Quintao ([email protected]) | |
# | |
# Use this script for services you don't want BB to alert in red on the first error. | |
# It will become yellow first, and then, after a configurable number of polls, it will | |
# go red. Useful with network tests over a noisy link (except when you're responsible | |
# for the link ;) |
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
- hosts: all | |
gather_facts: no | |
vars: | |
- release_tag: "{{latest_release.stdout}}" | |
- repository: EugeneKay/subsonic | |
- war_name: subsonic-{{release_tag}}.war | |
- release_url: https://github.com/{{repository}}/releases/download/{{release_tag}}/{{war_name}} | |
- app_path: /Applications/Subsonic.app | |
- war_path: "{{app_path}}/Contents/Resources" |
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
#!/bin/bash | |
# Script to transfort .itc files into images (JPG or PNG) | |
# | |
# .itc files are located in ~/Music/iTunes/Album Artwork | |
# | |
# This script uses (/!\ needs ) ImageMagick's convert, hexdump, printf and dd. | |
# | |
# This script might be a little slow, You might want to look at Simon Kennedy's work at http://www.sffjunkie.co.uk/python-itc.html | |
AlbumArtwork="${HOME}/Music/iTunes/Album Artwork" |