Skip to content

Instantly share code, notes, and snippets.

View ahmetkizilay's full-sized avatar
🌎
typing...

Ahmet Kizilay ahmetkizilay

🌎
typing...
View GitHub Profile
@ahmetkizilay
ahmetkizilay / newgraph.json
Last active August 31, 2022 02:22
sample.json
{
"graph":{
"id":"80ba40b4-bccc-42e0-b74f-06a8dc1642b6",
"name":"asdasd",
"subtitle":null,
"description":null,
"updated_at":"2016-03-17T17:43:26.948+02:00",
"created_at":"2016-03-17T15:02:34.000+00:00",
"status":0,
"image":{
LOCAL_IP="$(ifconfig eth0 | grep "inet " | awk -F'[: ]+' '{ print $4 }')" \
SELENIUM_URL=http://firefox-browser:4444 \
RAILS_ENV=test \
rspec spec/integrations/login_spec.rb
@ahmetkizilay
ahmetkizilay / five.sh
Last active February 2, 2016 11:17
docker neo4j extension post scripts
#! /bin/bash
while [ $(curl -s -o /dev/null -w "%{http_code}" elasticsearch:9200) -ne 200 ]; do
echo -n "."
sleep 2
done
echo ""
cat "elasticsearch.host_name=http://elasticsearch:9200" >> /var/lib/neo4j/config/neo4j.properties
cat "ealsticsearch.index_names=...." >> /var/lib/neo4j/config/neo4j.properties
@ahmetkizilay
ahmetkizilay / oreilly_books.adoc
Created October 27, 2015 14:04 — forked from jexp/oreilly_books.adoc
O'Reilly Books GraphGist

O’Reilly Books Graph

Josh Simmons made this book dataset available for our OpenData-Hackathon at OSCON Amsterdam, Tue Oct 27 18:00.

It contains O’Reilly books since 2014 with ISBN, title and publication date. Let’s load them into a graph model.

Setup

NODE TYPE NODE NAME EDGE TYPE NODE TYPE NODE NAME Weight donem baslama bitis
Milletvekili Ali DEMİRÇALI 6758 SECILDIGI_BOLGE Sehir ADANA 1 24 28/06/2011 23/06/2015
Milletvekili Ali DEMİRÇALI 6758 MENSUBU Siyasi Parti CHP 1 24 28/06/2011 23/06/2015
Milletvekili Ali DEMİRÇALI 6758 HIZMET_DONEMI Donem 24. Donem 1 24 28/06/2011 23/06/2015
Milletvekili Ali HALAMAN 5857 SECILDIGI_BOLGE Sehir ADANA 1 24 28/06/2011 23/06/2015
Milletvekili Ali HALAMAN 5857 MENSUBU Siyasi Parti MHP 1 24 28/06/2011 23/06/2015
Milletvekili Ali HALAMAN 5857 HIZMET_DONEMI Donem 24. Donem 1 24 28/06/2011 23/06/2015
Milletvekili Ali KÜÇÜKAYDIN 6349 SECILDIGI_BOLGE Sehir ADANA 1 24 28/06/2011 23/06/2015
Milletvekili Ali KÜÇÜKAYDIN 6349 MENSUBU Siyasi Parti AK Parti 1 24 28/06/2011 23/06/2015
Milletvekili Ali KÜÇÜKAYDIN 6349 HIZMET_DONEMI Donem 24. Donem 1 24 28/06/2011 23/06/2015
@ahmetkizilay
ahmetkizilay / auth-none.sh
Last active September 11, 2015 23:23
neo4j docker code
docker run -i -t -d -e NEO4J_AUTH=none --name neo4j --cap-add=SYS_RESOURCE -p 7474:7474 tpires/neo4j
@ahmetkizilay
ahmetkizilay / handlebars.rake
Created May 19, 2015 17:03
compiling handlebars with rake
task :handlebars => :environment do
puts "Compiling Handlebars templates"
files = Rake::FileList["app/assets/javascripts/templates/**/*.hbs"]
compiled_js = ""
files.each do |file|
openFile = File.open(file)
pathName = openFile.to_path.sub("app/assets/javascripts/templates/", "")[0...-4]
content = openFile.read
compiled = HandlebarsAssets::Handlebars.precompile(content, HandlebarsAssets::Config.options)
compiled_js += "(function() {\nthis.HandlebarsTemplates || (this.HandlebarsTemplates = {});\nthis.HandlebarsTemplates[\"" + pathName + "\"] = Handlebars.template(" + compiled + ");\n}).call(this);\n\n\n"
  1. General Background and Overview
<html>
<head>
<style type="text/css">
body
{
margin: 0;
padding: 0;
}
.iframe1
@ahmetkizilay
ahmetkizilay / keybase.md
Created January 17, 2015 00:07
keybase.md

Keybase proof

I hereby claim:

  • I am artsince on github.
  • I am ahmetkizilay (https://keybase.io/ahmetkizilay) on keybase.
  • I have a public key whose fingerprint is EEDF 31EF A653 229F 3904 F8B1 F57A 8780 F4B4 F4F8

To claim this, I am signing this object: