Skip to content

Instantly share code, notes, and snippets.

View sbarisic's full-sized avatar
🕹️
Developing

Saša Barišić sbarisic

🕹️
Developing
  • Bjelovar, Croatia
View GitHub Profile
@sbarisic
sbarisic / GSharp.cs
Last active July 9, 2018 02:11
GSharp - GMod lua for C#
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace GSharp {
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate int LuaFunc(IntPtr L);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate int LuaWriter(IntPtr L, IntPtr Data, int Size, IntPtr P);

Keybase proof

I hereby claim:

  • I am cartman300 on github.
  • I am cartmanium (https://keybase.io/cartmanium) on keybase.
  • I have a public key whose fingerprint is 6724 7F09 5E60 FE6E CCB7 1CE9 B6C6 A348 881F 7CD4

To claim this, I am signing this object:

#include <Polycode.h>
#include <Polycode2DPhysics.h>
#include "Polyspace.h"
#include "PolycodeView.h"
#include "stdafx.h"
using namespace Polycode;
POLYCODE_CORE* core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
using System.Threading;
namespace BuzzeFizz {
interface IFizzeBuzzTitleInterface {
@sbarisic
sbarisic / Chat.cs
Created February 22, 2018 02:51
Lidgren example
static class Chat {
static NetPeerConfiguration Cfg;
static NetPeer Peer;
public static void Init(bool IsServer, int Port) {
if (Cfg == null) {
Cfg = new NetPeerConfiguration("LidgrenTest");
Cfg.EnableMessageType(NetIncomingMessageType.ConnectionApproval);
Cfg.Port = Port;
}

Keybase proof

I hereby claim:

  • I am sbarisic on github.
  • I am cartmanium (https://keybase.io/cartmanium) on keybase.
  • I have a public key whose fingerprint is 6724 7F09 5E60 FE6E CCB7 1CE9 B6C6 A348 881F 7CD4

To claim this, I am signing this object:

//#include "stuff.h"
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
// Zadatak 1.
void zadatak_1() {
for (int i = 1; printf("[%d%c]%c", (i - 1 >> 3) + 1, 'A' + (i - 1 & 7), ' ' - 22 * !(i & 7)) && i++ < '@';); // :)
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
namespace NetCalculator
{
class Program
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
namespace Bsm {
public class BsmObject {
public object Value;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
using System.IO;
using System.Runtime.Serialization;
using System.ComponentModel;