Skip to content

Instantly share code, notes, and snippets.

View ZaifSenpai's full-sized avatar
🧦
One can never have enough socks - Dumbledore

Zaif Senpai ZaifSenpai

🧦
One can never have enough socks - Dumbledore
View GitHub Profile
@ZaifSenpai
ZaifSenpai / switch.html
Created February 13, 2024 11:53
Customisation CSS Toggle Switch
<!-- DEMO: https://codepen.io/zaifsenpai/pen/qBvQYJe -->
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Switch</title>
<style>
body {
@ZaifSenpai
ZaifSenpai / decimalCompare.bat
Created October 7, 2021 06:28
Compare decimal numbers in batch script
@ECHO OFF
setlocal enabledelayedexpansion
@REM Usage: decimalCompare.bat 123.154 51.1248
@REM Usage: decimalCompare.bat 123.154 00000051.1248
@REM Usage: decimalCompare.bat 0.11515 0.21548
call :compareFloats %1 %2
echo %errorlevel%
@ZaifSenpai
ZaifSenpai / GetBoolean.c
Created September 10, 2021 14:44
Returns the truth value of given boolean variable.
class GetBoolean
{
static void Main(string[] args)
{
bool b = true;
System.Console.WriteLine(b);
System.Console.WriteLine(GetBoolean(b));
}
123456
654321
789456
654987
987654
321654
123456
456798
1
set local=2.0
@ZaifSenpai
ZaifSenpai / Open CMD Here.reg
Created September 6, 2019 14:35
Add Open CMD Here option to context menu with icon. Just Merge it with windows registry
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\cmd_shell]
@="Open CMD here"
"NoWorkingDirectory"=""
"Icon"="C:\\Windows\\system32\\cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\cmd_shell\command]
@="cmd.exe /s /k pushd \"%V\""
@ZaifSenpai
ZaifSenpai / AndroidManifest.xml
Created September 29, 2017 08:44 — forked from bjoernQ/AndroidManifest.xml
Creating a System Overlay (Always on Top over all Apps) in Android
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.mobilej.overlay"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="14" />
<application android:label="SystemOverlay" >
<activity