Skip to content

Instantly share code, notes, and snippets.

View kelindar's full-sized avatar
🚀
Building Platforms in Middle East!

Roman Atachiants kelindar

🚀
Building Platforms in Middle East!
View GitHub Profile
@kelindar
kelindar / _.md
Created April 18, 2013 17:54
Tributary inlet
@kelindar
kelindar / _.md
Created April 18, 2013 18:37
Tributary inlet
@kelindar
kelindar / _.md
Created April 18, 2013 18:48
Tributary inlet
@kelindar
kelindar / _.md
Created April 18, 2013 18:55
Tributary inlet
@kelindar
kelindar / _.md
Created April 19, 2013 00:08
Tributary inlet
@kelindar
kelindar / gist:f73fd0798ae810b5a7f9
Created December 19, 2014 13:47
Spike Engine: RESTful API Example
[Get("/random/{min}/{max}")]
public static int Random(int min, int max)
{
return new Random().Next(min, max);
}
[Post("/hello")]
public object Hello(string name)
{
return new
@kelindar
kelindar / gist:41d404f4f2e44e5fed08
Created December 19, 2014 14:01
Spike Engine: CORS Configuration
Service.Cors.AllowMethods
= "POST,GET,PUT,DELETE,OPTIONS";
Service.Cors.AllowHeaders
= "X-Requested-With,Content-Type";
Service.Cors.AllowOrigin = "*";
Service.Cors.AllowCredentials = true;
Service.Cors.Enabled = true;
@kelindar
kelindar / CoreOS ECS VPC
Last active January 18, 2016 12:15
CoreOS Cloud Formation with VPC and Amazon EC2 Container Service (ECS)
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Misakai CoreOS Cluster for EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/",
"Mappings" : {
"RegionMap" : {
"eu-central-1" : {
"AMI" : "ami-3a093a27"
},
@kelindar
kelindar / reputation_a.cpp
Last active August 29, 2015 14:17
Data Locality: Reputation Example
// Program A: some account with associated reputation
struct Account {
long id;
char[64] name;
char[300] address;
float reputation;
}
// we want to update and add some reputation every day
void increaseReputation(){
@kelindar
kelindar / particle_a.cpp
Created March 18, 2015 17:47
Data Locality: Particle System
struct Particle {
float x;
float y;
float z;
float w;
float vx;
float vy;
float vz;
float vw;
}