Skip to content

Instantly share code, notes, and snippets.

Avatar
🖕
stop turning github into a social network, micro$oft

Shadowfacts shadowfacts

🖕
stop turning github into a social network, micro$oft
View GitHub Profile
View shortcut.js
// 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();
}
}
View recurse.sh
#!/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
View SimpleScrollingUIStackView.swift
//
// 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
View gist:76fdcd1ce8c25863f352dec76b9a0ab7
https://eth.nanopool.org/account/0xe59492edf924980df3b8b8aa6a85a5c2f7013edc/JRTI
@shadowfacts
shadowfacts / index.coffee
Last active Feb 5, 2017
Ubersicht widget and Node.js script for a desktop GitHub contributions widget. Example here: http://imgur.com/4WeelK5
View index.coffee
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%);
View keybase.md

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:

View Test.java
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 Jul 17, 2016
DiscordChat Setup Instructions
View ServerSendChatTest.java
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;
/**
View test.json
{
"blocks": [
[
[
{
"id": "minecraft:chest",
"properties": {
"facing": "south"
}
},