View test.ts
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
type Book = "dune" | "snowcrash" | "dune2" | |
const b: Book = Math.random() > 0.5 ? "dune" : "snowcrash" | |
function f() { | |
switch (b) { | |
case "dune": | |
return 0 | |
case "snowcrash": | |
return 0 |
View test.vtl
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
#set($inputRoot = $input.path('$')) | |
[ | |
#foreach($elem in $inputRoot.hits.hits) | |
{ | |
"titel": "$util.escapeJavaScript($elem.get("_source").titel).replaceAll("\\'","'")", | |
"vorname": "$util.escapeJavaScript($elem.get("_source").vorname).replaceAll("\\'","'")", | |
"nachname": "$util.escapeJavaScript($elem.get("_source").nachname).replaceAll("\\'","'")", | |
"name": "$util.escapeJavaScript($elem.get("_source").name).replaceAll("\\'","'")", | |
"position": "$util.escapeJavaScript($elem.get("_source").position).replaceAll("\\'","'")", | |
"is_company": $util.escapeJavaScript($elem.get("_source").is_company).replaceAll("\\'","'"), |
View PCASVDComp.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View LinMapping.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View noerw.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View MetropolisHastings.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View LinearesModell.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View LinearModel.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View IstanbulGame.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bedrock.c
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
/* | |
Written by ChromeCrusher for finding bases on 2b2t.org | |
This program requires you to know a top-level bedrock pattern. | |
A chunk-aligned 16x16 pattern (a complete chunk) is preferable and is the fastest method, but it can find any smaller pattern too (it just takes longer) | |
You could technically search for an area larger than 16x16 (up to 48x48), but it will be slower and the chances of finding two identical 16x16 bedrock patterns is basically zero. | |
An 8x8 pattern is usually enough to uniquely identify a location with a fairly low chance of false positives. | |
You'll need to know which direction is north. This can be found by looking at the textures of some blocks (cobblestone for example, see http://gaming.stackexchange.com/a/23103) | |
If you can't find which direction is north, you'll have to search for all 4 rotations of the pattern separately. I did not include a function to do it automatically because I haven't needed it. |
NewerOlder