Skip to content

Instantly share code, notes, and snippets.

Dorukcan Kişin dorukcan

  • İstanbul
Block or report user

Report or block dorukcan

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
View yemeksepeti_parse_orders.js
function loadOrders() {
var pageNum = 0;
function loadPage() {
setTimeout(() => {
if (pageNum > 50) {
return;
} else {
pageNum++;
}
View horizontal_line.js
var horizontal_line = document.createElement('div');
horizontal_line.setAttribute('style', `
position: absolute;
left: 0px;
top: 0;
width: 1px;
height: 100%;
background-color: red;
z-index: 999999;
`);
@dorukcan
dorukcan / twitch_chat_badge.js
Created Mar 13, 2019
hide non-badged chat comments
View twitch_chat_badge.js
function handle_chat() {
Array.from(document.querySelectorAll('.video-chat__message-list-wrapper li')).filter(x => {
return x.querySelectorAll('[data-a-target="chat-badge"]').length === 0;
}).forEach(x => {
x.setAttribute('style', 'display: none');
});
}
function start_observation() {
// Select the node that will be observed for mutations
View coursera_multiply.py
def multiply_(num1, num2):
lines = []
len1 = len(num1)
len2 = len(num2)
for indice2 in range(0, len2):
line = ""
transfer = 0
for indice1 in range(0, len1):
View movielens.sql
-- fill empty values with null
UPDATE movielens.movies
SET genres = NULL
WHERE genres = '(no genres listed)';
-- combine all tables into one table
CREATE MATERIALIZED VIEW movielens.combined AS
WITH _movies AS (
SELECT
movieid,
View laptop_temperature.bat
@echo off
for /f "skip=1 tokens=2 delims==" %%A in ('wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature /value') do set /a "HunDegCel=(%%~A*10)-27315"
echo %HunDegCel:~0,-2%.%HunDegCel:~-2% Degrees Celsius
View make_turkish.py
def make_turkish(text, encode=False):
"""
Transforms a broken text to nice unicode equivalent.
:param text: Text to modify
:param encode: Boolean value indicates that whether encode the text to utf-8 or not
:return: Modified text
"""
if not text:
View phpsysinfo.ini
; PSI Config File
;
; @category PHP
; @package PSI
; @author Michael Cramer <BigMichi1@users.sourceforge.net>
; @copyright 2009 phpSysInfo
; @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
; @version SVN: $Id: phpsysinfo.ini.new 705 2012-11-11 00:33:29Z namiltd $
; @link http://phpsysinfo.sourceforge.net
View ublock_filters.txt
eksisozluk.com###videos
dizipub.com###video-oncesi
trakt.tv###huckster-desktop-wrapper
trakt.tv###charts-wrapper
trakt.tv###network-wrapper
trakt.tv###main-search
trakt.tv##a[href="/users/justkilled/year/*"] > .btn-dashboard.btn
trakt.tv##.stats-wrapper
@dorukcan
dorukcan / find_installed_modules.py
Last active Jul 21, 2019
dummy pip freeze (so dummy that i didn't simplify the main loop, but it haz cool commentz lol)
View find_installed_modules.py
import os
import re
from collections import Counter
def main():
result = []
# folder for starting scrape
start_folder = r"/Users/doruk/PycharmProjects/venus"
You can’t perform that action at this time.