This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x894fba0f36ca66b3d59ef145449d53db5db48455 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/lib/jvm/java-10-openjdk/bin/java -Xmx20G -javaagent:/home/joshua/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/182.4505.22/lib/idea_rt.jar=34351:/home/joshua/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/182.4505.22/bin -Dfile.encoding=UTF-8 -classpath /home/joshua/Code/guts-hack-2018/cranewaredataanalysis/craneware_analyser_java/out/production/classes:/home/joshua/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-csv/1.1/1eeeb118cab7ec49c9a10b478356eff108d5e87e/commons-csv-1.1.jar com.eagles13.craneware.Main | |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *.epub | |
do | |
dir=`basename "$i" .epub` | |
7z x "$i" -y -o"$dir" &>/dev/null | |
find "$dir" -name \*.png -exec pngquant --quality=40-50 -f --ext .png {} \; | |
find "$dir" -name \*.jpg -exec jpegoptim -m60 {} \; | |
cd "$dir" | |
zip -9 -r "$dir.small.epub" . | |
mv "$dir.small.epub" ../ | |
cd - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
# def process_parallel(item): | |
class BenchmarkResult: | |
def __init__(self, language, cores, speed, category, computer): | |
self.language = language | |
self.cores = cores | |
self.speed = speed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import statistics | |
import json | |
# def process_parallel(item): | |
class BenchmarkResult: | |
def __init__(self, language, cores, speed, category, computer): | |
self.language = language | |
self.cores = cores |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am josh-richardson on github. | |
* I am joshuarichardson (https://keybase.io/joshuarichardson) on keybase. | |
* I have a public key ASByT6QSHXpT17jZj0-lnYTn0CFaTAiPYPA9vtQXvQixzgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request: {"jsonrpc":"2.0","id":1,"method":"propose","params":{"script":{"text":"tables, user_cert = ...\nreturn Calls:call(\"new_user\", user_cert)"},"parameter":[48,-126,1,-71,48,-126,1,61,-96,3,2,1,2,2,17,0,-100,-7,59,-104,-1,123,112,62,-120,67,3,-127,2,-8,-28,92,48,12,6,8,42,-122,72,-50,61,4,3,3,5,0,48,18,49,16,48,14,6,3,85,4,3,12,7,109,101,109,98,101,114,49,48,32,23,13,48,49,48,49,48,49,48,48,48,48,48,48,90,24,15,50,49,48,48,49,50,51,49,50,51,53,57,53,57,90,48,18,49,16,48,14,6,3,85,4,3,12,7,109,101,109,98,101,114,49,48,118,48,16,6,7,42,-122,72,-50,61,2,1,6,5,43,-127,4,0,34,3,98,0,4,-126,-46,-97,87,-107,66,-41,22,-80,56,76,109,48,-96,60,122,81,14,66,-25,59,81,121,-76,45,-35,8,-2,45,-122,88,-72,34,116,10,-66,-102,-126,-106,66,118,-74,-127,-68,0,-32,56,95,-57,20,-85,-32,-107,68,101,46,-30,26,110,18,22,86,-13,90,-16,24,83,-83,67,33,-4,48,-72,-98,-83,47,63,-9,77,-124,-122,-74,22,-22,-36,-42,-57,51,46,13,-56,121,-128,-54,12,121,-93,83,48,81,48,15,6,3,85,29,19,4,8,48,6,1,1,-1,2,1,0,48,29,6,3,85,29,14,4,22,4,20,2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./client --pretty-print --host 51.145.199.32 --port 25000 --ca ./networkcert.pem userrpc --req request.json --cert ./user1_cert.pem --pk ./user1_privk.pem | |
Doing user RPC: | |
SSL - The connection indicated an EOF | |
Got response of unexpected format or error: :[json.exception.parse_error.110] parse error at byte 1: syntax error while parsing MessagePack value: unexpected end of input | |
Unhandled exception: std::exception. Aborting... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const truffleAssert = require("truffle-assertions"); | |
const Aster = artifacts.require("./Aster"); | |
const Campaign = artifacts.require("./Campaign"); | |
const expectRevert = require("openzeppelin-test-helpers").expectRevert; | |
const BN = web3.utils.BN; | |
let campaignAddress; | |
let campaignTitle = "Dog food"; | |
let campaignDescription = "Give me the dog food!"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CompletableFuture[] sendRequestsToOthers(Stream<Box.PublicKey> addresses, Serializable request, String endpoint) { | |
return addresses.map(pKey -> { | |
URL recipientURL = networkNodes.urlForRecipient(pKey); | |
log.info("Propagating request to {} with URL {} {}", pKey, recipientURL.toString(), endpoint); | |
final CompletableFuture<Boolean> responseFuture = new CompletableFuture<>(); | |
final byte[] payload = Serializer.serialize(CBOR, request); |
OlderNewer