Skip to content

Instantly share code, notes, and snippets.

View darkone23's full-sized avatar
💭
💾☠🕸

0/∞ darkone23

💭
💾☠🕸
View GitHub Profile

Keybase proof

I hereby claim:

  • I am darkone23 on github.
  • I am computerdream (https://keybase.io/computerdream) on keybase.
  • I have a public key ASByi280sM-nnhsDWYolY_IjV9V_EpQyGvajNhqm_o9D-Qo

To claim this, I am signing this object:

implement the following data structures in java8:
- set
- stack
- linked list
- hash table
- binary tree
- graph
implement the following operations:
@darkone23
darkone23 / myApp.js
Last active August 29, 2015 14:20 — forked from cthecheese/myApp.js
var myApp = angular.module("myApp", []);
myApp.controller("contactsController", function($scope, contactsFactory){
$scope.contacts = contactsFactory.getContacts();
$scope.add = function(newContact){
contactsFactory.add(newContact);
$scope.newContact = contactsFactory.cleanContact();
$scope.contacts = contactsFactory.getContacts();
}
@darkone23
darkone23 / err.java
Created April 24, 2015 22:03
kafka-oom
15/04/24 15:02:33 INFO consumer.SimpleConsumer: Reconnect due to socket error: java.lang.OutOfMemoryError: Java heap space [25/1940]15/04/24 15:02:36 ERROR network.BoundedByteBufferReceive: OOME with size 14680400
java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)
at kafka.network.BoundedByteBufferReceive.byteBufferAllocate(BoundedByteBufferReceive.scala:80)
at kafka.network.BoundedByteBufferReceive.readFrom(BoundedByteBufferReceive.scala:63)
at kafka.network.Receive$class.readCompletely(Transmission.scala:56)
at kafka.network.BoundedByteBufferReceive.readCompletely(BoundedByteBufferReceive.scala:29)
at kafka.network.BlockingChannel.receive(BlockingChannel.scala:111)
at kafka.consumer.SimpleConsumer.liftedTree1$1(SimpleConsumer.scala:79)
@darkone23
darkone23 / AvroHTTP.avdl
Last active August 21, 2023 08:29
Example generic spark setup that uses avro for schemas and the parquet file format for storage
@namespace("com.example.avro.parquet.spark")
protocol HTTP {
record Header {
string name;
string value;
}
record Request {
string method;
string path;
@darkone23
darkone23 / example.sh
Created May 9, 2014 07:52
dumb speed test
# for ansible
time ansible-playbook -i inventory.ini test.yaml
# for matross
./scripts/package.sh
time java -jar target/matross-0.1.0-SNAPSHOT/lib/matross.jar test.edn
@darkone23
darkone23 / integration.clj
Created May 4, 2014 23:15
matross remote connection test suite in debug mode 👻
escher:matross egghead$ TEST_DEBUG=1 ./scripts/test/integration.sh
Testing against: local
Compiling matross.connections.core
Compiling matross.connections.debug
Compiling matross.connections.sudo
Compiling matross.core
Compiling matross.docs
Compiling matross.executor
Compiling matross.tasks.core
Compiling matross.util
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1
hQIMA2n9hcpJRf6QAQ//b5yGLInFTKOW8KeTpNNXVinbknWONGjBjZ+PC3gT8aKt
bv2CX5dAViPtL+bRjATWpI9nwkYmE9azGrp2wRHDOph4dUYRCdxIncdAhu3ZV7ic
fQce3WusMcU9NIj0J+SCaGLNV855PP4aVWasP+WoTFM0CkQiP4crLB3wIFdom2yL
bl9LxN4ZpvROXfvN5KwCEUHP2n+Vz0tssKhdon29G71W58jKfhyz9h5SI6RB5A+3
+/syv8fvqU2kAE9S3FHqbKsJ0Ykp0RRx+rJnBPQhWOSkLDWA0jw1f0I5ducUd3nM
Ep+bUCpWGDDMXEtIONJ+MQVdHDvM3sIAuB9xjQaky0/goNgtgLZX11qn8u99CoCK
dudTJoX5tVV9lS8fPhLpoP9wBRwV7bm2NWW8kk1QbCXN8H4flkiQ6kPkFZDy2dyM
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1
hQEMAyI9iuym05XbAQgAn/ECm9dloXUt19XU+XbAziknX5zEeVqZbdEWZkaUB4Au
ruO468JEx4HKhZu+BG1cz3LpYEnVi//v7CwLO02kdwWKqb5/6o11govX1bqbQVlm
2OLv1zsRSUZOTOxJNX/HOD8vgWPsFSz7QEM2zGVqxCmx6fzKmu8nvciUYssgZQxp
03vbNyONb3w2tiY+8e6RQNplGii4CBjepAeWmMkrf9ATXkGA9peu00gkZcSGZIyj
rEvGkT6wIhxtaRXFy08GovIAD5Kyueg9vXdRoDgcDUzzQbeTk+bY7qSq+JWlFUDo
Wu0d6Vk4mGljTTB7KAyMbPZCD8y26mAQY28Y2tasx9LpAbpaKhFZjoNJPAx6JbP4
bPTM3QubewBti8xh6UG/j4LAYB6TMVWFLTI4GQd2ViPIKLi4SVH97IZWIeTHopli
usage: keybase encrypt [-h] [-r] [-l] [-a ASSERT] [--batch] [--prompt-remote]
[-s] [-m MESSAGE] [-b] [-o OUTPUT]
them [file]