(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This file contains hidden or 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
| {- | |
| Haskell implementation of grep tool. | |
| http://linux.die.net/man/1/grep | |
| -- from stdin: | |
| $ ls | ./grep ep.hs | |
| -- with file names | |
| $ ./grep List grep.hs | |
| grep.hs:import Data.List(isInfixOf) |
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
This file contains hidden or 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
| #include <cstddef> // size_t | |
| #if defined (__linux__) | |
| # include <sys/sysinfo.h> | |
| #elif defined (__APPLE__) | |
| # include <mach/mach.h> | |
| # include <mach/mach_host.h> | |
| #elif defined (_WIN32) | |
| # include <windows.h> | |
| #endif |
This file contains hidden or 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
| /******************************************************************************* | |
| * Copyright 2022 Paulo Torrens * | |
| * * | |
| * 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: * | |
| * * |