sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/osx --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction
This file contains 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
/** | |
* curry | |
* | |
* var curried = curry(function(a, b, c) { | |
* console.log(a+b+c); | |
* }); | |
* | |
* | |
* curried(2)(2)(2); // => 6 | |
* curried(2,2)(2); // => 6 |
This file contains 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
process.on('SIGINT', () => console.log('I captures sigint')) | |
process.on('SIGTERM', () => console.log('I captures sigterm')) |
This file contains 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
pub unsafe fn sigaction(signal: Signal, sigaction: &SigAction) -> Result<SigAction> |
This file contains 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
struct sigaction { | |
union __sigaction_u __sigaction_u; /* signal handler */ | |
sigset_t sa_mask; /* signal mask to apply */ | |
int sa_flags; /* see signal options below */ | |
}; |
This file contains 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 "uv.h" | |
#include <iostream> | |
#include <memory> | |
#include <mutex> | |
#include <optional> | |
#include <semaphore> | |
#include <thread> | |
#include <unistd.h> | |
#include <vector> |