This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
#!/bin/bash | |
phpversion=$1 | |
[ -z "$phpversion" ] && { echo "Please input php version. for example: 7.0"; exit 1;} | |
phpextdir=$(php -r "echo ini_get('extension_dir');") | |
[ ! -f "/usr/bin/php$phpversion" ] && { echo "PHP version $phpversion not found! /usr/bin/php$phpversion"; exit 1;} | |
sudo update-alternatives --set php /usr/bin/php$phpversion && | |
sudo update-alternatives --set phar /usr/bin/phar$phpversion && | |
sudo update-alternatives --set phar.phar /usr/bin/phar.phar$phpversion && |
خورشت | کلم پلو | کوکو | دمپخت | ماهیپلو | قلیه ماهی | آش | کوفته | خورشت کرفس | دلمه | سوپ | آش غوره | آش ماست | آش شلغم | ترشتره | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
برگ چغندر | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | |
ترخون | FALSE | TRUE | FALSE | TRUE | FALSE | FALSE | FALSE | TRUE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | |
تره | TRUE | TRUE | TRUE | TRUE | FALSE | FALSE | TRUE | TRUE | FALSE | TRUE | TRUE | TRUE | TRUE | TRUE | FALSE | |
جعفری | TRUE | FALSE | TRUE | FALSE | TRUE | FALSE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | |
ریحان | FALSE | TRUE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | |
سیر | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | |
شاهی | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | |
شلغم | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | |
شملیز | TRUE | FALSE | FALSE | FALSE | TRUE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE |
// algorithms from php version of https://jdf.scr.ir/download/ | |
package cal | |
import ( | |
"log" | |
"strconv" | |
"strings" | |
"time" | |
"github.com/jalaali/go-jalaali" |
#!/bin/bash | |
tar -zcf /backups/backup-$(date +%Y%m%d).tar.gz --absolute-names /data | |
rm -f /backups/backup-$(date -d 'now - 7 days' +%Y%m%d).tar.gz |
// delete all origin branch that deleted from origin and stay in your local | |
git fetch -p | |
// chekout to main brach to prevent delete it from local | |
git checkout master | |
// delete all local branch | |
git branch | xargs git branch -d | |
// delete all origin branch that don't deleted from origin and stay in your local | |
git branch | xargs git branch -D | |
// now you have master branch in local |
import { useState, useEffect } from "react"; | |
import { AxiosPromise } from "axios"; | |
interface IState<T = any> { | |
isLoading: boolean; | |
isError: boolean; | |
data: T; | |
} | |
const initialState: IState = { |