Skip to content

Instantly share code, notes, and snippets.

View Sagleft's full-sized avatar

Sagleft Sagleft

View GitHub Profile
@Sagleft
Sagleft / golang.udl.xml
Last active January 22, 2020 11:09 — forked from blinksmith/golang.udl.xml
Notepad++ Syntax Highlight for Go
<NotepadPlus>
<!--
NPP Syntax Highlight for Go
using most used color in NPP for Golang.
Author: blinksmith, sagleft Version: 0.1.4
Last tested in Notepad++ v7.5.4
Quick start :
Method 1
- Download golang.udl.xml and then open notepad++
@Sagleft
Sagleft / rgb_to_hex_to_rgb.php
Created July 13, 2019 23:04 — forked from Pushplaybang/rgb_to_hex_to_rgb.php
php functions convert hex to rgb and rgb to hex
function hex2rgb($hex) {
$hex = str_replace("#", "", $hex);
if(strlen($hex) == 3) {
$r = hexdec(substr($hex,0,1).substr($hex,0,1));
$g = hexdec(substr($hex,1,1).substr($hex,1,1));
$b = hexdec(substr($hex,2,1).substr($hex,2,1));
} else {
$r = hexdec(substr($hex,0,2));
$g = hexdec(substr($hex,2,2));
@Sagleft
Sagleft / bitcoin.conf
Created May 24, 2019 12:56 — forked from requnix/bitcoin.conf
Default Bitcoin Configuration file
##############################################################
# Bitcoin configuration. Lines beginning with # are comments.#
##############################################################
# Network-related settings:
# Run on the test network instead of the real bitcoin network.
#testnet=1
# Connect via a socks4 proxy