This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadOrders() { | |
var pageNum = 0; | |
function loadPage() { | |
setTimeout(() => { | |
if (pageNum > 50) { | |
return; | |
} else { | |
pageNum++; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
from collections import Counter | |
def main(): | |
result = [] | |
# folder for starting scrape | |
start_folder = r"/Users/doruk/PycharmProjects/venus" |
NewerOlder