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
function Maybe(x) { | |
this.x = x; | |
this.isEmpty = x == null || x == undefined; | |
} | |
Maybe.prototype.map = function(f) { | |
//composition operator anyone? | |
return this.chain(function(x) { | |
return Maybe.of(f(x)); |
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
Honest Signals | |
Alex (Sandy) Pentland | |
Essentials of Programming Languages, third edition | |
Daniel P. Friedman and Mitchell Wand | |
Explaining the Computational Mind | |
Marcin Milkowski |
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
pipeline { | |
agent label:'master' | |
stages { | |
stage('build') { | |
execute 'echo step1' | |
execute 'echo step2' | |
execute ''' | |
echo 'Multiline' | |
echo 'Example' | |
''' |
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
namespace detail { | |
// Preconditions: T models ChannelConcept | |
template <typename T> | |
struct ChannelIsMutableConcept { | |
void constraints() { | |
c=c; | |
using std::swap; | |
swap(c,c); | |
} | |
T c; |
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
const fs = require("fs"); | |
const https = require("https"); | |
const UNKNOWN = "UNKNOWN"; | |
function getValue(obj) { | |
if(!obj) { | |
return UNKNOWN; | |
} | |
return obj.Value; |
OlderNewer