Skip to content

Instantly share code, notes, and snippets.

@Limeliz
Limeliz / talisman.dm
Last active December 30, 2015 00:39
Would this code work? I'm trying to minimize the amount of copypasta in cult-files. For example here (line 91-127): https://github.com/tgstation/-tg-station/blob/master/code/game/gamemodes/cult/talisman.dm#L91
switch(href_list["rune"])
if("newtome", "emp", "conceal", "communicate", runestun", "armor", "teleport")
var/obj/item/weapon/paper/talisman/T = new /obj/item/weapon/paper/talisman(usr)
usr.put_in_hands(T)
T.imbue = href_list["rune"]
if(href_list["rune"] == "teleport")
T.imbue = "[pick("ire", "ego", "nahlizet", "certum", "veri", "jatkaa", "balaq", "mgar", "karazet", "geeri", "orkan", "allaq")]"
T.info = "[T.imbue]"
if("soulstone")
var/obj/item/device/soulstone/T = new /obj/item/device/soulstone(usr)
@Limeliz
Limeliz / sync.sh
Created November 20, 2015 00:52
Edited version of sync.sh for gdrive on MotionPieOS
#!/bin/bash
# sync.sh written by Claude Pageau for pi-timolo, his excellent video processing application.
# re-purposed and mangled by Malcolm Taylor for use with MotionPie
# edited by Emil Janesten to stop duplicate running instances and duplicate files and folders in Google Drive.
# folder where motion files are located
SYNC_DIR=output
# Get current folder where this script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
// The shape of the big saucer in Asteroids
beginShape(LINES);
// Saucer centered around body
vertex(-3, -12);
vertex(3, -12);
vertex(3, -12);
vertex(7, -6);
vertex(7, -6);
vertex(13, 0);
vertex(13, 0);
@Limeliz
Limeliz / webcam-widget.js
Created September 17, 2024 14:10 — forked from andreasRedeker/webcam-widget.js
An iPhone widget, that shows you a live webcam image from foto-webcam.eu on your homescreen
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: camera-retro;
// Script by Andreas Redeker <[email protected]>
let param = args.widgetParameter
let url
if (param != null && param.length > 0) {
url = param