Skip to content

Instantly share code, notes, and snippets.

@xZise
xZise / gist:1086462
Created July 16, 2011 15:39
Dynmap configuration file
# All paths in this configuration file are relative to Dynmap's data-folder: minecraft_server/plugins/dynmap/
# NOTE: this is a sample of the standard configuration.txt, with HDMap renders substituted
components:
- class: org.dynmap.ClientConfigurationComponent
- class: org.dynmap.InternalClientUpdateComponent
sendhealth: true
sendposition: true
allowwebchat: true
@xZise
xZise / configuration.txt
Created August 7, 2011 14:27
Dynmap configuration files
# All paths in this configuration file are relative to Dynmap's data-folder: minecraft_server/plugins/dynmap/
# All map templates are defined in the templates directory
# By default, the 'classic' FlatMap and KzedMap templates are used, which can be found in normal.txt, nether.txt, and skylands.txt
#
# To use the HDMap low-res map templates as world defaults (normal-lowres, nether-lowres and skylands-lowres), uncomment the following line
# The definitions of these templates are in normal-lowres.txt, nether-lowres.txt, and skylands-lowres.txt
#deftemplatesuffix: lowres
# To use the HDMap hi-res map templates (these can take a VERY long time for initial fullrender), comment the following line
# The definitions of these templates are in normal-hires.txt, nether-hires.txt, and skylands-hires.txt
using System.Reflection;
using UnityModManagerNet;
using Harmony12;
using UnityEngine;
using System.Collections.Generic;
namespace FanService
{
public class FanServiceMod
{
@xZise
xZise / main.c
Last active November 30, 2016 21:18
christmas light
#include <stdint.h>
#include <stdlib.h>
#include <avr/io.h>
#include <avr/sleep.h>
#include <avr/interrupt.h>
#include "light_ws2812.h"
#define FPS (33)
#define NUM_OF_LEDS (10)
@xZise
xZise / partmove.py
Last active January 4, 2016 09:29
The bot's programming
#!/usr/bin/python
# -*- coding: utf-8 -*-
import pywikibot
import re
from pywikibot import textlib, page
import sys
parent_map = {
'Adapter': 'Structural',
'AirIntake': 'Utility',
#!/bin/bash
if [ -z "$1" ]; then
echo "Parameter missing"
exit
fi
atmo=`echo "-5000*l(10^-6)" | bc -l`
velocity="42" #dummy value
echo "Atmospheric height: $atmo m"
echo ""
echo "" > vtdata
G=6.674*10**-11
M=5.2915793*10**22
R=600000
plot sqrt((250*G*M)/((R+x)**2*1.2230948554874*exp(-x/5000)*0.2)) title 'Terminal' with lines
@xZise
xZise / gist:6883707
Created October 8, 2013 12:11
test script for testing if/when issues in kOS 0.83
until (false) {
set x to eta:apoapsis.
print x.
if eta:apoapsis > 10 { print "if.". }.
when eta:apoapsis > 10 then print "when.".
if x > 10 { print "ifx.".}.
when x > 10 then print "whenx.".
wait 5.
}.
@xZise
xZise / aspects.py
Last active October 14, 2015 19:58
Testing green
# -*- coding: utf-8 -*-
"""
Test aspects to allow fine grained control over what tests are executed.
Several parts of the test infrastructure are implemented as mixins,
such as API result caching and excessive test durations. An unused
mixin to show cache usage is included.
"""
#
# (C) Pywikibot team, 2014-2015
@xZise
xZise / gist:4105652
Created November 18, 2012 14:52
LazyBones 1.0.1.0 complete log
This file has been truncated, but you can view the full file.
3:48:46 PM WARNING: TV-Browser was developed for Sun Java and may not run correctly with your Java implementation.
3:48:46 PM INFO: Using timezone Central European Time
3:48:46 PM INFO: Deleting expired TV listings...
3:48:46 PM INFO: Loaded plugin proxy /home/xzise/programs/TV Browser (test)/settings/3.2/GrowlPlugin.jar.proxy
3:48:46 PM INFO: Loaded plugin proxy /home/xzise/programs/TV Browser (test)/settings/3.2/I18NPlugin.jar.proxy