Skip to content

Instantly share code, notes, and snippets.

View rivman's full-sized avatar
🏠
Working from home

RivDesign rivman

🏠
Working from home
View GitHub Profile
@rivman
rivman / app.per.hello.c.js
Created January 10, 2021 19:55
Perso - App Hell-C - To study event
This file has been truncated, but you can view the full file.
if (function (e, t) {
"use strict";
"object" == typeof module && "object" == typeof module.exports ? module.exports = e.document ? t(e, !0) : function (e) {
if (!e.document) throw new Error("jQuery requires a window with a document");
return t(e)
} : t(e)
}("undefined" != typeof window ? window : this, function (D, e) {
"use strict";
function m(e) {
@rivman
rivman / index.html
Last active January 8, 2021 16:36 — forked from tamimibrahim17/index.html
input number custom style
<div class="quantity">
<input type="number" min="1" max="9" step="1" value="1">
</div>
@rivman
rivman / index.php
Last active December 26, 2020 15:35
Adminer Boostrap (https://github.com/pematon/adminer-custom) with auto-update feature/
<?php
/**
* Using https://github.com/pematon/adminer-custom
*/
/**
* @return AdminerPlugin
*/
function adminer_object ()
@rivman
rivman / pi-servo.py
Created December 25, 2020 21:59 — forked from meub/pi-servo.py
Raspberry Pi Bell Ringer
#!/usr/bin/env python
import time
import RPi.GPIO as GPIO # Importing the GPIO library
from time import sleep # Import sleep module from time library
# Set up GPIO
servo_pin = 21 # GPIO Pin where servo is connected
GPIO.setmode(GPIO.BCM)
@rivman
rivman / Increase-decrease-field-value.js
Last active November 11, 2020 00:06 — forked from bradonomics/booking-widget.js
Increase and decrease input field value
//* Increase the occupancy in booking widget
$(".increment").click(function() {
var $increment = $(this);
//* Get the current input value
var originalValue = $increment.parent().siblings("input").val();
//* Increase the value by 1
var newValue = parseFloat(originalValue) + 1;
//* Apply the value to the input field
$increment.parent().siblings("input").val(newValue);
});
/** Turn off visual studio code inline parent/child folder display */
Explorer: Compact Folders
Controls whether the explorer should render folders in a compact form.
In such a form, single child folders will be compressed in a combined tree element.
Useful for Java package structures, for example.
"explorer.compactFolders": false
/** Disable one clic open / preview file and use the normal double click
"workbench.editor.enablePreview": false
@rivman
rivman / _description.md
Created April 22, 2020 23:02 — forked from ww9/one-line-text-art-and-emojis_utf8_ascii.txt
Emojis, UTF8, ASCII (one line) #misc

Collection of one line text art (◕‿◕✿)

Collection of emojis and one line text art like (╯°□°)╯︵ ┻━┻ 🤗

@rivman
rivman / add-context-menu-open-in-vscode.reg
Created April 22, 2020 22:37
Open folder in Vistual Studio Code (Context Menu, Windows 10, VSCode v.1.44.2 on 23-04-2020 )
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\vscode]
@="Open with VSCode"
"Icon"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,\
6f,00,66,00,74,00,20,00,56,00,53,00,20,00,43,00,6f,00,64,00,65,00,5c,00,43,\
00,6f,00,64,00,65,00,2e,00,65,00,78,00,65,00,00,00
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@rivman
rivman / mirc.ini
Created March 25, 2020 22:13 — forked from liamja/mirc.ini
Monokai colour scheme for mIRC.
[colors]
n5=Monokai,0,4,4,4,2,3,4,3,6,6,3,1,2,2,5,1,5,4,2,4,0,0,1,0,1,14,5,0,0,1
[palettes]
n5=2238503,15923448,15718758,3072678,7481081,12767183,2070525,26832,1632504,57344,94740,16776960,16515072,16711935,8355711,13816530