Skip to content

Instantly share code, notes, and snippets.

(def le-ssh-keys (circle.bitbucket.client/user-ssh-keys (circle.model.user.bitbucket/get-bitbucket-access-token! le) "lewang"))
CompilerException clojure.lang.ExceptionInfo: clj-http: status 404 {:status 404, :headers {"X-Accepted-OAuth-Scopes" "account", "Server" "nginx/1.6.2", "Content-Type" "text/plain; charset=utf-8", "Content-Length" "71", "X-Frame-Options" "SAMEORIGIN", "Strict-Transport-Security" "max-age=31536000", "Connection" "close", "X-Request-Count" "3", "X-Version" "cee7bedf65a1", "ETag" "\"277d9861243763e579a650af3e672d7b\"", "X-Static-Version" "cee7bedf65a1", "X-OAuth-Scopes" "webhook, pullrequest, repository:admin, repository:write, project:write, team, account:write", "Date" "Fri, 06 May 2016 18:15:59 GMT", "Vary" "Authorization, Cookie", "X-Render-Time" "0.0313320159912", "X-Served-By" "app-113"}, :body "This API has been deprecated and is not available through OAuth2 or JWT", :request-time 314, :trace-redirects ["https://api.bitbucket.org/1.0/users/lewang/ssh-keys"], :orig-content-encoding
var util = require("util");
var request = require('request');
var apiKey = process.env.CIRCLE_KEY;
var org = "circleci";
var project = "circle";
var branch = "master";
function getArtifacts(buildNum) {
Hagelberg
;; Dan McKinley
;; Vers
;; Contributors:
;; Chris Wanstrath <chris@ozmm.org>
;; Will Farrington <wcfarrington@gmail.com>
;; Michael Ivey
#################
# host specific #
#################
backup
tmp
.zcompdump
.perldb
.mdbhistory
.rnd
@lewang
lewang / input_small.txt
Last active December 19, 2015 04:49
instaparse bug report
User 5712 - John Doe
BEFORE
foo1 - 2013-09-26 13:44
AFTER
foo1 - 2013-09-26 13:44
User 8960 - John Doe
BEFORE
foo2 blah - 2013-12-30 16:00
foo1 - 2013-12-30 16:00
require 'rubygems'
gem "ruby_parser", "~> 2.0"
require 'ruby_parser'
class Step
attr_reader :file, :line, :regexp
def initialize(regexp, file, line)
@file, @line = file, line
self.regexp = regexp
end
# be script/sub_analyzer.rb input.txt > import_spans.csv
diff --git a/lib/ruby_units.rb b/lib/ruby_units.rb
index 4aaf462..cd51437 100644
--- a/lib/ruby_units.rb
+++ b/lib/ruby_units.rb
@@ -141,6 +141,8 @@ class Unit
actual_numerator, actual_denominator = actual
new_numerator += actual_numerator
new_denominator += actual_denominator
+ elsif :unitless == Unit.definition(unit_part).kind
+ # ignore unitless, e.g. "%"