Latest 10 snippets
#SingleInstance,Force
;~ Process, Priority, , A
;~ SetBatchLines, -1
;~ SetKeyDelay, -1, -1
;~ #Include <funcs>
...
-- tables {} are the main element to store information in Lua
-- widget is a table (a box containing pair of key = value) similar to any other table
local version = 0.1
function widget:GetInfo() -- this is a method, pretty much like a function with an hidden parameter (self) refering to the table where the function is stored
-- this method will return a table whenever it is called, widget:GetInfo()
...
local version = '0.3'
function widget:GetInfo()
return {
name = "Marker On Click",
desc = "Place marker on single click while using hotkey for drawing, ver "..version,
...
local version = '0.3'
function widget:GetInfo()
return {
name = "Marker On Click",
desc = "Place marker on single click while using hotkey for drawing, ver "..version,
...
Snippet #137907
by rotense
~ 2022/11/15 15:23:19
#ifndef _OBJECT_LIKE_MACRO_
#define _OBJECT_LIKE_MACRO_
#define SIZE 1024
...
#include "main.h"
/**
* _atoi - converts a string to an integer.
* @s: input string.
...
#!/bin/bash
# run this as root
# Webmin install
...
local widgetName = "Next Gen Bombers"
function widget:GetInfo()
return {
name = widgetName,
...
Snippet #123092
by rotense
~ 2022/11/01 1:07:09
#include "main.h"
#include <stdio.h>
/**
* simple_print_buffer - prints buffer in hexa
...
function widget:GetInfo()
return {
name = "Marker On Click",
desc = "Place marker on single click",
author = "Helwor",
...