Skip to content

Instantly share code, notes, and snippets.

View dorukcan's full-sized avatar

Dorukcan Kişin dorukcan

View GitHub Profile
function loadOrders() {
var pageNum = 0;
function loadPage() {
setTimeout(() => {
if (pageNum > 50) {
return;
} else {
pageNum++;
}
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 March 13, 2019 17:37
hide non-badged chat comments
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
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):
-- 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,
@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
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:
; 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
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 July 21, 2019 12:21
dummy pip freeze (so dummy that i didn't simplify the main loop, but it haz cool commentz lol)
import os
import re
from collections import Counter
def main():
result = []
# folder for starting scrape
start_folder = r"/Users/doruk/PycharmProjects/venus"