Skip to content

Instantly share code, notes, and snippets.

{
"IssuedUtc":"2017-04-05T10:43:17+02:00",
"BillId":"99e177d5-121c-4d86-8693-fa1d8656ceae",
"RegisterId":"99e177d5-552d-121c-8693-fa1b8656c32a",
"BillNumber":"RP20170000001",
"TaxIdentfier": "SK123465798",
"Payments":[
{
"Type":"PaymentType.Cash",
"Value":109.00,
// PHP verze zde: https://phpfashion.com/jak-overit-platne-ic-a-rodne-cislo
function checkDate(m, d, y) {
// discuss at: http://phpjs.org/functions/checkdate/
// original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// improved by: Pyerre
// improved by: Theriault
// example 1: checkdate(12, 31, 2000);
// returns 1: true
function checkDate(m, d, y) {
// discuss at: http://phpjs.org/functions/checkdate/
// original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// improved by: Pyerre
// improved by: Theriault
// example 1: checkdate(12, 31, 2000);
// returns 1: true
// example 2: checkdate(2, 29, 2001);
// returns 2: false
{
"name": "MewsCommander",
"version": "0.0.1",
"description": "Mews commander",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"bower": "^1.3.3",
"grunt": "^0.4.5",
"load-grunt-tasks": "^3.2.0",
{"SpaceTypeOccupancies":[{"RoomCategoryOccupancies":[{"Occupancies":[{"Available":16,"Reserved":16,"Value":1},{"Available":16,"Reserved":12,"Value":0.75},{"Available":16,"Reserved":16,"Value":1},{"Available":16,"Reserved":16,"Value":1},{"Available":16,"Reserved":15,"Value":0.9375},{"Available":16,"Reserved":11,"Value":0.6875},{"Available":16,"Reserved":14,"Value":0.875},{"Available":16,"Reserved":14,"Value":0.875},{"Available":16,"Reserved":10,"Value":0.625},{"Available":16,"Reserved":12,"Value":0.75},{"Available":16,"Reserved":12,"Value":0.75},{"Available":16,"Reserved":16,"Value":1},{"Available":16,"Reserved":13,"Value":0.8125},{"Available":16,"Reserved":15,"Value":0.9375}],"RoomCategoryId":"e89f2afa-6346-425b-b0fd-685a1263b97a"},{"Occupancies":[{"Available":25,"Reserved":22,"Value":0.88},{"Available":25,"Reserved":19,"Value":0.76},{"Available":25,"Reserved":16,"Value":0.64},{"Available":25,"Reserved":20,"Value":0.8},{"Available":25,"Reserved":24,"Value":0.96},{"Available":25,"Reserved":25,"Value":1},{"Avai
### Keybase proof
I hereby claim:
* I am jirihelmich on github.
* I am jirihelmich (https://keybase.io/jirihelmich) on keybase.
* I have a public key whose fingerprint is 8C83 987C 4A69 3B03 55F4 D45E 5BA7 8062 36F4 B4DE
To claim this, I am signing this object:
package payola
// AUTO-GENERATED Slick data model
/** Stand-alone Slick data model for immediate use */
object Tables extends {
val profile = scala.slick.driver.H2Driver
} with Tables
/** Slick data model trait for extension, choice of backend or usage in the cake pattern. (Make sure to initialize this late.) */
trait Tables {
val profile: scala.slick.driver.JdbcProfile
@jirihelmich
jirihelmich / VirtuosoStorage.scala
Created March 19, 2014 23:34
Store graph in virtuoso via HTTP Graph Store Protocol
def storeGraphGraphProtocol(graphURI: String, graph: Graph){
val httpSuffix = if(endpointUsesSSL){"s"}else{""}
val requestUri = String.format("http%s://%s:%s/sparql-graph-crud-auth?graph-uri=%s", httpSuffix, server, endpointPort.toString, graphURI)
val creds = new UsernamePasswordCredentials(sqlUsername, sqlPassword)
val httpclient = new DefaultHttpClient()
val post = new HttpPost(requestUri)
post.addHeader("X-Requested-Auth", "Digest")
post.addHeader("Content-Type", "application/xml")
try {
private def buildDistinctValuesQuery(property: String): String = {
String.format(
"""
| PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
| SELECT DISTINCT ?o ?l WHERE {
| [] <%s> ?o .
|
| OPTIONAL { ?o rdfs:label ?l . FILTER (LANG(?l) = 'en') }
|