Skip to content

Instantly share code, notes, and snippets.

View Cranc's full-sized avatar

Dennis Lindner Cranc

View GitHub Profile
<?xml version="1.0"?>
<storage>
<version>1</version>
<image>
<name>stellarisheader</name>
<extension>jpg</extension>
<path>https://www.wasd.pt/wp-content/uploads/2016/05/</path>
<version>1</version>
</image>
<video>
public class GameObjectManager : MonoBehaviour, ISerializationCallbackReceiver
{
private static GameObjectManager _instance;
public static GameObjectManager Instance { get { return _instance; } }
public List<GameObjectList> gameObjects; //public list so it can be accessed in inspector
private Dictionary<GameObject, Texture2D> gameObjectDictionary; //pricate list for use
namespace Spline_Engine.Splines
{
class NURBS : Interfaces.SplineInterface
{
//step size for drawing
private double increment = 0.01;
private int degree = 1;
public void Draw(Canvas panel, List<Vector3> points, Guid uid)
{
namespace IngameScript
{
partial class Program : MyGridProgram
{
private static string INGOTS = "ingots";
private static string COMPONENTS = "components";
private static string INFORMATION_PANEL = "storage_information";
private static string TRASH_REMOVEL = "Trash";
private static string typeId_Ingots = "MyObjectBuilder_Ingot";
using Sandbox.Game.EntityComponents;
using Sandbox.ModAPI.Ingame;
using Sandbox.ModAPI.Interfaces;
using SpaceEngineers.Game.ModAPI.Ingame;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System;
using VRage.Collections;
short * sendrequest_1_svc(param *para, struct svc_req *req){
char* req_addr = inet_ntoa(req->rq_xprt->xp_raddr.sin_addr);
l_sub* ptr = sub_list;
while(ptr != NULL){
if(strcmp(ptr.ip,req_addr)){
if(check_session(ptr,para)!=1){
response = INVALID_SESSION;
return &response;
}
#include <stdio.h>
#include <stdlib.h>
#include <rpc/rpc.h>
#include "pub_sub.h"
int main()
{
CLIENT *cl;
char topic[TOPLEN];
@b0time = 120
@b0cost = 30
@b0effect = 1
@b0upkeep = 0.5
@b1time = 210
@b1cost = 60
@b1effect = 2
@b1upkeep = 1
@Cranc
Cranc / myls.c
Last active December 18, 2017 20:15
/*
* File: myls.h
* Author: dennis
*
* Created on December 16, 2017, 3:44 PM
*/
#ifndef MYLS_H
#define MYLS_H
@Cranc
Cranc / mythread.c
Last active December 13, 2017 14:04
/*
* File: mythread.h
* Author: dennis
*
* Created on November 29, 2017, 2:18 PM
*/
#ifndef MYTHREAD_H
#define MYTHREAD_H