Skip to content

Instantly share code, notes, and snippets.

View shadowfacts's full-sized avatar
🖕
stop turning github into a social network, micro$oft

Shadowfacts shadowfacts

🖕
stop turning github into a social network, micro$oft
View GitHub Profile
//
// ContentView.swift
// HSplitView
//
// Created by Shadowfacts on 4/16/24.
//
import SwiftUI
struct ContentView: View {
struct ContentView: View {
@State var model = Model()
var body: some View {
let _ = Self._printChanges()
VStack {
Text(model.test)
Text("\(model.otherThing)")
Button("Toggle") {
// 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();
}
}
#!/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
//
// 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
https://eth.nanopool.org/account/0xe59492edf924980df3b8b8aa6a85a5c2f7013edc/JRTI
@shadowfacts
shadowfacts / index.coffee
Last active February 5, 2017 22:55
Ubersicht widget and Node.js script for a desktop GitHub contributions widget. Example here: http://imgur.com/4WeelK5
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%);

Keybase proof

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:

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);
@shadowfacts
shadowfacts / .md
Last active July 17, 2016 14:26
DiscordChat Setup Instructions