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
/blockdata ~0 ~1 ~0 {Items:[ | |
{id:brown_shulker_box,Slot:0,Count:1,tag:{display:{Name:"Signal Strength 1"}, | |
BlockEntityTag:{Items:[ | |
{Slot:4,id:redstone_block,Count:21b}, | |
{Slot:13,id:redstone_block,Count:21b}, | |
{Slot:22,id:redstone_block,Count:21b} | |
]}}}, | |
{id:red_shulker_box,Slot:1,Count:1,tag:{display:{Name:"Signal Strength 2"}, | |
BlockEntityTag:{Items:[ | |
{Slot:3,id:redstone_block,Count:21b}, |
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
/blockdata ~0 ~1 ~0 {Items:[ | |
{id:fishing_rod,Slot:0,Count:1,tag:{ench:[{id:34,lvl:6},{id:61,lvl:3},{id:62,lvl:5}]}} | |
]} |
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
Superflat Preset: | |
3;1*minecraft:bedrock,50*minecraft:stained_hardened_clay:9,1*minecraft:concrete:13;1; | |
/gamerule commandBlockOutput false | |
/gamerule doMobSpawning false | |
/gamerule doWeatherCycle false | |
/gamerule doDaylightCycle false | |
/time set 4284 |
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
var co = require('co') | |
var scheduler = | |
{ | |
queue : [] | |
} | |
// Requests control from scheduler | |
scheduler.promote = function() | |
{ |
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
var co = require('co') | |
var Promise = require("bluebird") | |
var chokidar = require('chokidar') | |
var hotloadFile = 'hotload.js' | |
var watcher = chokidar.watch( hotloadFile ) | |
function waitForHotload() | |
{ | |
return new Promise( (fulfill, reject) => watcher.once( 'change', fulfill ) ) |
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
var bigint = require( 'big-integer' ) | |
var lower = 'abcdefghijklmnopqrstuvwxyz'; | |
var upper = lower.toUpperCase(); | |
var numbers = '0123456789' | |
var ig_alphabet = upper + lower + numbers + '-_' | |
var bigint_alphabet = numbers + lower | |
function toShortcode( longid ) |
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
// var passphrases = input.split('\n') | |
function countValid( passphrases, allowAnagrams ) | |
{ | |
return passphrases.reduce( (s,passphrase) => { | |
var passwords = passphrase.split(' ') | |
passwords = allowAnagrams ? passwords : passwords.map( a => ( a.split('').sort().join('') ) ) | |
return s + passwords.reduce( ( s,n,i,a ) => s && a.indexOf(n) == i ) | |
}, 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
// Advent of Code 2017 - Day 3 Part 2 | |
// by @sclark39 | |
var add = ( a, b ) => ([ a[0] + b[0], a[1] + b[1] ]) | |
var turn = (a) => ( a[0] == 0 ? [ -a[1], 0 ] : [ 0, a[0] ] ) | |
function buildSpiral(input) | |
{ | |
var spiral = [ [1] ] | |
spiral.get = ( c ) => ( spiral[c[0]] && spiral[c[0]][c[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
HotKey, IfWinActive, Fortnite | |
; Fortnite Binds | |
Fortnite.RegisterKey( "1", "MeleeSlotKey" ) | |
Fortnite.RegisterKey( "2", "WeaponSlotKey" ) | |
Fortnite.RegisterKey( "3", "WeaponSlotKey" ) | |
Fortnite.RegisterKey( "4", "WeaponSlotKey" ) | |
Fortnite.RegisterKey( "z", "WeaponSlotKey" ) | |
Fortnite.RegisterKey( "x", "WeaponSlotKey" ) | |
Fortnite.RegisterKey( "q", "BuildKey" ) |
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
function Foo( Name ) | |
return function( Table ) | |
; Construct | |
return something | |
end | |
end | |
;Called with: | |
Foo 'Bar' {} |