Skip to content

Instantly share code, notes, and snippets.

View isstaif's full-sized avatar

al-Amjad Tawfiq Isstaif isstaif

View GitHub Profile
@isstaif
isstaif / generate_rdf.rb
Created June 26, 2012 12:51
Simple Ruby RDF generator
require 'csv'
class Observation
attr :id
attr :province
attr :indicator_name
attr :indicator_value
attr :year
attr :dataset
@isstaif
isstaif / health-atlas-sample.html
Created June 24, 2012 09:10
A sample of a health atlas map demonstrating the number of hospitals in Syrian provinces using Google Visualization API
<html>
<head>
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('visualization', '1', {'packages': ['geochart']});
google.setOnLoadCallback(drawMarkersMap);
function drawMarkersMap() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'City');
@isstaif
isstaif / gist:2730113
Created May 19, 2012 08:46
Prolog Four Winns game
:- dynamic state/3.
:- dynamic top/2.
top(0,0).
play(Color, Col) :-
top(Col, Row), assert(state(Col, Row, Color)),
Next is Row + 1, retract(top(Col, Row)), assert(top(Col, Next)).