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 <set> | |
#include <unordered_set> | |
#include <vector> | |
#include <algorithm> | |
// number of rows already in table | |
int N = 100; | |
// number of values to insert | |
int M = 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
Run on (32 X 2500 MHz CPU s) | |
CPU Caches: | |
L1 Data 32K (x32) | |
L1 Instruction 32K (x32) | |
L2 Unified 256K (x32) | |
L3 Unified 25600K (x32) | |
-------------------------------------------------------------------------------------------------------------- | |
Benchmark Time CPU Iterations | |
-------------------------------------------------------------------------------------------------------------- | |
MicroBenchmarkBasicFixture/BM_InsertEmptyTableWithConstraint/1/1 182574332 ns 182573160 ns 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
TAG_Compound(""): 2 entries | |
{ | |
TAG_Int("DataVersion"): 1519 | |
TAG_Compound("Level"): 16 entries | |
{ | |
TAG_Int_Array("Biomes"): 256 entries | |
TAG_Compound("CarvingMasks"): 2 entries | |
{ | |
TAG_Byte_Array("AIR"): 1439 entries | |
TAG_Byte_Array("LIQUID"): 0 entries |
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 random | |
class GeorgianQueue: | |
def __init__(self, g, *args, **kwargs): | |
self.queue = [] | |
self.g = g | |
def size(self): | |
return len(self.queue) |
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 file included from src/util/math.h:16:0, | |
from src/util/types.h:7, | |
from src/analyzer/analyzer.h:4, | |
from src/analyzer/analyzerqueue.h:12, | |
from src/analyzer/analyzerqueue.cpp:1: | |
src/util/fpclassify.h:22:20: error: ‘std::util_fpclassify’ has not been declared | |
#define fpclassify util_fpclassify | |
^ | |
src/util/fpclassify.h:23:18: error: ‘std::util_isfinite’ has not been declared | |
#define isfinite util_isfinite |
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
#!/usr/bin/env python | |
import sys | |
import os | |
import sqlite3 | |
def db_get_single_value(db, query, arguments): | |
db.execute(query, arguments) | |
rows = db.fetchall() | |
if len(rows) != 1 or len(rows[0]) < 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
#!/bin/bash | |
key=$(cat $2) | |
ssh -t $1 "sudo useradd -d /var/lib/ansible -m -u 999 ansible; \ | |
echo 'ansible ALL=NOPASSWD: ALL' | sudo tee /etc/sudoers.d/ansible; \ | |
sudo mkdir /var/lib/ansible/.ssh; \ | |
echo '$key' | sudo tee /var/lib/ansible/.ssh/authorized_keys; \ | |
sudo chown -R ansible:ansible /var/lib/ansible/.ssh;" |
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
output_dir = output | |
[world:world] | |
input_dir = world1.7 | |
[map:isometric_day] | |
world = world1.7 |
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/client/index.html b/client/index.html | |
index f7b621b..4594f65 100644 | |
--- a/client/index.html | |
+++ b/client/index.html | |
@@ -89,14 +89,14 @@ | |
<div class="text-muted"> | |
<div class="pull-right"> | |
<span ng-show="user" ng-cloak> | |
- <a href="/#/settings/" title="Settings" tooltip><i class="fa fa-cog fa-tablet1"></i></a> | |
+ <a href="/coffee/#/settings/" title="Settings" tooltip><i class="fa fa-cog fa-tablet1"></i></a> |
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 java.lang.System; | |
import java.util.Random; | |
class SlimeTest { | |
public static boolean isSlimeChunk(long seed, long x, long z) { | |
Random random = new Random(seed + | |
(long) (x * x * 0x4c1906) + | |
(long) (x * 0x5ac0db) + | |
(long) (z * z) * 0x4307a7L + | |
(long) (z * 0x5f24f) ^ 0x3ad8025f); |
NewerOlder