I hereby claim:
- I am bowmanb on github.
- I am bowmanb (https://keybase.io/bowmanb) on keybase.
- I have a public key whose fingerprint is 17ED FF08 BF69 4CB1 E651 8ECA 8C62 4B8F B2A0 D942
To claim this, I am signing this object:
package com.advinture.ukuleletabs.fragments; | |
import android.app.ExpandableListActivity; | |
import android.app.Fragment; | |
import android.os.Bundle; | |
import android.view.Gravity; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.AbsListView; |
... | |
libraryDependencies += "commons-codec" % "commons-codec" % "1.7" | |
... |
quicksort :: (Ord a) => [a] -> [a] | |
quicksort [] = [] | |
quicksort [x] = [x] | |
quicksort (x:xs) = | |
let smallerOrEqual = [a | a <- xs, a <= x] | |
larger = [a | a <- xs, a > x] | |
in quicksort smallerOrEqual ++ [x] ++ quicksort larger | |
-- using filter | |
quicksort' :: (Ord a) => [a] -> [a] |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.mycompany.app</groupId> | |
<artifactId>my-app</artifactId> | |
<version>1</version> | |
</project> |
(ns my-project.http-server | |
(:require [compojure.core :as compojure] | |
[com.stuartsierra.component :as component] | |
[my-project.my-resource :as my-resource] | |
[ring.adapter.jetty :as jetty])) | |
(compojure/defroutes app | |
my-resource/handler) | |
(defrecord HTTPServer [port server] |
I hereby claim:
To claim this, I am signing this object:
@Override | |
public void onNext(ArrayList<Phrase> phrases) { | |
ArrayList<Integer> phraseIDs = new ArrayList<>(); | |
Observable | |
.from(phrases) | |
.collect(phraseIDs, new Action2<ArrayList<Integer>, Phrase>() { | |
@Override | |
public void call(ArrayList<Integer> integers, Phrase phrase) { | |
integers.add(phrase.getId()); | |
} |
public class Main { | |
public static void main(String[] args) { | |
Swagger swagger = new SwaggerParser().read("swagger.json"); | |
sortDefinitionProperties(swagger); | |
try { | |
FileUtils.writeStringToFile(new File("swagger-output.json"), Json.pretty(swagger), Charset.defaultCharset()); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} | |
} |
import javax.xml.transform.Transformer; | |
import javax.xml.transform.TransformerFactory; | |
import javax.xml.transform.dom.DOMSource; | |
import javax.xml.transform.stream.StreamResult; | |
import javax.xml.transform.stream.StreamSource; | |
import java.io.File; | |
public class Params { | |
public static void main(String[] args) { | |
try { |