This file contains hidden or 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 name="run-tests" depends="compile"> | |
| <junit failureproperty="test.failure" includeantruntime="false"> | |
| <classpath refid="run.classpath"/> | |
| <formatter type="plain" usefile="no"/> | |
| <batchtest todir="${reports.dir}" unless="test"> | |
| <fileset dir="${source.dir}" includes="**/*Test.java"/> | |
| <formatter type="xml"/> | |
| </batchtest> |
This file contains hidden or 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
| ➜ ~ cd $ANDROID_SDK ➜ r21.1 git:(master) pwd /usr/local/Cellar/android-sdk/r21.1 | |
| ➜ r21.1 git:(master) cd platform-tools ➜ platform-tools git:(master) strings aapt nonav | |
| dpad | |
| navexposed | |
| nokeys | |
| 12key | |
| keysexposed | |
| keyshidden | |
| notouch | |
| stylus |
This file contains hidden or 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 'json' | |
| require 'open-uri' | |
| def camel_case(string) | |
| return string.split('_').map{|e| e.capitalize}.join | |
| end | |
| def camel_case_lower(s) s.split('_').inject([]){ |buffer,e| buffer.push(buffer.empty? ? e : e.capitalize) }.join | |
| end | |
| json = JSON.load(open(ARGV[0])) |
This file contains hidden or 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 'rake/clean' | |
| require 'jekyll' | |
| require 'jekyll/site' | |
| #remove the site dir. | |
| CLEAN.include('_site') | |
| desc "generate the site. keeping it simple." | |
| task :generate do | |
| options = Jekyll.configuration({}) |
This file contains hidden or 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 | |
| $stdout.sync = true | |
| @failed_tests = [] | |
| @success = true | |
| @executed = "" | |
| def green(s) | |
| "\e[1;32m#{s}\e[0m" | |
| end |
This file contains hidden or 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 Locale { | |
| public static void main(String[] args) { | |
| System.out.println(System.getProperty("file.encoding")); | |
| System.out.println(System.getenv("LC_CTYPE")); | |
| } | |
| } |
This file contains hidden or 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
| # encoding: utf-8 | |
| require "fileutils" | |
| include FileUtils::Verbose | |
| def usage | |
| puts "usage: jruby ORIGINAL_MUSIC_DIR" | |
| end | |
| if ARGV[0] and File.directory? ARGV[0] |
This file contains hidden or 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
| sudo dd if=$HOME/Downloads/ubuntu-12.10-desktop-i386.iso of=/dev/rdisk1 bs=20m |
This file contains hidden or 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.apache.commons.lang.StringUtils; | |
| import org.joda.time.DateTime; | |
| import org.joda.time.format.*; | |
| import org.w3c.dom.*; | |
| import org.xml.sax.SAXException; | |
| import se.tv4.teknik.vman.api.XmlDataReader; | |
| import javax.xml.parsers.*; | |
| import javax.xml.xpath.XPathConstants; | |
| import java.io.*; |
This file contains hidden or 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 | |
| #will priint out a message if a commit contains a keyword prefixed with % | |
| # | |
| MARKERS="%\w+" | |
| RELEASE=$(git log $(git reflog -n 1 | cut -d ":" -f1) | grep -Pio "$MARKERS"| sort -fu | tr '\n' ' ') | |
| if [ "$RELEASE" != "" ]; | |
| then |