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
from itertools import permutations | |
comb = permutations([1, 2, 3], 3) | |
for i in comb: | |
print(i) |
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
for (j = 1; j <= n; j++) { | |
for (i = 0; i < n-1; i++) { | |
temp = num[i]; | |
num[i] = num[i+1]; | |
num[i+1] = temp; | |
print(num, n); | |
} | |
} |
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
void print(int *A, int N) | |
{ | |
int i; | |
for ( i = 0 ; i < N ; i++) | |
printf("%d ", *(A + i); | |
printf("\n"); | |
} |
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> | |
#include <stdlib.h> | |
int *read(int); | |
int oria(int,int); | |
int readx(); | |
int ready(); | |
int oriay(int,int); | |
void printc(int *); | |
int poscomb(int); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CAM1 - Peristera's Shipwreck - Alonissos Greece</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style type="text/css"> | |
html, body { | |
background-color: #111; | |
text-align: center; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CAM1 - Peristera's Shipwreck - Alonissos Greece</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style type="text/css"> | |
html, body { | |
background-color: #111; | |
text-align: center; | |
} |
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
--- | |
version: "2.1" | |
services: | |
piwigo: | |
image: ghcr.io/linuxserver/piwigo | |
container_name: piwigo | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Europe/London |
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
CREATE TABLE points_of_interest( | |
id BIGINT(20) UNSIGNED NOT NULL PRIMARY KEY | |
,type_id BIGINT(20) UNSIGNED NOT NULL | |
,name VARCHAR(77) NOT NULL | |
,latitude FLOAT NOT NULL | |
,longitude FLOAT NOT NULL | |
,active BIT NOT NULL | |
,created_at DATETIME NOT NULL | |
,updated_at DATETIME NOT NULL | |
,description VARCHAR(85) NOT 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
server { | |
listen 80; | |
server_name localhost; | |
port_in_redirect off; | |
autoindex on; | |
add_header Access-Control-Allow-Origin *; | |
location / { | |
root /spa; | |
try_files $uri $uri/ /index.html; | |
} |
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
#!/usr/bin/env bash | |
starting_port=$1 | |
ending_port=$2 | |
free_range=true | |
function check_range { | |
echo "Checking if range is free..." | |
for i in $(seq $starting_port $ending_port); do | |
echo "Checking port $i" |
OlderNewer