Skip to content

Instantly share code, notes, and snippets.

View uberswe's full-sized avatar

Uberswe uberswe

  • Västerås, Sweden
  • 12:24 (UTC +02:00)
View GitHub Profile
---- Minecraft Crash Report ----
// I let you down. Sorry :(
Time: 2024-04-04 12:17:41
Description: Exception ticking world
java.lang.IllegalArgumentException: Cannot set property IntegerProperty{name=age, clazz=class java.lang.Integer, values=[0, 1, 2, 3]} as it does not exist in Block{minecraft:air}
at net.minecraft.world.level.block.state.StateHolder.m_61124_(StateHolder.java:117) ~[server-1.19.2-20220805.130853-srg.jar%23471!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:ferritecore.fastmap.mixin.json:FastMapStateHolderMixin,pl:mixin:A}
at net.joefoxe.hexerei.block.custom.PickableDoubleFlower.m_214148_(PickableDoubleFlower.java:187) ~[hexerei-0.3.3.1.jar%23387!/:0.3.3.1] {re:classloading}
at vectorwing.farmersdelight.common.block.RichSoilFarmlandBlock.m_213898_(RichSoilFarmlandBlock.java:85) ~[FarmersDelight-1.19.2-1.2.4.jar%23368!/:1.19.2-1.2.4] {re:classloading}
@uberswe
uberswe / saft.json
Created December 12, 2021 10:35
SAFT JSON
{
"auditfile": {
"-Id": "???",
"header": {
"fiscalYear": "str1234",
"startDate": "2012-12-13",
"endDate": "2012-12-13",
"curCode": "AED",
"dateCreated": "2012-12-13",
"timeCreated": "12:12:12",
@uberswe
uberswe / vgs.go
Last active September 9, 2020 21:03
package vgs
import (
"html/template"
"io/ioutil"
"log"
"net/http"
)
// Run runs the application and sets up the relevant routes
@uberswe
uberswe / gist:cc8d63c74aeab5a8172c7421faed8677
Created March 6, 2019 14:19
Group tournament game generation
Keep first position while rotating rest of array
[home teams]
1,2
3,4
[away teams]
1,3
4,2
@uberswe
uberswe / franzbrotchen
Created January 12, 2019 17:09
A simple franzbrotchen recipe to make 4-5 portions
2 x 7g yeast
125ml warm milk
250g plain flour
35g powdered sugar
35g soft butter
pinch salt
100g soft butter
100g powdered sugar
2 teaspoons cinnamon
@uberswe
uberswe / main.go
Created January 4, 2019 21:23
Post a simple Slack message with Go using a bot
package main
// Created by Markus Tenghamn @ GoPHP.io
//
// Post a simple Slack message using a bot
import (
"bytes"
"encoding/json"
"fmt"
@uberswe
uberswe / slack.php
Last active December 29, 2018 12:02
Post a simple slack message using a bot. See my blog post at https://gophp.io/developing-slack-bots-with-php-part-1 for a guide on how this works.
<?php
/**
* Created by Markus Tenghamn @ GoPHP.io
* Date: 2018-12-29
* Time: 12:47
*
* Post a simple slack message using a bot. You can run this in a console with 'php slack.php'
*
* See my blog post at https://gophp.io/developing-slack-bots-with-php-part-1 for a guide on how this works
*/
package main
// Scratch File for https://github.com/markustenghamn/bittrex-trading-bot
import "log"
func main() {
var1 := 0.000273
var2 := 0.0002733
var3 := 0.0002734
foreach ($tournament->groups as $group) {
$i = 0;
foreach ($group->games->all() as $game) {
$x = 0;
foreach ($game->teams as $team) {
foreach ($teams as $t) {
if ($t == $team->name) {
break;
}
}
@uberswe
uberswe / automile-trip-test.php
Created October 3, 2016 15:18
Automile trip test
/**
* Created by Markus Tenghamn
*/
ini_set('display_errors', 1);
error_reporting(E_ALL);
$client_id = "";
$client_secret = "";
$scopes = array('read', 'write');