Skip to content

Instantly share code, notes, and snippets.

@hi2rashid
hi2rashid / gist:c4a27a229775dee367a011405bb59391
Last active January 25, 2020 10:54
Big O(N^2) with simple For loop - Colored console output
let N = 10;
let ispace = "";
let jspace = "";
let counter = 0;
for(let i=0; i<N;i++){
ispace += " ";
console.log("%c i is " + ispace + i,'background: #222; color: #bada55')
for(let j=0; j<i;j++) {
jspace += " ";
#!/bin/bash
LOCATION="$(date +/home/rashid/Pictures/workday_shots/%Y/%m/%d)"
mkdir -p $LOCATION
cd $LOCATION
DISPLAY=:0 scrot '%Y-%m-%d-%H%M.jpg' -q 20
-----BEGIN CERTIFICATE-----
MIIGtzCCBZ+gAwIBAgIQBVTPRNyo/ObwMiD6gpbbvTANBgkqhkiG9w0BAQsFADBN
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E
aWdpQ2VydCBTSEEyIFNlY3VyZSBTZXJ2ZXIgQ0EwHhcNMTkwODIyMDAwMDAwWhcN
MjEwODI2MTIwMDAwWjBtMQswCQYDVQQGEwJCSDEPMA0GA1UEBxMGTWFuYW1hMSMw
IQYDVQQKExpCYW5rIG9mIEJhaHJhaW4gYW5kIEt1d2FpdDELMAkGA1UECxMCSVQx
GzAZBgNVBAMTEmF1dGguYmJrb25saW5lLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBALIkZMaTcDgk756PE27y9atDTqy0sm4OyngDGaLB7/MHVJ6/
L0A6hiZu1LYSN1xIIxzPN6xGbBGGLhoNb4JTzBGGdpodK6yH45VvYFuwxz/SvHOs
E4BIyIX34HW7UPW7PD+pyH6S8ORMGSe8cgepGsq2kRV28Cw6MOvtRkSEUxfGxDaa
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDc9HsyR38XNlnW
+wpi+8Dx74U7dyDGBz4Kj85q/kl+u4x/KosS9OliK4x1C/0qQOTZVoi472a0VA1b
epBuoqb8zUs4PsaUcmCp/5LAvre09JAohEdy7iz2RlnzVVDiZFfZjtM+7EQBlxI2
aN+6ljdiFuvLcxvZqncJQIING4pCKXljMHLVCCyAfcI80thSc/S0Qx/T9XxyQdV+
xNE1AAe0iYSQnkryOJzLMwogwptxfWeLVt5vGFYDA7yIjXoMLFaI0vz77FFEKIl/
XTVMaYcW6wAX0yW9VPik4yXAC3BOcF00c+LlcZxs5LJ1lhJUqOuwxJst+t+/5zxU
sFGrwb6TAgMBAAECggEAJjqakiFyqMZ7lsmKi4O5Z2Kkr5w17G1WW6dz9GkYuDek
4F+w/k+njZexTpMLc2MU9VGWiEDLiUm9oeU71hiIQdcXO50I6Kg9d0xDzNtyl3l0
872nSwhQeS/E4mgRfYoU9QxUGl/wiEHmIcnVY8gXvv3uQB4jZG6s98nUdoYcTsPh
@hi2rashid
hi2rashid / products.json
Created January 13, 2021 21:23
Products JSON
[
{
"product id":10000001,
"name":"Almarai Full Fat milk 2.75L",
"original_price":0.750,
"discounted_price":0.725,
"final_price":0.725,
"thumbnail url":"https://i.imgur.com/iERgiww.png",
"search keywords":"milk, almarai, almaraimilk",
"description":"Almarai Full Fat milk",
@hi2rashid
hi2rashid / gist:28a5d13bffd01996012985b639efa263
Last active April 2, 2024 08:18
Country Flag V1 Output
[
{
"name": "Afghanistan",
"code": "AF",
"capital": "Kabul",
"region": "AS",
"currency": {
"code": "AFN",
"name": "Afghan afghani",
"symbol": "؋"