- typography | max 2 font style (common base style combination are serif (for the content) and sans-serif (for the heading/title)
- color scheme & color theory like gradient | max ?
- icon | max 1 style icon, pick your best!
- consistent components property like:
- rounded in the shape like card
- size of headline, content, and etc...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func main() { | |
| binaryLength := 8 | |
| var maxValueInDecimal float64 = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main() { | |
| printf("Hello World!"); | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main(void) { | |
| char buf[10]; | |
| fread(buf, 1, 10, stdin); | |
| fwrite(buf, 1, 10, stdout); | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # used for checking grammar, it uses Internal Field Separator | |
| # related link: https://stackoverflow.com/questions/454427/string-difference-in-bash | |
| # todo: figuring out a better algorithm than checking word by word in a linear fashion | |
| # Function to compare two words | |
| compare_words() { | |
| local word1="$1" | |
| local word2="$2" | |
| if [[ "$word1" != "$word2" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const socket = new WebSocket("ws://localhost:8080") | |
| socket.onopen = function (e) { | |
| alert('[open] connection established') | |
| alert('sending data to server') | |
| socket.send('My name is who am i?'); | |
| } | |
| socket.onmessage = function (ev) { | |
| alert(`[message] data received from srv: ${ev.data}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/sh | |
| watch -n 0.1 "date +\"%d-%m-%Y %H:%M:%S.%9N\"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { get } = require("node:https") | |
| require('dotenv').config(); | |
| function fetch(url) { | |
| return new Promise((resolve, reject) => { | |
| get(url, (res) => { | |
| let buff = Buffer.alloc(0); | |
| res.on("data", chunk => buff = Buffer.concat([buff, Buffer.from(chunk)])) | |
| res.on("error", reject) | |
| res.on("end", () => resolve(buff)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { spawn } = require('node:child_process') | |
| const readline = require('node:readline'); | |
| const { stdin: input, stdout: output } = require('node:process'); | |
| const rl = readline.createInterface({ input, output }); | |
| const shell = spawn('sh') | |
| shell.stdout.on('data', (data) => { | |
| process.stdout.write(data.toString()) |
OlderNewer