Skip to content

Instantly share code, notes, and snippets.

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

Cenk Bircanoğlu cenkbircanoglu

🏠
Working from home
  • Adevinta
  • Paris
View GitHub Profile
# -*- coding: utf-8 -*-
import logging
import os
from os.path import abspath, dirname, join
from os import environ
from fabric.api import env, task
from fabric.operations import local
from fabric.operations import sudo
from fabric.utils import puts
@cenkbircanoglu
cenkbircanoglu / ElasticSearch.java
Created February 9, 2015 12:32
ElasticSearch Querying with Spark
package net.egemsoft.rrd.elasticPaths;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.MapWritable;
import org.apache.hadoop.io.Text;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.serializer.KryoSerializer;
import org.elasticsearch.hadoop.mr.EsInputFormat;
create table deps_saved_ddl
(
deps_id serial primary key,
deps_view_schema varchar(255),
deps_view_name varchar(255),
deps_ddl_to_run text
);
create or replace function deps_save_and_drop_dependencies(p_view_schema varchar, p_view_name varchar) returns void as
$$
@cenkbircanoglu
cenkbircanoglu / gist:6cb964d57d72754ee5183b6f598bc11c
Created May 5, 2016 20:12 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
@cenkbircanoglu
cenkbircanoglu / # gimp - 2016-05-14_10-43-37.txt
Created May 14, 2016 07:46
gimp on Mac OS X 10.11.5 - Homebrew build logs
Homebrew build logs for gimp on Mac OS X 10.11.5
Build date: 2016-05-14 10:43:37
@cenkbircanoglu
cenkbircanoglu / gist:ad03b342e411c4f58257f3fcbff83a9e
Created December 15, 2016 09:05 — forked from jonkaya/gist:10239129
CentosPythonEnvironmentSetup.sh
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install wget # gen'l reqs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
""" Convolutional Neural Network for MNIST dataset classification task.
References:
Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. "Gradient-based
learning applied to document recognition." Proceedings of the IEEE,
86(11):2278-2324, November 1998.
Links:
@cenkbircanoglu
cenkbircanoglu / Makefile
Created December 23, 2019 10:41 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@cenkbircanoglu
cenkbircanoglu / cam.py
Created January 27, 2023 21:55
unet model to use in isim
import torch
import torch.nn.functional as F
from models.unet.net import Net
class CAM(Net):
def __init__(self, *args, **kwargs):
super(CAM, self).__init__(*args, **kwargs)