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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ObjDB | |
{ | |
public interface IEventedType<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
const sleepsort = (arr, callback) => { | |
for (var a in arr) { | |
setTimeout((i) => callback(i), a, a); | |
} | |
} | |
let test = [39, 9, 34, 26, 3, 30, 31, 18, 21, 3, 38, 7, 13, 16, 27, 21, 18, 8, 8, 38, 2, 11, 29, 11, 22, 28, 22, 9, 12, 0, 18, 2, 30, 29, 14, 23, 27, 38, 22, 22] | |
sleepsort(test, i => console.log(i)); |
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
In total, 7 object ids were changed. Full details are logged here: | |
/.../asddfknjsanf.bfg-report/2019-07-15/10-47-07 | |
BFG run is complete! When ready, run: git reflog expire --expire=now --all && git gc --prune=now --aggressive | |
-- | |
You can rewrite history in Git - don't let Trump do it for real! | |
Trump's administration has lied consistently, to make people give up on ever |
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
package utils | |
import ( | |
"bufio" | |
"os" | |
) | |
func chanNBRead(c chan bool, def bool) bool { | |
var e bool | |
select { |
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
# Definitions described here https://youtu.be/2gKxuBoxIm0 | |
def factorial(n): | |
if n == 1: | |
return n | |
else: | |
return n * factorial(n - 1) | |
def super_factorial(n): | |
def sf(n): |
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> | |
using namespace std; | |
// Changes the input type for the user, type must support comparison logic | |
typedef string INPUT_TYPE; | |
struct Node { | |
INPUT_TYPE data; | |
Node *next; | |
Node *last; |
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
/** | |
Component will show the view named in `current` as defined by it's corresponding attribute. | |
Usage: | |
import Switch from './switch' | |
import Main from './main_view' | |
import Secondary from './secondary_view' | |
ReactDOM.render(<Switch current="main" main={<Main />} secondary={<Secondary />} /> | |
*/ |
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
[motivation] | |
command=/path/to/motivation/script/motivation | |
interval=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
const EXAMPLE_KEY = "example key"; | |
const describeWrapper = (label, opts, tests) => { | |
describe(label, () => { | |
var State = undefined; | |
beforeAll(async () => { | |
// acquiring the state irl has to be done asynchronously | |
State = EXAMPLE_KEY; | |
}) |
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
locals { | |
labels = { | |
"app" = "mongo" | |
} | |
volume_config_name = "mongo-config" | |
} | |
module "mongo" { | |
source = "terraform-iaac/stateful-set/kubernetes" | |
version = "1.4.2" |
OlderNewer