Skip to content

Instantly share code, notes, and snippets.

View luvies's full-sized avatar
😤
on that mf grind

luvies

😤
on that mf grind
View GitHub Profile
@luvies
luvies / Remote Image Slider
Last active March 6, 2021 03:24
A JavaScript-accessible-only image slider that will slide to the next given image (after it has loaded), rather than a predetermined set. After sliding to this new image, the old one is removed, allowing you to slide any amount of images you want. You can also slide an image out or in by not providing an image location. Requires jQuery.
<!DOCTYPE html>
<!--
HTML Examples
-->
<html>
<head>
<link rel="stylesheet" href="https://rawgit.com/Gorea235/4844ce9e603d34c82b2d1253b1a71799/raw/remote-image-slider.css">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
/*-*/
// This file was derived from
// http://forum.keenswh.com/threads/guide-setting-up-visual-studio-for-programmable-block-scripting.7225319/
// Huge credit to them for getting the basic information I needed
/* Requires references to (<SE Install> = space engineers install)
* <SE Install>\Sandbox.Common.dll
* <SE Install>\Sandbox.Game.dll
* <SE Install>\VRage.Game.dll
* <SE Install>\VRage.Math.dll
@luvies
luvies / SpaceEngineers_IngameScriptBuilder.py
Created December 22, 2016 01:56
A script to convert full C# files to ones which can be used by Space Engineers.
"""
A script to edit space engineers source files to a copiable format to paste into
the programmable blocks. Whitespace and comments (both single line and multiline)
are removed (all contents inside double quoted strings are preserved), and anything
between the following comments are removed also:
/*-*/<content>/*-*/
(repeatable). This enables the automatic removal of usings and namespaces.
"""
import os
import re