This file contains hidden or 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
| const WebSocket = require('ws'); | |
| const socket = new WebSocket('wss://url',{ | |
| rejectUnauthorized: false | |
| }); | |
| socket.onopen = (event) => { | |
| console.log('WebSocket opened', event); | |
| setTimeout(() => { | |
| socket.send('Hello, server!'); |
This file contains hidden or 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 pandas as pd | |
| from bs4 import BeautifulSoup | |
| rescore_df = pd.read_excel('ResCore.xlsx') | |
| with open('ResCore.resx', encoding='UTF-8') as en_res_file: | |
| en_res_file_str = en_res_file.read() | |
| en_res = BeautifulSoup(en_res_file_str) |
This file contains hidden or 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
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| DapperConfiguration.Use() | |
| .UseClassMapper(typeof(CustomTableMapper<>)) | |
| .UseContainer<ContainerForWindsor>(c => c.UseExisting(new Castle.Windsor.WindsorContainer())) | |
| .UseSqlDialect(new CustomPostgreSqlDialect()) | |
| .Build(); | |
| } |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Remember to eat your food while watching Netflix | |
| // @namespace https://www.tarikguney.com | |
| // @version 0.1 | |
| // @description Kids watching cartoons on Netflix often forget to eat and chew their food, which drives parents crazy. You need to sit down with them and pause the video and remind them to eat their food. This script will automate that. | |
| // @author Tarik Guney | |
| // @match https://www.netflix.com/watch/* | |
| // @icon https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Netflix_icon.svg/1200px-Netflix_icon.svg.png | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or 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 pandas as pd | |
| import numpy as np | |
| from numpy.random import default_rng | |
| PATH = "katilimlar.csv" | |
| def katilimcilar(path): | |
| """ Google forms'dan alınan csv dosyasını | |
| çekiliş yapmak için hazırlar """ |