Skip to content

Instantly share code, notes, and snippets.

View zafercavdar's full-sized avatar
💻
coding

Zafer Cavdar zafercavdar

💻
coding
View GitHub Profile
//Zafer Çavdar
#include<stdlib.h>
#include<stdio.h>
int main() {
printf("Give me N: ");
int N;
int i, j,k;
scanf("%d",&N);
int maxNum = 0;
@zafercavdar
zafercavdar / pokefinder.js
Last active February 15, 2023 12:58
Pokemon-Vortex Pokemon Finder
// ==UserScript==
// @name VortexScript
// @namespace http://localhost
// @description auto pokemon finder
// @include http://zeta.pokemon-vortex.com/map.php?map=*
// @include http://theta.pokemon-vortex.com/map.php?map=*
// @require http://code.jquery.com/jquery-2.1.4.js
// @version 1.0
// @grant none
// ==/UserScript==
// ==UserScript==
// @name VortexScript
// @namespace http://localhost
// @description auto pokemon finder
// @include http://zeta.pokemon-vortex.com/map.php?map=*
// @include http://theta.pokemon-vortex.com/map.php?map=*
// @require http://code.jquery.com/jquery-2.1.4.js
// @version 1.0
// @grant none
// ==/UserScript==
----------------------------------------------------------------------------------
-- Company: Koc University
-- Engineer: Zafer Cavdar & Cisem Altan
--
-- Create Date: 23:11:44 04/30/2016
-- Design Name: PSWG
-- Module Name: ProjectCode - Behavioral
-- Project Name: Programmable Square Wave Generator
-- Target Devices: Basys 2 Spartan 3E CP 132 FPGA Board
-- Tool versions:
// ==UserScript==
// @name VortexScript
// @namespace http://localhost
// @description auto pokemon finder
// @include http://zeta.pokemon-vortex.com/map.php?map=*
// @include http://theta.pokemon-vortex.com/map.php?map=*
// @require http://code.jquery.com/jquery-2.1.4.js
// @version 1.0
// @grant none
// ==/UserScript==
#####################################################################
# #
# Names: Zafer Çavdar #
# KUSIS IDs: 0049995 #
#####################################################################
# Use this template and develop your program for Assignment 2
# MIPS assembly code for Affine cipher
# Developed by Najeeb Ahmad and Pirah Noor Smooro
;;; zcavdar14@ku.edu.tr Wed Oct 19 12:48:37 2016
#lang sicp
(#%require (only racket/base random))
(define your-answer-here -1)
;;; +mod takes two numbers and modulo n
;;; it adds up to numbers and return the value of this number in modulo n
(define +mod
@zafercavdar
zafercavdar / BigNum.rkt
Created November 5, 2017 20:06
Scheme implementation of natural numbers using BigNum representation
#lang racket
; Zafer Cavdar
; Scheme implementation of natural numbers using BigNum representation
(define zero
(lambda ()
(cons 0 '())))
(define is-zero?
(lambda (n)
from random import randint
class Node(object):
def __init__(self, id=None):
self.children = []
self.id = id
def add_child(self, child):
self.children.append(child)
from pyspark import SparkContext, StorageLevel as SL
from timeit import repeat
from time import sleep as delay
data = [x for x in range(1000000)]
sc = SparkContext('local[*]')
rdd = sc.parallelize(data) \
.map(lambda x: 2*x - 1) \
.filter(lambda x: x > 100000) \