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
### Keybase proof | |
I hereby claim: | |
* I am komiga on github. | |
* I am komiga (https://keybase.io/komiga) on keybase. | |
* I have a public key ASAbrlZ43jkqesSVChP6z9Lt5WTCVFhaGMvWuFl4wEvFJQo | |
To claim this, I am signing this object: |
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
=arrayformula( | |
trunc(WorkEng * (AvailEngRange / AvailEng)) | |
+ sort( | |
arrayformula(if( | |
row(offset(Z:Z, 0,0, rows(PersonnelNameRange),1)) | |
<= (WorkEng - sum(trunc(WorkEng * (AvailEngRange / AvailEng)))) | |
, 1, 0)), | |
sort( | |
arrayformula( | |
row(offset(Z:Z, 0,0, rows(PersonnelNameRange),1)) |
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
// A simplified look at what FFP OpenGL could do when implemented in terms of | |
// core OpenGL 3.3. | |
struct Position { | |
float x, y; | |
}; | |
struct Color { | |
float r, g, b; |
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 <stdint.h> | |
#include <stddef.h> | |
#include <stdio.h> | |
struct S { | |
// This is complicated by padding, but: | |
// NB: sizeof(int32_t) = 4 bytes (32 bits) | |
// base_address + 0 |
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 <cassert> | |
#include <type_traits> | |
#include <memory> | |
#include <iostream> | |
template<class> struct is_smart_pointer : std::false_type {}; | |
template<class T> struct is_smart_pointer<std::shared_ptr<T>> : std::true_type {}; | |
template<class T> struct is_smart_pointer<std::unique_ptr<T>> : std::true_type {}; |
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
diff --git a/tinch_pp/erl_list.h b/tinch_pp/erl_list.h | |
index 35bcc73..e440657 100644 | |
--- a/tinch_pp/erl_list.h | |
+++ b/tinch_pp/erl_list.h | |
@@ -30,6 +30,8 @@ | |
#include <cassert> | |
#include <functional> | |
+using namespace std::placeholders; | |
+ |
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 <type_traits> | |
#include <memory> | |
template<class> | |
struct is_smart_pointer : std::false_type {}; | |
template<class T> | |
struct is_smart_pointer<std::shared_ptr<T>> : std::true_type {}; |
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
import sys | |
import math | |
EDGE_NONE = 0 | |
EDGE_TOP = 1 | |
EDGE_BOTTOM = 2 | |
EDGE_LEFT = 3 | |
EDGE_RIGHT = 4 |
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 <bitset> | |
#include <vector> | |
#include <chrono> | |
#include <iostream> | |
using namespace std::chrono; | |
using hrc = std::chrono::high_resolution_clock; | |
template<class T> |
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 <cassert> | |
#include <streambuf> | |
#include <iostream> | |
// Dummy stream buffer for testing. | |
// basic_streambuf defines seekoff() and seekpos() (virtuals) to | |
// return pos_type(off_type(-1)), which indicates a seek failure, so | |
// we don't really have to define them, but I've done so for the sake | |
// of pedantry. |
NewerOlder