Skip to content

Instantly share code, notes, and snippets.

@dyln
dyln / Program.cs
Created November 1, 2017 15:55
my solution to the question asked in the interview
/********************* Coded by: Caner 'dyln' Eren **************************/
using System;
using System.Collections;
using System.Collections.Generic;
namespace hwapp{
class Program{
static void Main(string[] args){
@dyln
dyln / geoExtractNSentiment.py
Created December 22, 2016 21:54
support for my project. takes the raw twitter json dump, gives geoloc., text, time and sentiment analysis of text.
import json
import geojson
import csv
from textblob import TextBlob
#full json dosyası olan tweet datasını geolocation text ve saate çeviren süper bi kod
with open('tweets.json', 'r') as f:
geo_data = {
"type": "FeatureCollection",
"features": []
@dyln
dyln / cmpe251twitter.py
Last active December 22, 2016 21:55
final project for the course
import tweepy
import sys
import jsonpickle
import geojson
import os
# with AppAuthanticator i can gather more tweets :)
auth = tweepy.AppAuthHandler("4R3sDtya1Kt9O38tcoJI1Q", "o9nvU3JoUZisDkaH6eSXARnMiyE5TXN98ib2jDb6N3A")
api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True)
// Auduino, the Lo-Fi granular synthesiser
//
// by Peter Knight, Tinker.it http://tinker.it
//
// Help: http://code.google.com/p/tinkerit/wiki/Auduino
// More help: http://groups.google.com/group/auduino
//
// Analog in 0: Grain 1 pitch
// Analog in 1: Grain 2 decay
// Analog in 2: Grain 1 decay
PShape flower;
PImage moon,tribe,tribe2;
PFont textCubic;
void setup(){
int sizeTribe=200;
textCubic= loadFont("Cubic-48.vlw");
textFont(textCubic,48);
size(800,600);
@dyln
dyln / Omniclock.pde
Created March 24, 2016 19:45 — forked from exnihilodub/Omniclock.pde
My own take on the "timer" that's been shown in DBC class.
//author:Baran Elitez
int millisoff;
//PImage bg;
color step1 = color(0,0,0);
color step2 = color(112,219,255);
@dyln
dyln / font.pde
Created March 11, 2016 13:38
font decomp
PFont yazi;
void setup(){
size(800,600);
yazi = loadFont("GillSans-48.vlw");
}
void draw(){
background(255);
textFont(yazi, 48);
@dyln
dyln / shape.pde
Created March 11, 2016 13:37
shape decomp
PShape sekil;
void setup(){
size(800,600);
sekil= loadShape("shape.svg");
noLoop();
draw();
}
void draw(){
@dyln
dyln / foto.pde
Created March 11, 2016 13:37
image decomp
PImage portre;
void setup(){
size(800,600);
portre = loadImage("keko.jpg");
colorMode(HSB,100);
}
void draw(){
background(0);
@dyln
dyln / arrowsnshit.pde
Created February 26, 2016 14:07
vcd293 intro
void setup(){
size(800,600);
background(255);
}
void draw(){
noStroke();
fill(0);
//triangle(30, 80, 30, 20, 86, 50);
scale(1.115);