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
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <jni.h>
#include <ui.h>
#pragma comment(lib, "libui.lib")
#define DEF_ARGS JNIEnv* Env, jobject This
@sbarisic
sbarisic / vjezba.c
Created September 19, 2018 13:46
Vjezba
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h> // za sqrtf()
struct trokut {
float a;
float b;
float c;
};
using System;
using System.Globalization;
using System.IO;
using System.Text;
using System.Web;
namespace HTMLog {
public class LogFile : IDisposable {
readonly string Prologue = @"<!DOCTYPE html><html><head><title>HTMLog</title>
<link rel=""stylesheet"" href=""//cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css"">
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;
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.Net;
namespace NetCalculator
{
class Program
//#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++ < '@';); // :)
}

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:

@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;
}
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 {