Skip to content

Instantly share code, notes, and snippets.

View chimericdream's full-sized avatar

Bill Parrott chimericdream

View GitHub Profile
@chimericdream
chimericdream / minecraft-loot_tables-entities-husk.json
Last active October 5, 2022 00:30
Husk loot table with Pharaoh head from YUNG's Better Desert Temples
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:loot_table",
"name": "reference:entities/husk"
}
@chimericdream
chimericdream / index.js
Last active October 19, 2020 05:25
Chalk issue with string from a file
const chalk = require('chalk');
const fs = require('fs');
const inline = chalk`{red.bold this is a test}
{green with multiple} {white.bold colors and}
{magenta lines}`;
const fromFile = fs.readFileSync('./message.txt', 'utf8');

Minecraft Ultimate Tool Set

Requires creative mode or operator power on a multiplayer server. On a single player game (survival or hardcore), you will need "cheats" enabled to move into creative mode. Don't forget to leave creative mode when done.

These items might be stupid. Be prepared to repair the country-side.

@chimericdream
chimericdream / demo.html
Last active November 10, 2017 18:32
w/f support for: multiple <tbody> within a table, multiple tables in one "save"
<!DOCTYPE html>
<html>
<head>
<title>Edit/Compare Table jQuery Plugin</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<link rel="stylesheet" href="tbl-edit-compare.css">
</head>
<body>
<div class="container">
<table class="table js-edit-compare" data-identifier="Table #1">
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("lists.toodledo.com") {
#contents_left.thinside,
#contents_left.thinside #sidebar {
width: 400px;
}
}
@chimericdream
chimericdream / crash-log.txt
Created January 28, 2017 19:45
Minecraft TAIGA add-on: 2017-01-28 crash log
---- Minecraft Crash Report ----
WARNING: coremods are present:
ForgelinPlugin (Forgelin-1.2.0.jar)
BookshelfLoadingPlugin (Bookshelf-1.10.2-1.4.3.338.jar)
ChiselCorePlugin (Chisel-MC1.10.2-0.0.7.7.jar)
IC2core (industrialcraft-2-2.6.142-ex110.jar)
CCLCorePlugin (CodeChickenLib-1.10.2-2.5.2.198-universal.jar)
CoreMod (Aroma1997Core-1.9.4-1.1.1.1.jar)
Brandon's Core (BrandonsCore-1.10.2-2.1.3.82-universal.jar)
@chimericdream
chimericdream / gcal-column-times.user.css
Created January 9, 2017 00:25
Simple user style that adds a muted time to the background of the columns in Google Calendar
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("calendar.google.com") {
#tgCol1, #tgCol2, #tgCol3, #tgCol4, #tgCol5, #tgCol6 {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAPwCAMAAABEKd2hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRFVVVVAAAA9QSfoAAAAAJ0Uk5T/wDltzBKAAADRklEQVR42uzdi26rMBCE4dn3f+lekjQ2OLBjZAeav1J6eiS+QFIiTxfjVdhfgvx9//7KktuWSu5Vvw/V/388xc+/6z1r8Yr0eJa4g/WOF0TVzp+P16R6G1JEzT1sEJU/Z8ntiJQ6ME5+CAQCgZwqXThENtFy8G6nitbwupMqMoEkQ+6DeJ7I38vf6zCInAPj5IdAIBDIKUiyZlEO2vL2pvXecukiVbNYEE1IF3VeyBCV70CKVDUL0gUEAoFA/n26MHdWbuulC8WEdFEUCSxipItq02wgub9TpAsIBAKBXJL4UUE2UTmGp9KF/HQhO10o6gkXTlXByzAK98pIkC4gEAgEcuHahXmZQx178WsXy2mMuXTRvKhC7QICgUAgkHNfGQl/3sWzopBOF/JndT42MWsXZroQ6QICgUAgkO1xv6N20Xdg7pWRSfeM1FWVQbM6y5tXvahAuoBAIBAItYudEsHgeRfFM1K74OSHQCAQCOliY0SO/KxOd96FNH7eRZAuIBAIBPJh5MhanVmiegUqY63ObMpokGUaypD8Wp2tdJEg8tbqrFJGsFYnBAKBQC6VLpK+WtE6T1Tdl/rME9VEzK0DU1meaJUw2q9la0BuLuu9PYZvH1iSqOPAlDswTn4IBAKB/IPaRWefEYXfZ0R2n5G9axeNPiMWyc3uXP
@chimericdream
chimericdream / number-spiral.txt
Created November 24, 2016 05:18
Project Euler - Problem #28
21 22 23 24 25
20 7 8 9 10
19 6 1 2 11
18 5 4 3 12
17 16 15 14 13
@chimericdream
chimericdream / solution.php
Created November 24, 2016 05:17
Project Euler - Problem #5
$exitLoop = false;
$x = 2520;
while (!$exitLoop) {
if ($x % 20 || // 20 gives us 1, 2, 4, 5, 10 as well
$x % 19 || // 19 is prime
$x % 18 || // 18 gives us 3, 6, 9 as well
$x % 17 || // 17 is prime
$x % 16 || // 16 gives us 2, 4, 8 as well
$x % 15 || // 15 gives us 3, 5 as well
$x % 14 || // 14 gives us 2, 7 as well
@chimericdream
chimericdream / solution.php
Last active November 24, 2016 05:15
Project Euler - Problem #1
$x = 0;
for ($i = 1; $i &lt; 1000; $i++) {
if ($i % 3 == 0 || $i % 5 == 0) {
$x += $i;
}
}
echo $x;