This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/c net use * /delete /y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |