Skip to content

Instantly share code, notes, and snippets.

View mertyildiran's full-sized avatar
:octocat:
Doing some octopus work

M. Mert Yildiran mertyildiran

:octocat:
Doing some octopus work
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mertyildiran on github.
  • I am mertyildiran (https://keybase.io/mertyildiran) on keybase.
  • I have a public key whose fingerprint is 1C54 7251 5AB4 9869 4568 A6E7 A5D9 771F 6FA0 6869

To claim this, I am signing this object:

\documentclass{article}
\usepackage{circuitikz}
\usepackage[width=5000mm,left=12mm,paperwidth=5000mm,height=3000mm,top=12mm,paperheight=3000mm]{geometry}
\begin{document}
\begin{circuitikz}
\node[nand port] at (0,0) (nand1) {g1};
\node (o0) at (1,0) {$O_0$};
\draw (nand1.out) -- (o0);
\documentclass{article}
\usepackage[width=1000mm,left=12mm,paperwidth=1000mm,height=5000mm,top=12mm,paperheight=5000mm]{geometry}
\usepackage{circuitikz}
\begin{document}
% https://tex.stackexchange.com/a/32843/132144
\begin{circuitikz}
\node[nand port] at (0,-400) (nand1) {};
\node[nand port] at (-2,1) (nand2) {};
@mertyildiran
mertyildiran / code.html
Created April 27, 2017 21:42
dyon3334's code
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Stencil generator</title>
<link href="./vector/bootstrap.min.css" rel="stylesheet">
<link href="./vector/font-awesome.min.css" rel="stylesheet">
<link href="./vector/vectorcam.css" rel="stylesheet">
<script src="./vector/jquery.min.js"></script>
<script src="./vector/bootstrap.min.js"></script>
<!--<script src="./vector/vectorcam.js"></script>-->
<script type="text/javascript" src="./js/jquery.form.js"></script>
@mertyildiran
mertyildiran / word-class-parser.py
Created April 19, 2016 23:48
This script is able to classify words by reading a dictionary line by line.
#!/usr/bin/python
import sys
from subprocess import call
import nltk
from nltk import word_tokenize,sent_tokenize
from nltk.tag.hunpos import HunposTagger
def command(dict):
while(True):
@mertyildiran
mertyildiran / basic_nn.py
Created April 4, 2016 21:48
Basic Neural Network example with PyBrain
from pybrain.tools.shortcuts import buildNetwork
from pybrain.datasets import SupervisedDataSet
from pybrain.supervised.trainers import BackpropTrainer
net = buildNetwork(3, 1, 1, bias=False)
ds = SupervisedDataSet(3, 1)
ds.addSample((0, 0, 1), (1,))
ds.addSample((0, 1, 1), (1,))
ds.addSample((1, 0, 1), (1,))
@mertyildiran
mertyildiran / google_tts_api.py
Created March 14, 2016 17:18
Google TTS API example
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# pip install gTTS
# https://pypi.python.org/pypi/gTTS
from gtts import gTTS
tts = gTTS(text='Hello, how are you today?', lang='en')
tts.save("hello.mp3")
@mertyildiran
mertyildiran / google_speech_api.py
Created March 14, 2016 16:41
Google Speech API example
#!/usr/bin/env python3
# pip install SpeechRecognition
# https://pypi.python.org/pypi/SpeechRecognition/
# recognizer_instance.recognize_google(audio_data, key = None, language = "en-US", show_all = False)
# Performs speech recognition on audio_data (an AudioData instance), using the Google Speech Recognition API.
# The Google Speech Recognition API key is specified by key. If not specified, it uses a generic key that works out of the box.
# This should generally be used for personal or testing purposes only, as it may be revoked by Google at any time.
@mertyildiran
mertyildiran / average.ty
Created March 17, 2015 13:02
Toy Machine Homework
start get
ifzero print
add total
store total
count
goto start
printf load total
print
stop
count add counter
@mertyildiran
mertyildiran / ismail-1.c
Created March 10, 2015 17:44
Ismail Gist - 1
#include <stdio.h>
#include <math.h>
int main(void) {
int result, n;
n = 0;
while (++n < 17) {
printf("%d\t", n);