Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nurettin Onur TUĞCU nurettin

🏠
Working from home
View GitHub Profile
@nurettin
nurettin / eca_fluid_sim.py
Last active Aug 16, 2020 — forked from nst/eca_fluid_sim.py
Fluid simulation from 1D cellular automata
View eca_fluid_sim.py
#!/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
View gist:0421fc97c62480cdac998f0577fa0968
buildscript {
...
}
...
android {
...
}
dependencies {
View gist:6364903
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 Dec 11, 2015 — forked from simonharrer/gist:1173228
awesome jax-ws Soap1.2 web service running on jruby 1.7.2
View awesome.rb
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 Nov 29, 2012 — forked from mloskot/boost_property_tree_json_array.cpp
Simple example of parsing and consuming JSON array with boost::property_tree
View boost_property_tree_json_array.cpp
#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 Nov 28, 2012
issues with queues in torquebox 2.1.2 and jruby-1.7.0
View torquebox.yml
---
# 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: "/"