This file contains hidden or 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 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 |
This file contains hidden or 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
/*-*/ | |
// 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 |
This file contains hidden or 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
<!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 contains hidden or 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/env python3 | |
import os | |
import re | |
def get_items(dir): | |
dirs = [] | |
files = [] | |
with os.scandir(dir) as scan: | |
for entry in scan: |
This file contains hidden or 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/env python3 | |
import multiprocessing.connection # used to communicate between processes | |
# might re-work this communication to use either a multi-language socket | |
# lib or write my own | |
import socket | |
import sys | |
import traceback | |
# communication messages |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Sandbox.Common; | |
using Sandbox.Common.ObjectBuilders; | |
using Sandbox.Definitions; | |
using Sandbox.Engine; |
This file contains hidden or 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/env python3 | |
from random import randint, shuffle | |
TIMES = 10_000_000 | |
def get_dict(): | |
return { | |
"wins": 0, | |
"losses": 0 |
This file contains hidden or 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/env dotnet script -c Release | |
public string RemoteTest() => "Hello world"; |
This file contains hidden or 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
/** | |
* Provides various helpers for running a Jakefile | |
* Source: https://devspri.me/jake-helpers | |
* @module jake-helpers | |
*/ | |
const { promisify } = require('util'); | |
// create promise version of exec | |
jake.exec.promise = promisify(jake.exec); |
This file contains hidden or 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/env node | |
'use strict'; | |
/* | |
A Node.js implementation of | |
https://github.com/connorworley/dotfiles/blob/master/.bin/brew-autoremove | |
*/ | |
const child = require('child_process'); | |
const util = require('util'); |
OlderNewer