Skip to content

Instantly share code, notes, and snippets.

View mehmetcanyegen's full-sized avatar
🐲

Mehmetcan Yegen mehmetcanyegen

🐲
View GitHub Profile
@mehmetcanyegen
mehmetcanyegen / ArduinoIRLibUsage
Last active January 3, 2018 06:45
Arduino IRLib Usage
#include "IRLibAll.h"
#define MY_PROTOCOL NEC
#define RIGHT_ARROW 16761405
#define LEFT_ARROW 16720605
#define SELECT_BUTTON 16712445
#define UP_ARROW 16736925
#define DOWN_ARROW 16754775
#define BUTTON_0 16730805
#define BUTTON_1 16738455
try
{
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = string.format("/c net use * /delete /y");
process.StartInfo = startInfo;
process.Start();
}
/c net use * /delete /y
@mehmetcanyegen
mehmetcanyegen / yazi.java
Created April 28, 2020 10:34
YaziyaCevir Java Version
package com.mehmetcanyegen;
public class Main {
public static final String padLeft(String str, int totalWidth){
StringBuilder sb = new StringBuilder();
sb.append("0".repeat(Math.max(0, totalWidth - str.length())));
sb.append(str);
return sb.toString();
}