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
package io.fouad.demo.db; | |
public interface UserDao { | |
@SqlUpdate("CREATE TABLE user (id INTEGER PRIMARY KEY, name VARCHAR)") | |
void createTable(); | |
@SqlUpdate("INSERT INTO user(id, name) VALUES (?, ?)") | |
void insertPositional(int id, String name); | |
@SqlUpdate("INSERT INTO user(id, name) VALUES (:id, :name)") |
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
name: Use Python Poetry cache on GitHub Actions workflow | |
on: | |
push: | |
branches: | |
- main | |
env: | |
PYTHON_VERSION: "3.11" | |
POETRY_VERSION: "1.4.2" |
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
import os | |
import piexif | |
from fractions import Fraction | |
def to_deg(value, loc): | |
"""convert decimal coordinates into degrees, munutes and seconds tuple | |
Keyword arguments: value is float gps-value, loc is direction list ["S", "N"] or ["W", "E"] | |
return: tuple like (25, 13, 48.343 ,'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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"net/url" | |
) | |
const ( |