Skip to content

Instantly share code, notes, and snippets.

@aslakhellesoy
aslakhellesoy / bumbailiff
Last active February 19, 2021 10:03
You can have a little tech debt for a short time. After that the bumbailiff will be up your bum.
#!/usr/bin/env bash
#
# The bumbailiff allows the team to take up a small amount of technical debt
# (TODOs in the code) for a limited period. After that period the script fails.
#
# Originally written by Aslak Hellesoy
#
set -ef -o pipefail
IFS=$'\n' # make newlines the only separator
@dddnuts
dddnuts / Fastfile
Created June 4, 2016 10:39
Build ipa from Unity project with fastlane
fastlane_version "1.94.0"
default_platform :ios
platform :ios do
desc "Run Unity Editor tests"
lane :test_unit do
unity(
run_editor_tests: true
)
@mikebroberts
mikebroberts / gist:6595266
Last active December 23, 2015 06:39
Clojure code to authenticate against Instagram's API. Requires clj-http (tested against [clj-http "0.7.0"]).
(ns instagram
"Functions to authenticate against Instagram's API.
See http://instagram.com/developer/authentication/ for parameter details."
(:require [clj-http.client :as client]))
(defn create-auth-url [client-id redirect-uri]
(str "https://api.instagram.com/oauth/authorize/?client_id=" client-id
"&redirect_uri=" redirect-uri
"&response_type=code"))
@matclayton
matclayton / FB Like
Created May 17, 2011 04:11
Tracking FB social actions
<div id="fb-root"></div>
<script>
(function() {
window.fbAsyncInit = function() {
FB.Event.subscribe('edge.create', function(response) {
_gaq.push(['_trackSocial', 'facebook', 'like', response]);
});
FB.Event.subscribe('edge.remove', function(response) {
_gaq.push(['_trackSocial', 'facebook', 'unlike', response]);
});
@botchagalupe
botchagalupe / gist:802516
Created January 30, 2011 04:05
Hack Day NYC Go Project Notes
Application to build and deploy
https://github.com/grahambrooks/bvira
Nodes
ec2-72-44-36-76.compute-1.amazonaws.com <--- Tomcat??
ec2-184-73-9-162.compute-1.amazonaws.com<--- dead
ec2-50-16-60-233.compute-1.amazonaws.com<--- Goserver