Skip to content

Instantly share code, notes, and snippets.

Pantelis Zirinis zirinisp

Block or report user

Report or block zirinisp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zirinisp
zirinisp / Firecloud Nearby GeoQuery
Created Apr 27, 2018
Firecloud Nearby GeoQuery
View Firecloud Nearby GeoQuery
import CoreLocation
extension CLLocationCoordinate2D {
func boundingBox(radius: CLLocationDistance) -> (max: CLLocationCoordinate2D, min: CLLocationCoordinate2D) {
// 0.0000089982311916 ~= 1m
let offset = 0.0000089982311916 * radius
let latMax = self.latitude + offset
let latMin = self.latitude - offset
// 1 degree of longitude = 111km only at equator
@zirinisp
zirinisp / ZohoIagtmEndOfDayReport
Created Nov 4, 2017
Zoho Creator Script for End of Day Report on Zoho Books
View ZohoIagtmEndOfDayReport
// Slack Urls
debugSlackUrl = "https://hooks.slack.com/services/...";
eodReportSlack = "https://hooks.slack.com/services/...";
// Zoho Books
zohoBooksOrganisationId = "...";
cashCustomerId = ...;
creditCardCustomerId = ...;
otherCustomerId = ...;
zohoBooksPettyCashAccountId = ...;
// Zoho Invoice
@zirinisp
zirinisp / SlackLogger.swift
Created Jul 1, 2017
Slack Logger for Swift Kitura
View SlackLogger.swift
import Foundation
import LoggerAPI
import KituraRequest
import SwiftyJSON
struct SlackField {
var title: String
var value: String
var short: Bool = false
You can’t perform that action at this time.