Skip to content

Instantly share code, notes, and snippets.

View yldrmzffr's full-sized avatar
👽

Muzaffer YILDIRIM yldrmzffr

👽
View GitHub Profile
@yldrmzffr
yldrmzffr / helm.txt
Last active September 27, 2023 07:10
#!/usr/bin/env bash
# Copyright The Helm Authors.
#
# 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
#
@yldrmzffr
yldrmzffr / clock.ino
Last active January 30, 2023 10:12
Arduino Oled Clock Without RTC
#include "Adafruit_SSD1306.h"
#include "Wire.h"
unsigned long previous_millis = 0;
const long interval = 1000;
const int font_size = 3;
const int width = 128;
const int height = 32;
const int i2c_address = 0x3C;
int hour = 10;
@yldrmzffr
yldrmzffr / delete-pattern.js
Created March 31, 2021 13:44
Node Redis async delete pattern
async deleteCache(pattern) {
const caches = await this.redisClient.keysAsync(pattern);
caches.map((cacheKey) => this.redisClient.delAsync(cacheKey));
}
Random r = new Random();
Point konum = Location;
for(int i=0;i<50;i++){
int x = r.Next(-2,2);
int y = r.Next(-2,2);
Location = new Point(konum.X + x, konum.Y + y);
System.Threading.Thread.Sleep(10);
}
Location=konum;
@yldrmzffr
yldrmzffr / titreyenbutonsharp.cs
Last active June 15, 2017 18:43
c# titreyen form
Random r = new Random();
Point konum = Butonİsmi.Location;
for(int i=0;i<50;i++){
int x = r.Next(-2,2);
int y = r.Next(-2,2);
Butonİsmi.Location = new Point(konum.X + x, konum.Y + y);
System.Threading.Thread.Sleep(10);
}
Butonİsmi.Location=konum;