Skip to content

Instantly share code, notes, and snippets.

View Berkays's full-sized avatar
🌙

Berkay Gürsoy Berkays

🌙
View GitHub Profile
@Berkays
Berkays / main.ipynb
Created February 28, 2023 01:23
Find corner points of rectangle with 1s border
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Berkays
Berkays / platform.py
Created August 13, 2022 13:45
PlatformIO fixed bug
# Copyright 2014-present PlatformIO <contact@platformio.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@Berkays
Berkays / main.js
Created July 14, 2022 19:49
Frontend Assessment
/*
* Your program must print string with the number of years and months and the total number of days between the dates.
* Dates are provided in dd.mm.yyyy format.
* You are not allowed to plug in JS libraries such as moment.js or date-fns directly into the code. All code need to be written in this file.
*
* Result must be shown as a string in years, months and total days. If years or months are 0, then it should not be displayed in the output.
*
* Example:
* Input: ['01.01.2000', '01.01.2016']
* Output:
@Berkays
Berkays / App.tsx
Created January 27, 2022 19:42
Webpack/Typescript/React Starter Template
// PLACE INSIDE /src folder
export function App() {}
@Berkays
Berkays / fresh-1.sh
Last active October 29, 2020 02:25
Ubuntu-Setup
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
else
echo "Updating packages"
sudo apt-get update && sudo apt-get upgrade -y
echo "Removing bloatware..."