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
use std::future::{ready, Ready}; | |
use actix_web::{ | |
body::EitherBody, | |
dev::{self, Service, ServiceRequest, ServiceResponse, Transform}, | |
web, Error, HttpResponse, | |
}; | |
use futures_util::future::LocalBoxFuture; | |
use crate::{types::GenericResponse, utils::is_request_length_valid}; |
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/sh | |
now=$(date +"%T") | |
servers=(server1 server2 server3) | |
selectedServer=${servers[ $RANDOM % ${#servers[@]} ]} | |
echo "Randmoly Selected $selectedServer for getting information..." | |
echo "Conntecting to the server..." |
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 | |
# upgrade ubuntu and install snapd | |
sudo apt update && apt upgrade -y | |
sudo apt install -y snapd | |
sudo snap install shadowsocks-libev | |
# server configurations | |
sudo mkdir -p /var/snap/shadowsocks-libev/common/etc/shadowsocks-libev |
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
<template> | |
<div class="range-slider"> | |
<span class="line"></span> | |
<span ref="fillLine" class="fill-line"></span> | |
<ul> | |
<li v-for="value in values" :key="value" @click="makeItemActive"> | |
{{ value.title }} | |
</li> | |
</ul> | |
</div> |
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
// List of all cards | |
const cards = [ | |
{ | |
62198619: { | |
persian: 'بلو', | |
english: 'blue', | |
}, | |
}, | |
{ | |
603799: { |
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/sh | |
# Root access? | |
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@" | |
# set tab size to 4 spaces | |
tabs 4 | |
echo "Enter your network name: " | |
read NETPLAN_NAME |
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
import multiprocessing as mp | |
import random | |
from typing import List | |
class ParallelSummation: | |
def __init__(self) -> None: | |
self.matrix: List = [] | |
def randomize_matrix(self, n: int, m: int) -> List: |
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
<template> | |
<v-row no-gutters> | |
<v-col v-if="tableLength > 0" cols="12" style="width: 100%;overflow: auto;"> | |
<div dir="rtl" role="table"> | |
<slot name="header"></slot> | |
<slot name="body"></slot> | |
</div> | |
</v-col> | |
<v-col v-else> | |
<div style="width:100%;margin:0 auto"> |
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
{"lastUpload":"2022-03-01T18:01:59.668Z","extensionVersion":"v3.4.3"} |
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
name: CI | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: |
NewerOlder