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
| #include <stdio.h> | |
| int sudoku[9][9]; | |
| int read() { | |
| for (int y = 0; y < 9; y++) { | |
| for (int x = 0; x < 9; x++) { | |
| scanf("%d", &sudoku[x][y]); | |
| } | |
| } |
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
| moritz / media mapcrafter-projects mapcrafter_test mapcrafter -c world1.4.conf -rf isometric_day isometric_day_jpeg isometric_day_indexed -j 4 | |
| 2015-05-18 18:08:47 [INFO] [default] Scanning worlds... | |
| 2015-05-18 18:08:48 [INFO] [default] [1/3] Rendering map isometric_day ("isometric_day"): | |
| 2015-05-18 18:08:48 [INFO] [default] Last rendering was on 18 May 2015, 17:43:55. | |
| [=====================================] 100.00% 14640/14640 47.69/s | |
| 2015-05-18 18:13:55 [INFO] [default] [1.1/1.1] Rendering rotation top-left took 307 seconds. | |
| 2015-05-18 18:13:55 [INFO] [default] [2/3] Rendering map isometric_day_jpeg ("isometric_day_jpeg"): | |
| 2015-05-18 18:13:55 [INFO] [default] Last rendering was on 18 May 2015, 17:43:55. | |
| [=====================================] 100.00% 14640/14640 85.61/s | |
| 2015-05-18 18:16:46 [INFO] [default] [2.1/2.1] Rendering rotation top-left took 171 seconds. |
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
| 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); |
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
| 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 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
| output_dir = output | |
| [world:world] | |
| input_dir = world1.7 | |
| [map:isometric_day] | |
| world = world1.7 |
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
| #!/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 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
| #!/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 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
| 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 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
| 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 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
| 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 |