Skip to content

Instantly share code, notes, and snippets.

View kutakmir's full-sized avatar
🏠
Working from home

Miroslav Kuťák kutakmir

🏠
Working from home
View GitHub Profile
@kutakmir
kutakmir / gist:07bf523d753bd583c0c4fa25c9e3538b
Created June 9, 2019 08:31
How to save some data to the Firebase Database with a callback
Database.database().reference().child("myFantasticUniqueKey").setValue("some data") { (error: Error?, reference: DatabaseReference) in
if let error = error {
print("Error: \(error.localizedDescription)")
} else {
print("Success!")
}
}
@kutakmir
kutakmir / bugsee_jira.txt
Created January 13, 2019 03:03
Bugsee Jira integration - recipe that works!
function create(context) {
const issue = context.issue;
const platform = context.platform;
const device = context.device;
const app = context.app;
let description = issue.description || '';
if (description) {
// Add two newlines to separate other data from the description