Skip to content

Instantly share code, notes, and snippets.

View perezd's full-sized avatar
🦾
More Perfect Protobuf

Derek Perez perezd

🦾
More Perfect Protobuf
View GitHub Profile

Keybase proof

I hereby claim:

  • I am perezd on github.
  • I am perezd (https://keybase.io/perezd) on keybase.
  • I have a public key ASBchrDVsIVqGaACHsirPHJQOIbV0mA1jn7tSwDFvhJegwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am perezd on github.
  • I am perezd (https://keybase.io/perezd) on keybase.
  • I have a public key ASBT8ywszmoCw2w_tv999uM3YfLp2ZXcy0aP3TjYYjisJwo

To claim this, I am signing this object:

Retrolambda 2.1.0
Bytecode version: 51 (Java 7)
Default methods: false
Input directory: /tmp/in_classesdir
Output directory: /tmp/out_classesdir
Classpath: [META-INF, META-INF/MANIFEST.MF, build-data.properties, org, org/fallingfruit, org/fallingfruit/ffruit, org/fallingfruit/ffruit/services, org/fallingfruit/ffruit/services/DatabaseUpdater$1.class, org/fallingfruit/ffruit/services/DatabaseUpdater$2.class, org/fallingfruit/ffruit/services/DatabaseUpdater$3.class, org/fallingfruit/ffruit/services/DatabaseUpdater$4.class, org/fallingfruit/ffruit/services/DatabaseUpdater.class, ...]
Included files: all
Agent enabled: true
Error! Failed to run Retrolambda
java.lang.RuntimeException: Failed to backport class: org/fallingfruit/ffruit/services/DatabaseUpdater
Observable.merge(FetchBz2Observable.create(context, TYPES_ENDPOINT),
FetchBz2Observable.create(context, LOCATIONS_ENDPOINT))
.observeOn(Schedulers.io())
.flatMap(new Func1<Response, Observable<Row>>() {
@Override
public Observable<Row> call(Response response) {
return CsvRowEmitterObservable.create(response.reader(), response.endpoint());
}
})
.window(100)
#!/bin/bash
# Fetch Bazel installer and install it.
BUILD_BASE=${PWD}/build
if [ ! -d $BUILD_BASE ]
then
mkdir -p $BUILD_BASE
BAZEL_VERSION=0.1.5
INSTALLER_PLATFORM=linux-x86_64
#!/bin/sh
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
./cgminer/cgminer --shaders 2048 --intensity 13 \
--thread-concurrency 8192 --lookup-gap 2 \
--gpu-engine 1135 --gpu-memclock 1375 \
--auto-fan --temp-target 78 \
; iterative fibonacci technique,
; in clojure.
(defn fib-step [[a,b]]
[b (+ a b)]
)
(defn fib-seq []
(map first (iterate fib-step [0 1]))
; iterative fibonacci technique
; in clojure
(defn fib-step [[a,b]]
[b (+ a b)]
)
(defn fib-seq []
(map first (iterate fib-step [0 1]))
@perezd
perezd / binary-search.coffee
Created September 13, 2011 21:46 — forked from mythz/binary-search.coffee
Side by Side: CoffeeScript vs JavaScript - Algorithms Edition
# All CoffeeScript examples from: https://github.com/jashkenas/coffee-script/blob/master/examples/computer_science/
# All Java Script examples from: https://github.com/nzakas/computer-science-in-javascript - Copyright (c) 2009 Nicholas C. Zakas
# - Released under https://github.com/nzakas/computer-science-in-javascript/blob/master/LICENSE (*.js copyright headers reduced for clarity)
# Uses a binary search algorithm to locate a value in the specified array.
binary_search = (items, value) ->
start = 0
@perezd
perezd / curl.diff
Created April 10, 2011 17:54
attempting to talk to cloudant via http/https using curl w/ diff
@@ -1,9 +1,26 @@
-Octave:~ derek$ curl -vX PUT http://nodebug:omgnodebug@nodebug.cloudant.com/test/myDoc4/photo?rev=43-e5e93a0702db48fec34d0cd77e43dec1 --data-binary @cherryTree.JPG -H "Content-Type: image/jpg"
-* About to connect() to nodebug.cloudant.com port 80 (#0)
+Octave:~ derek$ curl -vX PUT https://nodebug:omgnodebug@nodebug.cloudant.com/test/myDoc4/photo?rev=45-096d89a0f8d6d0bd6b7be608c687b532 --data-binary @cherryTree.JPG -H "Content-Type: image/jpg"
+* About to connect() to nodebug.cloudant.com port 443 (#0)
* Trying 184.72.47.54... connected
-* Connected to nodebug.cloudant.com (184.72.47.54) port 80 (#0)
+* Connected to nodebug.cloudant.com (184.72.47.54) port 443 (#0)
+* SSLv3, TLS handshake, Client hello (1):
+* SSLv3, TLS handshake, Server hello (2):