Skip to content

Instantly share code, notes, and snippets.

View aurodev's full-sized avatar

Aurodev aurodev

View GitHub Profile
@yssharma
yssharma / join-cluster.go
Last active November 15, 2021 02:11
Writing a basic distributed system in go lang - part 1 - confused coders
package main
/* Al useful imports */
import (
"flag"
"fmt"
"net"
"strings"
"strconv"
"time"
using UnityEngine;
using System;
using System.Collections.Generic;
using System.Collections;
public class CollectionsExample : MonoBehaviour
{
void Start()
{
@FEDE0D
FEDE0D / Godot IAP.gd
Created February 1, 2016 16:00
In app purchases in Godot Engine: Examples
# Intent: interface to the GodotPayments module (remember to add the java path in the project settings android>modules )
"Intent.gd"
extends Node
# Interface for the GodotPayments module
# To use extend this script and save the result on the Global singleton 'Data'
const STATIC_RESPONSE_NONE = 0
const STATIC_RESPONSE_ALL = 1
@gafferongames
gafferongames / gist:fae5c7ccca079cccd622
Created March 25, 2015 04:38
Delta Compression (Round 2)
/*
Delta Compression (Round 2) by Glenn Fiedler.
This source code is placed in the public domain.
http://gafferongames.com/2015/03/14/the-networked-physics-data-compression-challenge/
*/
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
@gafferongames
gafferongames / delta_compression.cpp
Last active October 19, 2025 16:17
Delta Compression
/*
Delta Compression by Glenn Fiedler.
This source code is placed in the public domain.
http://gafferongames.com/2015/03/14/the-networked-physics-data-compression-challenge/
*/
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
@darkdukey
darkdukey / MyWidget.cpp
Last active March 20, 2019 06:20
Cocos Studio Event Callback example
#include "MyWidget.h"
#include "ui/UIText.h"
USING_NS_CC;
using namespace std;
using namespace cocos2d::ui;
MyWidget::MyWidget(){}
Widget::ccWidgetTouchCallback MyWidget::onLocateTouchCallback(const string &callBackName)
{
import os, sys
markdown_name = sys.argv[1]
name = markdown_name.split(".")[0]
latex_name = name + ".tex"
os.system("pandoc -f markdown -t latex %s -o %s" % (markdown_name, latex_name))
with open(latex_name, "r") as latex_file:
latex_content = latex_file.read()
@trashhalo
trashhalo / build.gradle
Created August 13, 2011 23:55
Gradle task converts markdown to pdf
import com.petebevin.markdown.MarkdownProcessor
import org.xhtmlrenderer.pdf.ITextRenderer
import org.ccil.cowan.tagsoup.Parser
import org.apache.xalan.xsltc.trax.SAX2DOM
import org.xml.sax.InputSource
buildscript{
repositories {
mavenCentral()
mavenRepo urls: "http://scala-tools.org/repo-releases"
@romac
romac / Makefile
Created July 15, 2011 13:36
Markdown to PDF
TEMP_DIR:=$(shell mktemp -d -t /tmp)
MARKDOWN=perl Resources/Markdown.pl
WKHTMLTOPDF=/usr/local/bin/wkhtmltopdf
BUILD_DIR=Build
MD_OUTPUT=Documentation.md
HTML_OUTPUT=Documentation.html
PDF_OUTPUT=Documentation.pdf
COVER=__Couverture
@laclefyoshi
laclefyoshi / akka_remote_test.py
Created February 26, 2011 02:58
Jython and Remote Actor (Akka)
#!/usr/bin/jython
# -*- coding: utf-8 -*-
# Copyright : (c) SAEKI Yoshiyasu
# License : MIT-style license
# <http://www.opensource.org/licenses/mit-license.php>
# last updated: 2011/02/26
from akka.actor import Actors, UntypedActor