Skip to content

Instantly share code, notes, and snippets.

View ramazansancar's full-sized avatar
๐Ÿ“š
Study

Ramazan Sancar ramazansancar

๐Ÿ“š
Study
View GitHub Profile
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>ฤฐรœ Bilgisayar ProgramcฤฑlฤฑฤŸฤฑ Final Tarihi</title>
<style>
body {
text-align: center;
padding: 70px 50px;
background: #0D1A29;
@ramazansancar
ramazansancar / Application Tracking System List.json
Last active December 13, 2022 07:00
Application Tracking System (ATS) List source by angel.co Recruit
[
{
"name": "Greenhouse",
"shortName": "greenhouse"
},
{
"name": "Lever",
"shortName": "lever"
},
[{"id":193,"name":"Acฤฑbadem Mehmet Ali Aydฤฑnlar\r\nรœniversitesi","city":"ฤฐstanbul","founded":null,"type":null,"website":"http://www.acibadem.edu.tr","numberOfStudent":null},{"id":194,"name":"Adana Alparslan TรผrkeลŸ Bilim Ve\r\nTeknoloji รœniversitesi","city":"Adana","founded":null,"type":null,"website":"http://www.atu.edu.tr","numberOfStudent":null},{"id":195,"name":"Adฤฑyaman รœniversitesi","city":"Adฤฑyaman","founded":null,"type":null,"website":"http://www.Adฤฑyaman.edu.tr/","numberOfStudent":null},{"id":196,"name":"Afyon Kocatepe รœniversitesi","city":"Afyon","founded":null,"type":null,"website":"http://www.aku.edu.tr","numberOfStudent":null},{"id":197,"name":"Afyonkarahisar SaฤŸlik Bilimleri\r\nรœniversitesi","city":"Afyon","founded":null,"type":null,"website":"www.afsu.edu.tr","numberOfStudent":null},{"id":198,"name":"AฤŸrฤฑ ฤฐbrahim ร‡eรงen รœniversitesi","city":"AฤŸrฤฑ","founded":null,"type":null,"website":"http://www.agri.edu.tr","numberOfStudent":null},{"id":199,"name":"Akdeniz รœniversitesi","city":"Antalya","founde
const fetch = require('node-fetch');
const { readFileSync, writeFileSync } = require('fs');
const filePath = "./radarrTorrents.json" // where to store info about current torrents being downloaded
const maxAcceptedDownloadTime = 6000000; // any torrent that takes longer than this time (in milliseconds) to download is abandonded
const maxFileSize = 4000000000 // any torrent greater than this size (in bytes) is exempt from the time limit restriction
const waitTime = 600000; // how much time (in milliseconds) to give the torrent to find peers and lower it's download time
const dateLocale = "en-GB";
const dateOptions = { dateStyle: 'short', timeStyle: 'short' };
const fetch = require('node-fetch');
const { readFileSync, writeFileSync } = require('fs');
const filePath = "./radarrTorrents.json" // where to store info about current torrents being downloaded
const maxAcceptedDownloadTime = 6000000; // any torrent that takes longer than this time (in milliseconds) to download is abandonded
const maxFileSize = 4000000000 // any torrent greater than this size (in bytes) is exempt from the time limit restriction
const waitTime = 600000; // how much time (in milliseconds) to give the torrent to find peers and lower it's download time
const dateLocale = "en-GB";
const dateOptions = { dateStyle: 'short', timeStyle: 'short' };
@ramazansancar
ramazansancar / command.sh
Created January 20, 2023 08:44
Windows App Update Command
winget upgrade --all
@ramazansancar
ramazansancar / esm-package.md
Created March 1, 2023 14:49 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(โ€ฆ) from CommonJS instead of require(โ€ฆ).
  3. Stay on the existing version of the package until you can move to ESM.
@ramazansancar
ramazansancar / ipValidation.js
Created March 16, 2023 18:53
CodeWars Solutions
// Source: https://www.codewars.com/kata/515decfd9dcfc23bb6000006/solutions/javascript
const isValidIP = (str) => {
const octet = '(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)';
const regex = new RegExp(`^${octet}\\.${octet}\\.${octet}\\.${octet}$`);
return (regex.test(str)) ? true : false
} // Source: https://stackoverflow.com/a/54742549/15030183
function isValidIP(str) {
return /^(([1-9]?\d|1\d\d|2[0-4]\d|25[0-5])(\.(?!$)|$)){4}$/.test(str);
/* CONSOLE MESSAGE */
var consoleCopyrightStyle = [
"margin: 16px 0",
"border-radius: 10px"
].join(";");
var consoleWarningHeaderStyle = [
"color: #ff0000",
"font-size: 32px",
"font-weight: 600",
"margin: 8px 0"