Skip to content

Instantly share code, notes, and snippets.

Marcel Müller TheNeikos

Block or report user

Report or block TheNeikos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TheNeikos
TheNeikos / gist:8197609
Created Dec 31, 2013
A simple way of merging Javascript Objects made of simple types.
View gist:8197609
simpleDeepMergeObjects = ->
ret = {}
for i, obj of arguments
for k, v of obj
if 'Object' is typeof v
ret[k] = simpleDeepMergeObjects ret[k], v
else
ret[k] = v
return ret
View skype.emotes
:):(:D(cool):O;);((:|
:|:*:P:$:^)|-)|-((inlove)
]:)(yn)(yawn)(puke)(doh)(angry)(wasntme)(party)
(worry)(mm)(nerd):x(wave)(facepalm)(devil)(angel)
(envy)(wait)(hug)(makeup)(chuckle)(clap)(think)(bow)
(rofl)(whew)(happy)(smirk)(nod)(shake)(waiting)(emo)
(y)(n)(handshake)(highfive)(heart)(lalala)(heidy)(F)
(rain)(sun)(tumbleweed)(music)(bandit)(tmi)(coffee)(pi)
(cash)(flex)(^)(beer)(d)\o/(ninja)(*)
View keybase.md

Keybase proof

I hereby claim:

  • I am TheNeikos on github.
  • I am neikos (https://keybase.io/neikos) on keybase.
  • I have a public key whose fingerprint is A014 0B87 FA93 CEB9 1B04 20ED A279 29D2 E7F3 0E2C

To claim this, I am signing this object:

@TheNeikos
TheNeikos / main.rs
Created Nov 24, 2014
Start of an AVL implementation in Rust
View main.rs
use std::fmt;
struct Node<T: Ord + fmt::Show> {
pub data: T,
pub left: Option<Box<Node<T>>>,
pub right: Option<Box<Node<T>>>,
}
impl<T: Ord + fmt::Show> Node<T> {
fn new(d: T) -> Node<T> {
@TheNeikos
TheNeikos / main.rs
Created Jan 19, 2015
Simple HTTP Server
View main.rs
extern crate getopts;
use std::io::{TcpListener, TcpStream};
use std::io::{Acceptor, Listener};
use std::io::IoErrorKind;
use std::thread::Thread;
use std::os;
use getopts::{optopt, optflag, getopts, OptGroup, usage};
fn print_usage(program: &str, opts: &[OptGroup]) {
View gist:52dae821717ccb24f9ca54b49394ca43
### Keybase proof
I hereby claim:
* I am theneikos on github.
* I am neikos (https://keybase.io/neikos) on keybase.
* I have a public key ASDmDbeVvEgGDZbW1FiC-d6Nq0jSFUjhhoWmJzFp1EvfRAo
To claim this, I am signing this object:
@TheNeikos
TheNeikos / screv.sh
Created Apr 9, 2017
A simple way to create videos of your screen on linux!
View screv.sh
# Screen Video Capture
#! /usr/bin/env sh
length=${1-3}
delay=${2-0}
geometry=($(xrectsel "%wx%h %x,%y"))
output_dir="$(xdg-user-dir VIDEOS)/captures"
mkdir -p "$output_dir"
@TheNeikos
TheNeikos / type_example_complete.rs
Created Nov 26, 2017
Files for my Blog Post rust references
View type_example_complete.rs
use std::io::{self, Write};
use std::error::Error;
struct Person {
age: u8,
email: String
}
impl Person {
fn new(age: u8, email: String) -> Result<Person, &'static str> {
View main.rs
#![cfg_attr(test, feature(test))]
use rayon::prelude::*;
use std::hash::Hash;
use std::hash::Hasher;
use smallvec::{SmallVec, smallvec};
#[derive(Debug, Copy, Clone, PartialEq, Hash, Eq)]
pub struct Integer([u8; 10]);
You can’t perform that action at this time.