By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| # If you're looking into the C10M problem (10 million concurrent connections) | |
| # you might want to play with DPDK (Originally proprietry Intel, now open source) | |
| # | |
| # C10M: http://c10m.robertgraham.com/ | |
| # DPDK: http://dpdk.org/ | |
| # | |
| # This is a quick summary how to install dpdk on ubuntu | |
| # running inside virtualbox on a mac | |
| # On my Mac: |
| #include <unistd.h> | |
| #include <node.h> | |
| #include <string.h> | |
| #include <v8.h> | |
| using namespace v8; | |
| unsigned long long count = 0; | |
| // native blocking/compute intensive function |
| // All rights reserved, | |
| // Derrick Pallas | |
| // License: zlib | |
| #ifndef CONTAINER_OF | |
| #define CONTAINER_OF | |
| #include <cstddef> | |
| template <class T, typename M> |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import rx.Observable; | |
| import rx.Observer; | |
| import rx.functions.Func2; | |
| public class RxJavaExamples { |
| // | |
| // Copyright (c) 2014 Sean Farrell | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: | |
| // |
| /* | |
| Simple HTTP proxy in Rust. Hard coded to proxy rust-lang.org. | |
| */ | |
| extern crate hyper; | |
| use std::io::Read; | |
| use hyper::Client; | |
| use hyper::header::Connection; |
| # -*- encoding: utf-8 -*- | |
| # | |
| # Copyright © 2016 Red Hat, Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may | |
| # not use this file except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| interface ILiteEvent<T> { | |
| on(handler: { (data?: T): void }) : void; | |
| off(handler: { (data?: T): void }) : void; | |
| } | |
| class LiteEvent<T> implements ILiteEvent<T> { | |
| private handlers: { (data?: T): void; }[] = []; | |
| public on(handler: { (data?: T): void }) : void { | |
| this.handlers.push(handler); |
Edit: This list is now maintained in the rust-anthology repo.