Skip to content

Instantly share code, notes, and snippets.


Mehmet Sefa mehmetsefabalik

Block or report user

Report or block mehmetsefabalik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mehmetsefabalik /
Created Jun 2, 2019
Installing JDK on MacOS

Installing JDK on MacOS

brew update

brew tap caskroom/cask

brew install java

def log_on_exception(tag1, tag2):
def deco(func):
def wrapper(*args, **kwargs):
result = func(*args, **kwargs)
except exception as err:
logger(err, tag1, tag2)
return result
return wrapper
mehmetsefabalik / jsGenerators.js
Created Jul 24, 2018
Javascript Generators and Iterators
View jsGenerators.js
// Iterators
const alpha = ['a','b','c'];
const it = alpha[Symbol.iterator]();; //{ value: 'a', done: false }; //{ value: 'b', done: false }; //{ value: 'c', done: false }; //{ value: undefined, done: true }
// Generate Fibonacci Sequence using Generator Function
You can’t perform that action at this time.