Skip to content

Instantly share code, notes, and snippets.

View qwerty13's full-sized avatar

Morteza Rastegar qwerty13

View GitHub Profile
/*
*
* Persian Writing Function in 5110 Nokia LCD
* Created by qwerty13
* Share it with Permision only!
* qwerty13.ir
* 0937-6095913
*
*/
@qwerty13
qwerty13 / csv_to_json.html
Created June 7, 2023 11:36
One Document CSV to JSON Maker (Arrays as number of columns) using HTML, CSS and JS
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CSV To JSON</title>
<style>
BODY {font: 16px/1.4 Trebuchet MS, Arial, sans-serif;color: #000;}A {color: steelblue;}H1 {font: 2em/1.4 Georgia, serif;text-align: center;}H4 {margin: 0;margin-bottom: 0.15em;font: 1.3em/1.4 Georgia, serif;}P {margin: 1.2rem 0;}TEXTAREA {width: 100%;height: 150px;margin: 0;border: 1px solid #CCC;border-radius: 10px;font-size: 13px;font-family: monospace;}CODE {padding: 0 3px;background: #EEE;border-radius: 5px;text-shadow: 1px 1px 0 white;font: 14px/1.4 monospace;color: #333;}CODE I {font-style: italic;color: black;}.wrapper {width: 650px;margin: 1.5rem auto 4rem;}.header {position: relative;margin-bottom: 2rem;padding-bottom: 1rem;border-bottom: 1px solid #CCC;}.header::before {content: "";display: table;width: 100%;clear: both;}.footer {position: relative;display: flex;justify-content: space-between;margin-top: 3rem;padding-top: 2rem;border-top: 1px solid #CCC;}.panel {position:
@qwerty13
qwerty13 / csv2jsonOnPy.py
Created June 8, 2023 07:15
Python CSV To JSON Converter (Each column in one array)
from collections import defaultdict
import csv
import json
def csv_to_json(csvFilePath, jsonFilePath):
# Make Dictionary with default "List"
jsonArray = defaultdict(list)
#read csv file
with open(csvFilePath, encoding='utf-8') as csvf:
@qwerty13
qwerty13 / negara.css
Last active July 24, 2023 10:50
Negara - Lightweight, CSS-Only and SVG-Based Icon pack Library (Usage: Add "n-icon" and "n-icon-<icon-name>" to <i>)
/*!
Negara.css v0.1.2 | github.com/qwerty13
Icons from "Lucide" and "Feather"
Edited by "URL-encoder for SVG" (https://yoksel.github.io/url-encoder)
*/
.n-icon{
-webkit-mask: var(--n-icon) no-repeat;
mask: var(--n-icon) no-repeat;
-webkit-mask-size: 100% 100%;