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 "variant/variant.hpp" | |
template<typename ...T> using variant = mapbox::util::variant<T...>; | |
namespace matchdetail { | |
template<typename C, typename Arg> | |
Arg lambda_argument(void(C::*)(const Arg&) const) {} | |
template<typename Other> | |
void lambda_argument(Other) {} |
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
license: apache-2.0 | |
scrolling: yes | |
height: 900 | |
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
license: apache-2.0 | |
scrolling: no | |
height: 1500 |
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
license: mit | |
border: yes | |
scrolling: yes |
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 <iostream> | |
#include <cstdlib> | |
int roll_dice(int numdice, int die) { | |
int total = 0; | |
for (int i = 0; i < numdice; i++) { | |
total += std::rand() % die; | |
} | |
return total; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<svg width="80%" height="80%" viewBox="-100 -100 200 200"> | |
<!-- Need this definition to make an arrowhead, from https://www.w3.org/TR/svg-markers/ --> | |
<defs> | |
<marker id="red-arrowhead" viewBox="0 0 10 10" refX="7" refY="5" markerUnits="strokeWidth" markerWidth="4" markerHeight="3" orient="auto"> | |
<path d="M 0 0 L 10 5 L 0 10 z" stroke="none" fill="red"/> | |
</marker> | |
</defs> |
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
<!DOCTYPE html> | |
<html> | |
<svg width="80%" height="80%" viewBox="-100 -100 200 200"> | |
<!-- Need this definition to make a drop shadow - based on examples from many articles, including svg spec --> | |
<defs> | |
<filter id="drop-shadow" x="-100%" y="-100%" width="300%" height="300%"> | |
<feGaussianBlur in="SourceAlpha" stdDeviation="2"/> | |
<feOffset dx="5" dy="5" result="offsetblur"/> | |
<feFlood flood-color="#000000"/> |
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
license: mit |
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
// I wrote wrong1 vs right1 to demonstrate automatic semicolon insertion. So far so good. | |
function wrong1(x) { | |
return | |
{ | |
upper: x + 1 | |
}; | |
} | |
function right1(x) { |
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
license: mit |
OlderNewer