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
| package io.github.onliniak.qr_scanner | |
| import android.os.Bundle | |
| import android.util.Log | |
| import androidx.activity.ComponentActivity | |
| import androidx.activity.compose.rememberLauncherForActivityResult | |
| import androidx.activity.compose.setContent | |
| import androidx.activity.result.contract.ActivityResultContracts | |
| import androidx.activity.result.launch | |
| import androidx.compose.material.Button |
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
| let obliczenia = 0; | |
| math = {} | |
| math.dodaj = 5 | |
| math.razy = 3 | |
| function oblicz(matm) { | |
| sort = Object.entries(matm).sort((k, v) => k[0].localeCompare(v[0])); | |
| for (i = 0; i < sort.length; i++) { | |
| switch (sort[i][0]) { | |
| case "dodaj": |
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
| <?php | |
| function createRoutes(){ | |
| $routes = array(); | |
| array_push($routes, ['hello' => hello()]); | |
| array_push($routes, ['hello123' => hello123()]); | |
| return $routes; | |
| } | |
| function hello(){ | |
| return 'Hello World !'; |
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
| const str = | |
| `A: | |
| a: 1 | |
| c: 3 | |
| b: 9 | |
| f: 3 | |
| B: | |
| a: 3 | |
| c: 5 | |
| s: 4` |
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
| class Parser | |
| def initialize | |
| @templates = {} | |
| @definitions = {} | |
| prepare_templates | |
| prepare_methods | |
| delegate | |
| end |
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
| require "./router.cr" | |
| server = HTTP::Server.new(Router.new) | |
| server.bind_tcp "127.0.0.1", 8080 | |
| server.listen |
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
| for x in {1..100000}; do time curl http://0.0.0.0:8080/ ; done ; |
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
| Greeting, <%= @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
| php spark serve -host 0.0.0.0 -port 4000 | |
| ngrok http 0.0.0.0:4000 | |
| Inspired by Passenger Phusion Server |