Skip to content

Instantly share code, notes, and snippets.

View JonathonFry's full-sized avatar

Jonathon Fry JonathonFry

View GitHub Profile
@JonathonFry
JonathonFry / Dangerfile
Created November 13, 2018 12:39
Dangerfile for Android Danger usage
warn("PR is classed as Work in Progress") if bitbucket_cloud.pr_title.include? "[WIP]"
warn("Big PR") if git.lines_of_code > 500
junit_tests_dir = "**/test-results/**/*.xml"
Dir[junit_tests_dir].each do |file_name|
junit.parse file_name
junit.report
end
@JonathonFry
JonathonFry / Gemfile
Created November 13, 2018 12:38
Gemfile for Android Danger usage
source "https://rubygems.org"
gem 'danger'
gem 'danger-junit'
gem 'danger-android_lint'
gem 'danger-checkstyle_format'
@JonathonFry
JonathonFry / munros-privacy-policy.html
Last active September 18, 2018 08:08
munros-privacy-policy.html
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Privacy Policy</title> <style>body{font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; padding:1em;}</style></head> <body><h2>Privacy Policy</h2> <p> Jonathon Fry built the Munros app as a Free app. This SERVICE is provided by Jonathon Fry at no cost and is intended for use as is.
</p> <p>This page is used to inform visitors regarding my policies with the collection, use, and
disclosure of Personal Information if anyone decided to use my Service.
</p> <p>If you choose to use my Service, then you agree to the collection and use of information in relation
to this policy. The Personal Information that I collect is used for providing and improving the
Service. I will not use or share your information with anyone except as described
in this Privacy Policy.
</p> <p>
package test.iamjonfry.com.interceptortest;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import java.io.File;
import java.io.IOException;
import java.util.List;
import okhttp3.Cache;
@JonathonFry
JonathonFry / main.go
Created March 10, 2016 14:22
Simple http handler using Go
package main
import (
"net/http"
"fmt"
)
func main() {
http.HandleFunc("/", helloWorldHandler)
http.ListenAndServe(":8080", nil)