Skip to content

Instantly share code, notes, and snippets.

View TekyaygilFethi's full-sized avatar
👨‍💻
Coding

Fethi Tekyaygil TekyaygilFethi

👨‍💻
Coding
View GitHub Profile
@TekyaygilFethi
TekyaygilFethi / websocket_test.js
Created September 15, 2023 14:42
websocket_test.js
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!');
@TekyaygilFethi
TekyaygilFethi / rescore_update.py
Last active September 15, 2023 14:40
rescore_update.py
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)
@TekyaygilFethi
TekyaygilFethi / ConfigureServices.cs
Last active March 15, 2022 12:07
This Gist contains is a custom PostgreSQL dialect(CustomPostgreSqlDialect) that prevents lowercase table and column names when SQL is generated by Dapper Extensions on .NET Core 5.0
public void ConfigureServices(IServiceCollection services)
{
DapperConfiguration.Use()
.UseClassMapper(typeof(CustomTableMapper<>))
.UseContainer<ContainerForWindsor>(c => c.UseExisting(new Castle.Windsor.WindsorContainer()))
.UseSqlDialect(new CustomPostgreSqlDialect())
.Build();
}
@TekyaygilFethi
TekyaygilFethi / userscript.js
Created January 6, 2022 15:13 — forked from tarikguney/userscript.js
Eat Your Food - Netflix Interruptor
// ==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==
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 """