I hereby claim:
- I am sturmer on github.
- I am sturmer (https://keybase.io/sturmer) on keybase.
- I have a public key ASC0DR6PLPYHibIbjeGUb39QbzQCja1uLkB7Xbu40-E7cQo
To claim this, I am signing this object:
| iex> [1, [2], 3] |> List.flatten() |> Enum.map(fn x -> x * 2 end) | |
| [2, 4, 6] |
| #!/usr/local/bin/node | |
| // Test: Is it faster to initialize a const via callback, or to use let and then an if statement? | |
| // Solution 2: no callback (but also, no const) | |
| const TIMES = 1e6; | |
| const time = process.hrtime(); // returns [seconds, nanoseconds] | |
| for (let i = 0; i < TIMES; i++) { | |
| let x = null; | |
| // Imagine some more processing here... | |
| if (2 + 1 === 4) { |
| # Put this in your ~/.gitconfig or ~/.config/git/config | |
| # Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName> | |
| [user] | |
| name = Your Full Name | |
| email = your@email.tld | |
| [color] | |
| # Enable colors in color-supporting terminals | |
| ui = auto | |
| [alias] | |
| st = status |
I hereby claim:
To claim this, I am signing this object:
| // Access Rotten Tomatoes API | |
| #include "Poco/Net/HTTPClientSession.h" | |
| #include "Poco/Net/HTTPRequest.h" | |
| #include "Poco/Net/HTTPResponse.h" | |
| #include "Poco/Net/HTMLForm.h" | |
| #include "Poco/StreamCopier.h" | |
| #include "Poco/Exception.h" | |
| #include <string> |
| #include <iostream> | |
| #include <vector> | |
| #include <algorithm> | |
| using std::cout; | |
| using std::vector; | |
| using std::none_of; | |
| struct Shape { | |
| Shape() {} |
| #include <algorithm> | |
| #include <iostream> | |
| #include <vector> | |
| using std::vector; | |
| using std::all_of; | |
| using std::cout; | |
| enum Continent { | |
| EUROPE, ASIA, AMERICA, AFRICA, AUSTRALIA | |
| }; |
| #include <algorithm> | |
| #include <iostream> | |
| #include <vector> | |
| using std::vector; | |
| using std::all_of; | |
| using std::cout; | |
| enum Continent { | |
| EUROPE, ASIA, AMERICA, AFRICA, AUSTRALIA | |
| }; |
| # Yeah, I am bad at writing Makefiles on the fly :( | |
| all: example_functors.cpp example_lambdas.cpp | |
| g++ -std=c++0x -g -Wall -Werror example_functors.cpp -o ef | |
| g++ -std=c++0x -g -Wall -Werror example_lambdas.cpp -o el |
| #include <iostream> | |
| #include <functional> | |
| #include <algorithm> | |
| #include <cstdlib> | |
| #include <vector> | |
| #include <string> | |
| #include <fstream> | |
| using std::function; | |
| using std::string; |