- 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 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 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 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 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 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 net = require('node:net'); | |
function keepAlive(ephPort, intervalId) { | |
const socket = new net.Socket(); | |
socket.setTimeout(1000); | |
socket.connect(port, process.env.GWROK_IP, () => socket.destroy()); | |
// stop the interval, indicate either the gwrok server no longer accept request | |
// or just bad internet connection and should retry if this is the case. | |
// for now we not perform retry, just stop the interval. | |
socket.on('timeout', () => { |
This file contains 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
// sorting alphabet | |
// reference: https://stackoverflow.com/a/64693036/22382954 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main(void) | |
{ | |
srand(time(NULL)); |
This file contains 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
# Transparent SOCKS proxy | |
# See: http://darkk.net.ru/redsocks/ | |
*nat | |
:PREROUTING ACCEPT [0:0] | |
:INPUT ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:POSTROUTING ACCEPT [0:0] | |
:REDSOCKS - [0:0] |
OlderNewer