This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For the C# project of bladerunners! | |
bin | |
obj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'socket' | |
# This is the main registry. | |
# When an individual node is started, it first looks | |
# for the registry and provides its information so that | |
# other nodes can query this entity for the location of | |
# said nodes. | |
class Registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author::Simon Symeonidis | |
# This is a funky way to produce xml from a very simple object | |
# with very simple instance variables. I was particularly amused | |
# with the 'send' function since many times in OOP, we say that | |
# the objects are sending messages to each other; however in this | |
# case it's quite literal. | |
# | |
# If for some reason you want to use this dumb script to check it | |
# out, it's very simple. Just create a class Person with instance | |
# variables 'name', and 'surname' and include the module in the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sqlite3.h> | |
static int | |
print_table_variables | |
( | |
void * NotUsed | |
, int rows_affected | |
, char ** field_value | |
, char ** column_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
test comments | |
*/ | |
fn main() | |
{ | |
io::println("HELLO WORLD"); | |
let x: int = add_numbers(12,21); | |
io::println(fmt!("Add numbers function : %d" , x)); | |
io::println(fmt!("Cound and add numbers : %?" , count_and_add_numbers(10))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Proc demonstration | |
# | |
my_code1 = Proc.new do | |
puts 1 | |
sleep 0.5 | |
puts 2 | |
sleep 0.5 | |
puts 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'Qt4' | |
require 'domain/commands/create_entity_command.rb' | |
require 'domain/entity_mapper.rb' | |
# Author :: Simon Symeonidis | |
# The entity widget for the game editor. This is loaded and accessed as a tab | |
# along with all the other uis. | |
# | |
# TODO: this should have a list at a side of current entities, and the ui used | |
# to either edit the selected entity, or save a new one. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(lists1). | |
-author(psyomn). | |
-export([mymin/1,mymax/1,min_max/1,swedish_date/0]). | |
mymin([H|T]) -> mymin(T,H). | |
mymin([],Acc) -> Acc; | |
mymin([H|T],Acc) when H < Acc -> mymin(T,H); | |
mymin([_|T],Acc) -> mymin(T,Acc). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sqlite3' | |
require 'singleton' | |
class DbRegistry | |
include Singleton | |
def initialize | |
@handle = SQLite3::Database.new("db.db") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% This is a very stripped down example of what a latex document looks like. | |
\documentclass[twoside]{article} | |
\title{Sample document} | |
\author{Anne Ominous} | |
\date{\today} | |
\usepackage[margin=0.8in]{geometry} |
OlderNewer