Skip to content

Instantly share code, notes, and snippets.

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

Sithum Bopitiya sithumonline

🏠
Working from home
View GitHub Profile
@sithumonline
sithumonline / pack-insall.sh
Last active December 17, 2020 10:27
buildpack
cd /tmp
wget https://github.com/buildpacks/pack/releases/download/<version>/pack-<version>-linux.tgz
tar -xvzf pack-<version>-linux.tgz
sudo mv pack /usr/local/bin/

Shrunk Code / The Rules of Functions

how did I get this code shrunk down to

that last little bit how did that

process work my goal was to make these

functions small and I call this the

package main
import (
"fmt"
"math/rand"
)
func main() {
var matrix = make(map[int][]string)
import React, { useState, useEffect } from 'react'
import axios from 'axios'
// @material-ui/core components
import { makeStyles } from '@material-ui/core/styles'
import authHeader from '../assets/jss/services/auth-header'
//import Grid from '@material-ui/core/Grid'
// @material-ui/icons
// core components
import CardComponent from './card.component'
/*
Guide from xe-non to P-Use
*/
#include <WiFi.h>
#include <HTTPClient.h>
const char *ssid = "REPLACE_WITH_YOUR_SSID";
const char *password = "REPLACE_WITH_YOUR_PASSWORD";
@sithumonline
sithumonline / cut-out.md
Last active March 30, 2020 03:07
x8086

x8086

gpg --keyserver keyserver.ubuntu.com --recv-key 8771ADB0816950D8 && gpg -a --export 8771ADB0816950D8 | sudo apt-key add -
@sithumonline
sithumonline / antix.list
Created March 25, 2019 19:27
My MX Linux sources lists backup
# Use with Debian Stable/stretch repositories. Set as default for antiX-17. Note new repos
#deb http://iso.mxrepo.com/antix/stretch stretch main
deb http://mirror.0x.sg/mx-workspace/antix/stretch stretch main
#deb-src http://iso.mxrepo.com/antix/stretch stretch main
@sithumonline
sithumonline / config.py
Last active March 11, 2019 23:17
My qtile config ...
# -*- coding: utf-8 -*-
# _______ _ _______ _
# |\ /|( ____ \ ( ( /|( ___ )( ( /|
# ( \ / )| ( \/ | \ ( || ( ) || \ ( |
# \ (_) / | (__ _____ | \ | || | | || \ | |
# ) _ ( | __)(_____)| (\ \) || | | || (\ \) |
# / ( ) \ | ( | | \ || | | || | \ |
# ( / \ )| (____/\ | ) \ || (___) || ) \ |
# |/ \|(_______/ |/ )_)(_______)|/ )_)
#