Skip to content

Instantly share code, notes, and snippets.

@lukas2
lukas2 / .swift
Created January 5, 2018 10:56
How to apply CI Filter in Swift
// example with CIColorPosterize
let context = CIContext(options: nil)
var ciImage = CIImage(cgImage: image.cgImage!)
ciImage = ciImage.applyingFilter("CIColorPosterize", parameters: ["inputImage" : ciImage, "inputLevels" : 2])
let cgImage = context.createCGImage(ciImage, from: ciImage.extent)!
let filteredUiImage = UIImage(cgImage: cgImage, scale: image.scale, orientation: .up)
@tahasonmez
tahasonmez / bauduyuru.py
Created August 26, 2019 19:26
Bahçeşehir Üniversitesi Öğrenci İşleri Daire Başkanlığı duyuru sayfası duyuru kontrolü
from selenium import webdriver
import os
import sched, time
driver_path = "/Users/tahasonmez/Downloads/chromedriver"
driver = webdriver.Chrome(executable_path=driver_path)
driver.get('https://bau.edu.tr/idari-birimler/daire-baskanliklari/ogrenci-isleri-daire-baskanligi')
def announce():