I hereby claim:
- I am patricksan on github.
- I am patricksan (https://keybase.io/patricksan) on keybase.
- I have a public key whose fingerprint is ED59 5F8B A1E7 CF13 1CF7 A465 CE67 A0B8 4136 993B
To claim this, I am signing this object:
package com.moogu.restore; | |
import java.util.*; | |
import java.util.stream.Stream; | |
public class BestApproach { | |
public static void main(String[] args) { | |
List<String> letters = Arrays.asList("a", "b", "c", "d", "e", "f", "g", "f", "e", "c", "b"); | |
BestApproach main = new BestApproach(); |
package com.moogu.restore; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
public class BetterApproach { | |
public static void main(String[] args) { |
package com.moogu.restore; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class LessPerformanceApproach { |
final List<String> strings = Arrays.asList("a", "c", "d", "e", "f", "g", "h"); | |
final Iterator<String> iterator = strings.iterator(); | |
StreamSupport.stream(Spliterators.spliteratorUnknownSize(iterator,Spliterator.NONNULL),false); |
IntStream.range(0, 4).forEach(index -> { } |
I hereby claim:
To claim this, I am signing this object:
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "base" | |
# Enable provisioning with a shell script. Additional provisioners such as | |
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the |
#!/usr/bin/env ruby | |
require 'json' | |
require 'digest/sha1' | |
require "openssl" | |
pass = { | |
"formatVersion" => 1 | |
} |
{"email":"patricksan@me.com","password":"fake_pwd","date":{"year":2013,"month":6,"day":09,"hour":12,"minute":0},"distance":13.2340238,"duration":6024} |
SyntaxError: Unexpected number | |
at Object.parse (native) | |
at /app/server.js:75:18 | |
at callbacks (/app/node_modules/express/lib/router/index.js:161:37) | |
at param (/app/node_modules/express/lib/router/index.js:135:11) | |
at pass (/app/node_modules/express/lib/router/index.js:142:5) | |
at Router._dispatch (/app/node_modules/express/lib/router/index.js:170:5) | |
at Object.router (/app/node_modules/express/lib/router/index.js:33:10) | |
at next (/app/node_modules/express/node_modules/connect/lib/proto.js:199:15) | |
at Object.static (/app/node_modules/express/node_modules/connect/lib/middleware/static.js:55:61) |