Skip to content

Instantly share code, notes, and snippets.

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

Alexander Buder aBuder

🏠
Working from home
  • Freelancer
  • Neuruppin
View GitHub Profile
This file has been truncated, but you can view the full file.
curl --location --request POST 'https://hrv.healyworld.net' \
--header 'x-api-key: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJkcml2ZUlkIjoxMDA0ODQsInVybCI6Ind3dy50ZXJyYWRyaXZlOC5kZS9hcGkyMCIsImtleSI6ImM1ZGIzNGUwYjk3Y2ViNWM5NjU0NDlhMzU0MzE4OTAyIiwiZXhwIjoxNjQ3MTAzNjc1fQ.vd8QJmUOafNWgPKR1o-eiHP8TralIaxcZ1hiBRIX3YYoSq4wRySAu4ApLh5LxlfH9dmiTVCVtsSAzQG6IiVnUw' \
--header 'Content-Type: application/json' \
--data-raw '{
"ecg": [
2531,
2387,
2278,
2187,
2051,
@aBuder
aBuder / main.dart
Last active September 18, 2020 11:01
Flutter Modal and DraggableScrollableSheet
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
final GlobalKey<NavigatorState> overviewTabKey = GlobalKey<NavigatorState>();
final GlobalKey<NavigatorState> searchTabKey = GlobalKey<NavigatorState>();
final GlobalKey<NavigatorState> favoriteTabKey = GlobalKey<NavigatorState>();
final GlobalKey<NavigatorState> profileTabKey = GlobalKey<NavigatorState>();
void main() {
runApp(MyApp());
@aBuder
aBuder / Modals
Created September 18, 2020 10:58
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
final GlobalKey<NavigatorState> overviewTabKey = GlobalKey<NavigatorState>();
final GlobalKey<NavigatorState> searchTabKey = GlobalKey<NavigatorState>();
final GlobalKey<NavigatorState> favoriteTabKey = GlobalKey<NavigatorState>();
final GlobalKey<NavigatorState> profileTabKey = GlobalKey<NavigatorState>();
void main() {
runApp(MyApp());
@aBuder
aBuder / models.dart
Created August 15, 2018 20:00
Models
class Plan {
final String objectId;
final String name;
final String text;
final DateTime startedAt;
final DateTime endedAt;
final String createdAt;
Plan(
{this.objectId,
@aBuder
aBuder / DeleteUser.js
Last active May 30, 2018 06:36
Cloud Functions
// Cloud Function to delete one ore more User object
//
// {
// "objectIds": ["mmspeGP9Ke"]
// }
//
//
Parse.Cloud.define('deleteUser', function(request, response) {
request.log.info('CloudFunction deleteUser : called params - ' + JSON.stringify(request.params));
request.log.info('CloudFunction deleteUser : called user - ' + JSON.stringify(request.user));
@aBuder
aBuder / models.py
Last active December 15, 2021 06:32
AccommodationViewSet
class AdvertisementType(models.Model):
name = models.CharField(max_length=255, blank=False, null=False, verbose_name='Name') # name of feature
created = models.DateField(auto_now=True) # created date
def __unicode__(self):
return u'{0} - {1}'.format(self.id, self.name)
class Accommodation(models.Model):
name = models.CharField(max_length=255, blank=False, null=False, verbose_name='Name') # name of the accommodation
description = models.TextField(blank=True, null=True, verbose_name='Allgemeine Beschreibung') # classification of object like '3 Stars'
@aBuder
aBuder / gist:bb9f3f5305170ff52948
Created March 18, 2015 14:10
Play-Wamp-Webrtc
/*
* Copyright (c) 2015 Alexander Buder . All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
var wamp_session = null;
var peer_connection= null;
type Exception report
message Servlet.init() for servlet estructor threw exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet estructor threw exception
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
@aBuder
aBuder / gist:63cc09eb62e9e007b5ec
Last active August 29, 2015 14:16
REST-Angular Best Configuration
RestangularProvider.setBaseUrl("/web");
RestangularProvider.setListTypeIsArray(false);
RestangularProvider.setResponseExtractor(function(response, operation, what, url) {
var rootScope = angular.element(document).injector().get('$rootScope');
rootScope.$emit('UNLOAD');
if (operation === "getList") {
console.log('RestAngular: getList');
@aBuder
aBuder / Beschreibung
Created September 5, 2014 09:18
Beschreibung der Rest API für gemeinsames SPA Projekt
Die Rest Api sollte 'todo' Objekte ausliefern, erzeugen und ändern. Ein 'todo' Objekt hat folgende Struktur.````
{
'id': int | long | text
'name': text,
'done': false | true,
'created' long
}