/ is the default page or the home page.
It will be fetching these from the backend: - categories - popular-destinations
| #! /bin/zsh | |
| zmodload zsh/datetime | |
| start=$EPOCHREALTIME | |
| for i in {1..100}; | |
| do | |
| PGPASSWORD=password psql -U localadmin testing -c "select count(*) from pg_stat_activity;" > /dev/null; | |
| done | |
| end=$EPOCHREALTIME | |
| echo "Test 1 Elapsed Time: $((end-start))"; |
| #! /bin/zsh | |
| zmodload zsh/datetime | |
| start=$EPOCHREALTIME | |
| PGPASSWORD=password psql -U localadmin testing \ | |
| -c "DO | |
| \$do\$ | |
| BEGIN | |
| FOR i IN 1..100 LOOP |
| #! /bin/zsh | |
| zmodload zsh/datetime | |
| start=$EPOCHREALTIME | |
| for i in {1..100}; | |
| do | |
| PGPASSWORD=password psql -U localadmin testing -c "select count(*) from pg_stat_activity;" > /dev/null; | |
| done | |
| end=$EPOCHREALTIME | |
| echo "Elapsed Time: $((end-start))"; |
| from github import Github | |
| # pip install PyGithub | |
| ORG_NAME = 'YOUR_ORG' | |
| ACCESS_TOKEN = 'YOUR_ACCESS_TOKEN' | |
| g = Github(ACCESS_TOKEN) | |
| me = g.get_user() | |
| watching_repos = list(me.get_watched()) | |
| watching_orgs_repos = [r for r in watching_repos if r.owner.login == ORG_NAME] |
Did a brief survey of the existing website to analyse the current data structures.
The data structures are written in a pseudo schema below (i.e it doesn't define the structure in any language, it's just for you to understand, you can implement it in any database/language).
It's not the permanent structure and doesn't represent the existing as whole. Subject to change.
| const initFalling = ball => { | |
| /* Constants */ | |
| const ballHeight = 100 | |
| const acceleration = 9.8 / 60; | |
| const { innerHeight } = window; | |
| /* Variable to denote the speed of the ball */ | |
| let fallingSpeed = 0; | |
| const animateFall = () => { | |
| const top = parseInt(ball.style.top); |
| #include <dht.h> | |
| // For DHT11 sensor | |
| dht DHT; | |
| // PINS | |
| #define DHT11_PIN A7 | |
| #define SMOISTURE_PIN A0 | |
| #define PDIODE_PIN A1 | |
| #define LED_PIN D5 | |
| #define MOTOR_PIN |
| # variable and printing | |
| set x 10 | |
| set y 25 | |
| set z [expr $x*$y] | |
| puts $x | |
| puts "x + y = [expr $x+$y]" | |
| # conditional | |
| if { $x > 9 } { |