This file contains 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
# rc_json2cfg.py v1 | |
# WTFPL v2+ (It's simple enough that you could probably write it yourself.) | |
# converts a json config dump from rclone, into the ini format used to store config data | |
from json import load as json_load | |
try: | |
with open("rclonecfg.json", 'r') as f: | |
o=json_load(f) | |
except FileNotFoundError: | |
print("rclonecfg.json not found, edit file and try again.") |
This file contains 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
# a bunch of python operators as functions; and then some. | |
def add(x,y): | |
return x+y | |
def sub(x,y): | |
return x-y | |
def mul(x,y): | |
return x*y | |
def div(x,y): | |
return x/y | |
def pow(x,y): |
This file contains 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
#!/usr/bin/awk -f | |
# gp.awk: generates a svg rendering of a textual pallete list | |
BEGIN { | |
if(!h) h=1080 | |
if(!w) w=1920 | |
c=0 | |
print "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" | |
printf("<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"%d\" width=\"%d\">\n", h, w) | |
} | |
{ |
This file contains 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
Object.defineProperty(Array.prototype, 'last', {get:function(){return this[this.length-1];}}) | |
Object.defineProperty(Array.prototype, 'first', {get:function(){return this[0];}}) |
This file contains 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
======= [% page.basename %] ======= | |
[% gettext("Created") %] [% strftime("%A %d %B %Y") %] | |
This file contains 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
(import [sys [argv]]) | |
(import [sys.stdout [write :as eprint]]) | |
(import [os.path [basename]]) | |
(try | |
(import toml) | |
(except ImportError | |
(eprint "looks like toml wasn't found"))) | |
(setv map {:InternetShortcut :URL (get 1 argv)}) |
This file contains 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
#define true 1 | |
#define false 0 | |
#define eprintf fprintf(sterr, __VA_ARGS__) |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Fungus; | |
public class FungusTrigger : MonoBehaviour { | |
//public Flowchart fc; | |
public bool ready = false; | |
public string ToCall; | |
private bool inProxim; |
This file contains 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
.marquee { | |
width: 450px; | |
margin: 0 auto; | |
white-space: nowrap; | |
overflow: hidden; | |
box-sizing: border-box; | |
} | |
.marquee span { | |
display: inline-block; |
This file contains 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
# Install a bunch of dependencies (Might not be everything, sorry!) | |
sudo apt-get install libsdl1.2debian:i386 libsdl-image1.2:i386\ | |
libsdl-ttf2.0-0:i386 libglu1-mesa:i386 libgtk2.0-0:i386\ | |
libopenal1:i386 libjpeg62:i386 git tar unzip bzip2 | |
# Fetch Dwarf fortress itself (See http://www.bay12games.com/dwarves/ ) | |
mkdir dwarf-fortress && cd dwarf-fortress | |
wget -o - http://www.bay12games.com/dwarves/df_42_06_linux.tar.bz2 | tar xvjf - | |
# Install Phoebus graphics pack (See http://www.bay12forums.com/smf/index.php?topic=137096.0 ) |
NewerOlder