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
# Configuration file for lab. | |
c = get_config() #noqa | |
#------------------------------------------------------------------------------ | |
# Application(SingletonConfigurable) configuration | |
#------------------------------------------------------------------------------ | |
## This is an application. | |
## The date format used by logging formatters for %(asctime)s |
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/sh | |
export DBUSER=postgres | |
export DBNAME=database | |
export DBHOST=localhost | |
export DBPORT=5432 | |
export DBOPTIONS= | |
export PGPASSWORD= | |
docker run --rm -e PGPASSWORD=${PGPASSWORD} postgres:latest pg_dump ${DBOPTIONS} \ |
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
{ | |
"python.defaultInterpreterPath": "./.venv/bin/python", | |
"python.linting.enabled": true, | |
"[python]": { | |
"editor.insertSpaces": true, | |
"editor.tabSize": 4 | |
}, | |
"files.exclude": { | |
".ruff_cache": true, | |
".pytest_cache": true, |
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
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
# IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES | |
# OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | |
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
# OTHER DEALINGS IN THE SOFTWARE. | |
# | |
# No Rights Reserved |
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: '3' | |
services: | |
nginx: | |
image: tiangolo/nginx-rtmp:latest | |
restart: unless-stopped | |
ports: | |
- 21935:1935 |
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
var counter = 0 | |
var counterText = null | |
fun main() { | |
println("Hello from InteractiveClient") | |
MainMenu { | |
Container(top = 60dp, right = 20dp, bottom=60dp, left = 20dp) { | |
Vertical(spacing = 0, left = 0, right = 0, verticalAlign = "center") { | |
Container( |
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
# https://github.com/KonradIT/gopro-py-api | |
import json | |
import datetime | |
from goprocam import GoProCamera, constants | |
goproCamera = GoProCamera.GoPro() | |
status = json.loads(goproCamera.getStatusRaw()).get('status') | |
status_time = status.get('40', [])[1:].split('%') | |
time_parts = [int(item, 16) for item in status_time] | |
if time_parts: | |
time_parts[0] += 2000 |
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
"""Simple server to host static files for development. | |
Installation: | |
python3 -m venv ~/.virtualenvs/simple | |
source ~/.virtualenvs/simple/bin/activate | |
pip install cherrypy | |
python server.py | |
Snippet source: |
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
Show hidden characters
[ | |
{ | |
"class": "sidebar_label", | |
"font.bold": false, | |
"font.size": 16 | |
}, | |
{ | |
"class": "tab_label", | |
"font.bold": false, | |
"font.size": 14 |
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
// MyPageRenderer.cs | |
// | |
// No Rights Reserved | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
// | |
// Define custom Xamarin.Forms renderer for iOS platform | |
// for page you want to show as modal. View controller | |
// for the page is wrapped into internal Xamarin.Forms | |
// wrapper class and we can access it as parent. | |
// |
NewerOlder