Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
allprojects { | |
// Marker Task to enable findbugs. | |
task findbugs( | |
group: "Verification", | |
description: """Marker task to enabled findbugs. Findbugs is by default | |
disabled. E.g. ( ./gradlew findbugs build )""" | |
) | |
} | |
subprojects { |
<string-array name="states"> | |
<item>Alabama</item> | |
<item>Alaska</item> | |
<item>American Samoa</item> | |
<item>Arizona</item> | |
<item>Arkansas</item> | |
<item>California</item> | |
<item>Colorado</item> | |
<item>Connecticut</item> | |
<item>Delaware</item> |
task uploadTf(dependsOn: assembleRelease) << { | |
def teamToken = '<TestFlight team token here>' | |
def apiToken = '<TestFlight api token here>' | |
def lists = '<TestFlight distribution lists here>' | |
def apk = file("build/apk/$project.name-release.apk") | |
def notes = new File(file('changelog.mdown')).getText("UTF-8") | |
def http = new HTTPBuilder('http://testflightapp.com') | |
println('Uploading build to TestFlight...') | |
http.request(POST, JSON) { req -> | |
uri.path = '/api/builds.json' |
# built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |
package com.cyrilmottier.android.citybikes.provider; | |
import android.net.Uri; | |
import com.cyrilmottier.android.avelov.BuildConfig; | |
/** | |
* @author Cyril Mottier | |
*/ | |
public class CityBikesContract { |
#!/bin/sh | |
# Suppose you want to do blind reviewing of code (eg for job interview | |
# purposes). Unfortunately, the candidates' names and email addresses are | |
# stored on every commit! You probably want to assess each candidate's version | |
# control practices, so just `rm -rf .git` throws away too much information. | |
# Here's what you can do instead. | |
# Rewrite all commits to hide the author's name and email | |
for branch in `ls .git/refs/heads`; do |
require 'optparse' | |
require 'pivotal-tracker' | |
TOKEN = 'YOUR_PIVOTAL_TOKEN' | |
PROJECT_IDS = [YOUR_PIVOTAL_PROJECT_ID] | |
TESTER_NAME = 'YOUR DEFAULT TESTER NAME (IF ANY)' | |
PivotalTracker::Client.token = TOKEN | |
def generate_options | |
options = { |
/* | |
* Copyright 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
package com.doomonafireball.samples.android.widget; | |
import com.doomonafireball.samples.android.R; | |
import android.content.Context; | |
import android.content.res.Resources; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; |