Skip to content

Instantly share code, notes, and snippets.

View nurettin's full-sized avatar
🏠
Working from home

Nurettin Onur TUĞCU nurettin

🏠
Working from home
View GitHub Profile
@nurettin
nurettin / eca_fluid_sim.py
Last active August 16, 2020 16:17 — forked from nst/eca_fluid_sim.py
Fluid simulation from 1D cellular automata
#!/usr/bin/env python
# Idea: YankeeMinstrel
# Python code: torstengrust
# Animated GIF: Nicolas Seriot, 2017-07-01
# https://www.reddit.com/r/cellular_automata/comments/6jhdfw/i_used_1dimensional_cellular_automata_to_make_a/
from PIL import Image, ImageDraw
import os
buildscript {
...
}
...
android {
...
}
dependencies {
include Java
require 'blpapi3.jar'
opts = com.bloomberglp.blpapi.SessionOptions.new
opts.server_host = 'localhost'
opts.server_port = 8194
session = com.bloomberglp.blpapi.Session.new opts
service = '//blp/refdata'
throw "Can't start Bloomberg" unless session.start && session.open_service(service)
@nurettin
nurettin / awesome.rb
Last active December 11, 2015 05:59 — forked from simonharrer/gist:1173228
awesome jax-ws Soap1.2 web service running on jruby 1.7.2
require 'java'
require 'jruby/core_ext'
class MyService
def hello(who)
"Hello #{who}"
end
end
MyService.add_class_annotations(
@nurettin
nurettin / boost_property_tree_json_array.cpp
Created November 29, 2012 12:26 — forked from mloskot/boost_property_tree_json_array.cpp
Simple example of parsing and consuming JSON array with boost::property_tree
#ifdef _MSC_VER
#include <boost/config/compiler/visualc.hpp>
#endif
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/foreach.hpp>
#include <cassert>
#include <exception>
#include <iostream>
#include <sstream>
@nurettin
nurettin / torquebox.yml
Created November 28, 2012 08:43
issues with queues in torquebox 2.1.2 and jruby-1.7.0
---
# This is the TorqueBox configuration file. Refer to the TorqueBox
# documentation at http://torquebox.org/documentation/current/
# for all configuration options.
ruby:
version: 1.9
web:
context: "/"