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/sh | |
LOC="/etc/resolvconf/resolv.conf.d/head" | |
if [[ $1 = "remove" ]]; then | |
echo "nameserver 1.1.1.1" | sudo tee $LOC | |
elif [[ $1 = "begzar" ]]; then # begzar.ir | |
echo "nameserver 185.55.226.26" | sudo tee $LOC | |
echo "nameserver 185.55.225.25" | sudo tee -a $LOC |
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
## originally writeen for brother Omar. thanks to: | |
## https://github.com/nramos0/binhex4-rs/ | |
## https://gist.github.com/i-e-b/fe0a0158ae61973802a9 | |
import std/[strutils, sequtils, os] | |
type | |
DecodedHqxContent = distinct string | |
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() | |
{ | |
int | |
x = 8, | |
m = 6, | |
y = (x ^ 2 < m + 4) ? (4 * m) : (8 * m); |
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() | |
{ | |
int | |
x = 10, | |
y = 15, | |
m = 4; |
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() | |
{ | |
float | |
y = 7, | |
m = 4, | |
p = 5, | |
k = 8, |
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() | |
{ | |
// :::::: defining variable styles :::::: | |
// way 1 | |
{ | |
int a, b, c, d; | |
a = 1; |
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() | |
{ | |
int | |
y = 4, | |
m = 2, | |
p = 3; | |
float |
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
import std/macros | |
import macroplus | |
# ----- impl | |
template emp: untyped = newEmptyNode() | |
func resolveParams(rawParams: openArray[NimNode]): seq[NimNode] = | |
template init = | |
result.add newNimNode nnkIdentDefs |
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
import std/strutils | |
type BookFeatures = enum | |
bfIntroAndDownload = "معرفی و دانلود" | |
bfIntroAndPurchase = "معرفی، خرید و دانلود" | |
bfFreeContent = "رایگان" | |
bfBook = "کتاب" | |
bfAudioBook = "کتاب صوتی" | |
bfPodcast = "پادکست" |
NewerOlder