Skip to content

Instantly share code, notes, and snippets.

View mburakerman's full-sized avatar
💉

Mehmet Burak Erman mburakerman

💉
View GitHub Profile
@mburakerman
mburakerman / explosionGif.ts
Last active December 3, 2022 10:13
Explosion Gif
"data:image/gif;base64,R0lGODlh0AKWAfcIAAAAAAAAAgEAAAAAAQEAAQEBAAUAAQMBAgMAAQgAARAAAQoDBQwDAhYGAxQEAAwAAAoCABkIBRIJDB0ODhkJCCYNDDEaGU8sHjckH143JohgTGhCO3BYSKtyV6qKagwFCBwEADgRAEYYBC0IA0UNAiEHAxQAASYLBiAJACUEADYaCjAUCigPA3o5FoI+JR0AAUogGTQNBjYSA08kD5hSMDEKACEAATEZEm83FigPADQODIdLJkoXDmEpGmElDlMaBGwkA4pDF2AjBLppMZZGIlAiBmMuBbNuPqlYJKtXMMCFOKtkJF4XApU8C3ApDog3E4k8BZhCDnYsHJ5RIzAAALBSIX8rDncrFMRwOXoxBIcwA1MQAqZIIXslA6M8CmE2GGM5L4hQOYZLMG9FMKBZPsRzSG89JqtlMatjQcuWTsOKTrKGUtS7lLBwSjIEAG0ZApkvCOnbvMSrjN6tUs2HOapiELlhI51KEKJREc2IJr+FIshtJNN1ON+QOcJsE3AvBapXEd+aKK1LDdaAL5s3CcVgIuqsVt6ZTdSaT8uCTMWWad2IQ92KUdaQOeqZROmfU8dtL9F3Rauah/bDZ+q+V+qrRNBnEOqtOvWkTdZsI+eLOrxaEdh1L8NhEt+IKNaRJ/rMTqhDC7BRD+qaL+qpKPm8Pfi8L96AJspbDthsEdSDStSZbeGqdtazcPi2W+iPSfatWd6BNvSaSrtHC/27af3Zfu7OcvbUcfisSPnBWv3VcfWYON13JOmJLvq+RfipOb5UDfehL/WhJOmFHr1PDOJyFPvMW/3VZ/zmgvnkcv3Meu2xZuKkZe24duPCb+PIkf3HbPbAcPq6TvXDfvWzZvSMJ+3SkPbXlfbVhPvZW/zyofztkf7lcvbnpP3Phvvjkf3zrf7pqP7onf3akfvoo/7svPTuvvv3z/70uv7xv/74wf38y/vzwfv3v/vtvPbxv/389v333P740P70y/jxv/3
@mburakerman
mburakerman / find-file.py
Created October 30, 2020 08:56
find a specific file using python
import os
import fnmatch
rootPath = '/'
pattern = '*.mp3'
for root, dirs, files in os.walk(rootPath):
for filename in fnmatch.filter(files, pattern):
print(os.path.join(root, filename))
@mburakerman
mburakerman / file-upload-with-git.js
Last active December 13, 2020 14:10
Upload files to an existing repo with git
// Initialize the local directory as a Git repository.
git init
// Add the files in your new local repository. This stages them for the first commit.
git add .
// Commit the files that you've staged in your local repository.
git commit -m "your message"
// Sets the new remote
@mburakerman
mburakerman / rock-scissors-paper.py
Last active July 6, 2020 09:53
python rock-scissors-paper game
import random
game = ["rock", "scissors", "paper"]
human_val = False
print("enter rock, scissors or paper")
while human_val == False:
human_val = input()
computer_val = random.choice(game)
@mburakerman
mburakerman / edabit-easy.py
Last active July 2, 2020 08:54
Edabit easy level python challenges
#1 create a function that takes a string and returns the number (count) of vowels contained within it.
def count_vowels(text):
output = 0
for letter in text:
if letter in "aeiou":
output += 1
print(output)
#count_vowels("python")
@mburakerman
mburakerman / todo.svelte
Created February 19, 2020 08:30
svelte todo
<script>
$: todos = [];
var todo = "";
function addTodoOnEnter(e) {
if (e.key === "Enter") {
addTodo();
}
}
function addTodo() {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mburakerman
mburakerman / package.json
Last active June 12, 2019 14:58
Webpack 4 config.js (Stylus to CSS and Babel) 👌 The Simplest Usage 👌
{
"name": "webpack-stylus",
"version": "1.0.0",
"scripts": {
"start": "webpack-dev-server --open --mode development",
"build": "webpack -p"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
@mburakerman
mburakerman / loader.svg
Created March 21, 2018 06:33
puff svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mburakerman
mburakerman / .editorconfig
Created February 13, 2018 07:37
Editor Config file
root = true
# for all languages
[*]
indent_style = space
indent_size = 2
# for javascript
[*.js]
indent_style = space