Skip to content

Instantly share code, notes, and snippets.

View VICTORVICKIE's full-sized avatar
🎲

VIGNESH KUMAR VICTORVICKIE

🎲
  • Chennai, Tamil Nadu, India
View GitHub Profile
@VICTORVICKIE
VICTORVICKIE / index.html
Last active February 19, 2024 11:18
sprintf in js wasm
>
<script>
let wasm;
function make_environment(...envs) {
return new Proxy(envs, {
get(target, prop, receiver) {
for (let env of envs) {
if (env.hasOwnProperty(prop)) {
return env[prop];
import pyautogui
import time
while True:
pyautogui.click()
time.sleep(10)
@VICTORVICKIE
VICTORVICKIE / server.py
Last active January 3, 2023 03:30
Async server that broadcast's client's location
import asyncio
import logging
import os
from pathlib import Path
class LocationShareServer:
def __init__(self, host: str, port: int):
"""
Initializes a new instance of the LocationShareServer class.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
New-Alias sudo gsudo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@VICTORVICKIE
VICTORVICKIE / compact_labels.py
Last active June 10, 2021 05:15
Compact Labels
from kivymd.app import MDApp
from kivy.lang import Builder
from kivy.uix.recycleview import RecycleView
from kivy.properties import StringProperty
from kivy.uix.boxlayout import BoxLayout
from kivymd.theming import ThemableBehavior
from kivymd.uix.behaviors import RectangularRippleBehavior
from kivy.uix.behaviors import ButtonBehavior
from kivy.uix.floatlayout import FloatLayout
@VICTORVICKIE
VICTORVICKIE / adv_rv.py
Created June 1, 2021 16:04
Kivy Advanced RecycleView
from kivymd.app import MDApp
from kivy.lang import Builder
from kivy.uix.recycleview import RecycleView
from kivy.properties import StringProperty
from kivy.uix.boxlayout import BoxLayout
from kivymd.theming import ThemableBehavior
from kivymd.uix.behaviors import RectangularRippleBehavior
from kivy.uix.behaviors import ButtonBehavior
from kivy.uix.floatlayout import FloatLayout
@VICTORVICKIE
VICTORVICKIE / LoadManager.py
Last active May 30, 2021 04:25
Kivy Loading Widget
from kivy.properties import ObjectProperty, NumericProperty, BooleanProperty
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.progressbar import ProgressBar
from threading import Thread
from time import sleep
class LoadingWidget(FloatLayout):
task = ObjectProperty() # -> task an object of the task to be performed on thread
task_thread = ObjectProperty(None) # -> Internal Helper object
anim = BooleanProperty(False) # -> Internal Helper Property
@VICTORVICKIE
VICTORVICKIE / BuildExample.sublime-build
Last active August 28, 2021 05:13
Sublime Per Tab Panel Execution
{
"target":"special_build",
// "shell_cmd":"gcc \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\"",
// selector: "source.c"
"selector": "source.python",
}