Firstly install httpie
sudo apt-get install httpie
Next in firs console run server
php -S 0.0.0.0:8000
In second consoel run sender
| import fs from 'fs' | |
| interface YearData { | |
| [key: string]: { | |
| col: number, | |
| div: number, | |
| values: { [key: string]: number }[] | |
| } | |
| } |
| !! Colorscheme | |
| ! special | |
| *.foreground: #93a1a1 | |
| *.background: #141c21 | |
| *.cursorColor: #afbfbf | |
| ! black | |
| *.color0: #263640 | |
| *.color8: #4a697d |
| # This file has been auto-generated by i3-config-wizard(1). | |
| # It will not be overwritten, so edit it as you like. | |
| # | |
| # Should you change your keyboard layout some time, delete | |
| # this file and re-run i3-config-wizard(1). | |
| # | |
| # i3 config file (v4) | |
| # | |
| # Please see https://i3wm.org/docs/userguide.html for a complete reference! |
| <html> | |
| <body> | |
| <style class="style"></style> | |
| <pre></pre> | |
| <script> | |
| let style = ` | |
| body { |
| <?php | |
| $host = 'localhost'; | |
| $user = 'root'; | |
| $pass = ''; | |
| $database = 'ingrid'; | |
| $file = 'ABBREV.csv'; | |
| $db = new PDO("mysql:dbname=".$database.";host=".$host, $user, $pass); |
Firstly install httpie
sudo apt-get install httpie
Next in firs console run server
php -S 0.0.0.0:8000
In second consoel run sender
| <?php | |
| // config | |
| $data = [ | |
| 'email' => '[email protected]', | |
| 'url' => 'http://example.com', | |
| 'ip' => '123.15.12.211' | |
| ]; |
| <?php | |
| function divide($divider, $dividend) { | |
| if ($divider == 0){ | |
| throw new InvalidArgumentException("Divide by zero error"); | |
| } | |
| if ($divider < 0){ | |
| throw new OutOfRangeException ("Divide is lover then zero"); | |
| } |
| <?php | |
| // definicje funkcji | |
| // funkcja przyjmuje ścieżkę i czas w sekundach dla którego | |
| // chemy usunąć pliki stworzone przed tym czasem | |
| function clear($path,$time) | |
| { | |
| // listujemy wszystki pliki z danej lokaci |
| #!/usr/bin/env perl | |
| use warnings; | |
| use strict; | |
| use HTML::TagParser; | |
| my $url = 'http://blog.gustawdaniel.pl'; | |
| my @tags = ("h1 h2 h3 h4 li p","pre"); | |
| print "| text | code | title \n"; |