View pytest_mock_api.py
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
class Api(): | |
def persons(self): | |
return ['hek2mgl', 'lgm2keh'] | |
class App(Api): | |
def hello_messages(self): | |
msg = [] |
View get_request_uri
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
function get_request_uri() { | |
$url = 'http'; | |
if(isset($_SERVER['https']) && $_SERVER['https'] == 'on') { | |
$url .= 's'; | |
} | |
$url .= '://'; | |
$url .= $_SERVER['SERVER_NAME']; |
View mkalien.sh
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
#!/bin/bash | |
if [ $# != 2 ] ; then | |
echo "usage $0 PATH_TO_BINARY TARGET_FOLDER" | |
exit 1 | |
fi | |
PATH_TO_BINARY="$1" | |
TARGET_FOLDER="$2" |
View gist:937912
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
hello world |