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
| package net.minecraftforge.test; | |
| import net.minecraft.util.text.TextComponentString; | |
| import net.minecraftforge.common.MinecraftForge; | |
| import net.minecraftforge.event.ServerSendChatEvent; | |
| import net.minecraftforge.fml.common.Mod; | |
| import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; | |
| import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; | |
| /** |
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
| public static void GuiScreen create(InventoryPlayer playerInv) { | |
| UIFixedView view = new UIFixedView(176, 166); | |
| UIImage texture = new UIImage(new ResourceLocation("modtest:textures/gui/test.png"), 176, 166); | |
| view.add(texture); | |
| UIFixedView topPanel = new UIFixedView(176, 166 / 2); | |
| topPanel.setStyle(VERTICAL_LAYOUT, TOP); | |
| UIListView list = new UIListView(topPanel.width - 10, topPanel.height - 10); |
I hereby claim:
- I am shadowfacts on github.
- I am shadowfacts (https://keybase.io/shadowfacts) on keybase.
- I have a public key ASBZTmn2w4UimvtNBvdAN8C_rKi2YZXM7uC98zzX-BLGcgo
To claim this, I am signing this object:
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
| command: "curl -s https://github.com/shadowfacts | /Users/shadowfacts/.nvm/versions/node/v7.5.0/bin/node /Users/shadowfacts/Dev/gh-activity/process.js" | |
| refreshFrequency: 3600000 | |
| style: """ | |
| #canvas { | |
| position: absolute; | |
| left: 50%; | |
| top: 50%; | |
| transform: translateX(-50%) translateY(-50%); |
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
| https://eth.nanopool.org/account/0xe59492edf924980df3b8b8aa6a85a5c2f7013edc/JRTI |
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
| // | |
| // SimpleScrollingStack.swift | |
| // A super-simple demo of a scrolling UIStackView in iOS 9 | |
| // | |
| // Created by Paul Hudson on 10/06/2015. | |
| // Learn Swift at www.hackingwithswift.com | |
| // @twostraws | |
| // | |
| import UIKit |
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 | |
| # Requirements: imagemagick | |
| # Usage: ./reverse.sh <repetitions> | |
| cp orig.png new.png | |
| for i in `seq 1 $1` | |
| do | |
| echo "Iteration: $i" | |
| composite -geometry 125x171+502+280 new.png new.png new.png |
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
| // Normal position: fixed; | |
| const elems = document.getElementsByTagName("*"); | |
| for (let i = 0; i < elems.length; i++) { | |
| const el = elems[i]; | |
| const position = window.getComputedStyle(el).getPropertyValue("position"); | |
| if (position == "fixed") { | |
| el.remove(); | |
| } | |
| } |
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
| struct ContentView: View { | |
| @State var model = Model() | |
| var body: some View { | |
| let _ = Self._printChanges() | |
| VStack { | |
| Text(model.test) | |
| Text("\(model.otherThing)") | |
| Button("Toggle") { |