Skip to content

Instantly share code, notes, and snippets.

Working from home

Nurettin Onur TUĞCU nurettin

Working from home
Block or report user

Report or block nurettin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import asyncio
class Prompt:
def __init__(self, loop=None):
self.loop = loop or asyncio.get_event_loop()
self.q = asyncio.Queue(loop=self.loop)
self.loop.add_reader(sys.stdin, self.got_input)
def got_input(self):
asyncio.ensure_future(self.q.put(sys.stdin.readline()), loop=self.loop)
View raspivid service
/usr/bin/raspivid --brightness 65 --saturation 25 -ex auto -n -ih -t 0 -rot 75 -w 1480 -h 1200 -fps 15 -b 1000000 -o - | /usr/bin/ncat -lkv4 5001
nurettin / art.sql
Created May 9, 2018
group rows by pilot row, show line numbers and line count
View art.sql
, c
, g
, gi
, sum(1) over (partition by g) gn
from (
, c
nurettin / Gemfile
Last active Feb 10, 2018
simple solution to einstein's riddle (also known as zebra puzzle)
View Gemfile
source ""
gem "csp-solver"
gem "terminal-table"
View SqlWorkbenchExplain.pas
program SQLWorkbenchExplain;
SysUtils, Classes, JclSysUtils, IniFiles;
TConfig = record
LogFile: string;
View gist:fd39c5cbea4141698837b8f78d5be1bb
### Keybase proof
I hereby claim:
* I am nurettin on github.
* I am nurettin ( on keybase.
* I have a public key whose fingerprint is 7687 787E A662 029F 2DD6 94CF 9B86 DFB2 25ED E4CB
To claim this, I am signing this object:
View gist:0421fc97c62480cdac998f0577fa0968
buildscript {
android {
dependencies {
nurettin / fann.cpp
Created Jan 16, 2016
fast artificial neural network library
View fann.cpp
#include <fann.h>
#include <fann_cpp.h>
void prepare_data(std::string const &name){
std::ofstream file(name+ ".data", std::ios::trunc);
file<< "4 2 1\n"
<< "0 0\n0\n"
<< "0 1\n1\n"
<< "1 0\n1\n"
<< "1 1\n0\n";
nurettin / hst.rb
Last active Sep 13, 2015
metatrader 4 hst reader
View hst.rb
class Hst
attr_reader :version
attr_reader :copyright
attr_reader :symbol
attr_reader :period
attr_reader :digits
attr_reader :timesign
attr_reader :lastsync
def initialize(file)
nurettin / main.cpp
Created Aug 9, 2015
ode gravity lost
View main.cpp
#include <iostream>
#include <ode/ode.h>
#include <SDL.h>
#include <SDL2_gfxPrimitives.h>
dWorldID earth;
dJointGroupID contact_joint_group;
std::size_t const max_contacts = 10;
dContact contact[max_contacts];
You can’t perform that action at this time.