This has been copied from the original DropBox file which can be found here.
This was written by the MinecraftForums user jcm2606. I welcome anyone to link to this file whenever they respond to an MCreator thread, as I will be doing.
Modified by TheOnlyTails to a Markdown file, with some phrasing improvements. Original Gist: https://gist.github.com/thebrightspark/6d2bc3ca824fe2198b8979b070c4c943
🏳️⚧️
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
/* | |
TheOnlyTails's Personal userChrome.css for Firefox | |
Based on Drannex42's userChrome.css | |
*/ | |
:root { | |
--sidebar-width: 50px; | |
--toolbar-height: -50px; | |
--menubar-height: -74px; | |
--sidebar-padding: calc(var(--sidebar-width) + 5px); |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#d9d9d9", | |
"foreground_templates": ["{{ if gt .Code 0 }}#FF7700{{ end }}"], |
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
class Main { | |
public static void main(String[] args) { | |
System.out.println("1\n3\n7\n15\n31\n63"); | |
} | |
} |
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
export type DocsMap = { | |
name: string; | |
path?: string; | |
type?: "page" | "category"; | |
pages?: DocsMap[]; | |
}; | |
function filterPages(docsStructure: DocsMap[] | DocsMap): DocsMap[] { | |
if (Array.isArray(docsStructure)) { | |
// it's an array of pages/categories |
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
<script lang="ts"> | |
let count = 0; | |
</script> | |
<button on:click={() => count++}>{count}</button> | |
<style> | |
button { | |
color: red; | |
} |
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
@mixin flex($direction: row, $justify: normal, $align: normal, $inline: false, $wrap: false, $gap: false) { | |
// display: flex/inline-flex | |
@if $inline { display: inline-flex } @else { display: flex } | |
// flex-direction | |
@if $direction == row { flex-direction: row | |
} @else if $direction == column { flex-direction: column | |
} @else if $direction == row-reverse { flex-direction: row-reverse | |
} @else if $direction == column-reverse { flex-direction: column-reverse } |
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
fun hammingSyndrome(bits: List<Int>) = | |
// gets all the indices of 1 value, and places null in 0 values' indices. | |
bits.mapIndexed { index, it -> if (it == 1) index else null } | |
// removes all those null values. | |
.filterNotNull() | |
// XORs the indices together to get the index of the error | |
.reduce { acc, i -> acc xor i } |
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
package com.crypticcosmos.crypticcosmos.blocks; | |
import com.crypticcosmos.crypticcosmos.registries.CrypticCosmosDimensions; | |
import net.minecraft.block.Block; | |
import net.minecraft.block.BlockState; | |
import net.minecraft.block.SoundType; | |
import net.minecraft.block.material.Material; | |
import net.minecraft.entity.Entity; | |
import net.minecraft.entity.player.PlayerEntity; | |
import net.minecraft.util.RegistryKey; |
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
package com.crypticcosmos.crypticcosmos.blocks; | |
import net.minecraft.block.Block; | |
import net.minecraft.block.BlockState; | |
import net.minecraft.block.SoundType; | |
import net.minecraft.block.material.Material; | |
import net.minecraft.entity.Entity; | |
import net.minecraft.util.RegistryKey; | |
import net.minecraft.util.math.BlockPos; | |
import net.minecraft.util.registry.Registry; |
NewerOlder