Skip to content

Instantly share code, notes, and snippets.

View tckb's full-sized avatar
:octocat:

Chandra (tckb) tckb

:octocat:
View GitHub Profile
workspace "pathfinder"{
model {
shopCustomer = person "Shop Customer" "An authenticated shop user who has accessn to storefront" "Customer"
ctp = softwareSystem "Commercetools" "Software System" {
ctpBackend = container "Backend"
ctpPersistance = container "Persistance" "Some kind of internal persistance, exact details aren't really relevant" "Persistance layer" "Database"
}
erp = softwareSystem "Dolibarr ERP system" "Software System"
crm = softwareSystem "Customer Relation Management System" "Software System"
@tckb
tckb / main.cpp
Created June 13, 2021 10:11
lorawan_node
#include "LoRaWan_APP.h"
#include "Arduino.h"
#include <CayenneLPP.h>
#include <Display.h>
/*LoRaWan related params */
// Helium OTAA params
// uint8_t devEui[] = {_SECRET_STUFF_};
// uint8_t appEui[] = {_SECRET_STUFF_};
Description: Tooling Cluster Worker Scaling Group Template
Parameters:
ClusterName:
Type: String
ClusterRegion:
Type: String
ClusterApiEndPoint:
Type: String
ClusterCAAuth:
Type: String
##### With input ELXIR - 5000 #####
Name ips average deviation median 99th %
downcase_ascii_patternMatch 6.82 K 146.64 μs ±88.38% 133 μs 390 μs
downcase_ascii_iodata 6.14 K 162.75 μs ±161.78% 133 μs 564 μs
Comparison:
downcase_ascii_patternMatch 6.82 K
downcase_ascii_iodata 6.14 K - 1.11x slower
Memory usage statistics:
##### With input ELXIR - 5000 #####
Name ips average deviation median 99th %
downcase_ascii_patternMatch 7.50 K 133.42 μs ±22.23% 133 μs 269 μs
downcase_ascii_iodata 7.28 K 137.39 μs ±19.84% 133 μs 258 μs
Comparison:
downcase_ascii_patternMatch 7.50 K
downcase_ascii_iodata 7.28 K - 1.03x slower
Memory usage statistics:
##### With input ELXIR - 500 #####
Name ips average deviation median 99th %
downcase - pattern_match 61.44 K 16.28 μs ±342.71% 12 μs 63 μs
downcase - stdlib 17.55 K 56.98 μs ±215.80% 39 μs 266 μs
Comparison:
downcase - pattern_match 61.44 K
downcase - stdlib 17.55 K - 3.50x slower
Memory usage statistics:
tckb@tckb-jvx [~/Documents/Work/wdt_build] ○ [10:28:58]
> cmake ../wdt -DBUILD_TESTING=1
-- The C compiler identification is AppleClang 8.0.0.8000042
-- The CXX compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
@tckb
tckb / GeoLocator-sim.py
Last active February 5, 2016 20:30
A python client to simulate device pushes into GeoLocator service
#!//usr/local/bin/python
# Author: tckb <chandra.tungathurthi@rwth-aachen.de>
# A python client to simulate device pushes into GeoLocator service
# Usage:
# ./GeoLocator-sim.py --show (-s) [devices/clusters]: shows devices or clusters available in server
# ./GeoLocator-sim.py --reset (-r) : resets the simulation devices
# ./GeoLocator-sim.py --addDevice : registers new device
# ./GeoLocator-sim.py --start (-S) : starts simulation
# ./GeoLocator-sim.py --help (-h) : prints this message
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.chemspider.www.examples;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
@tckb
tckb / SMSClient.java
Last active August 29, 2015 14:08
Code snippet to pop up the default sms client on Android
private void sendSMS(){
Intent smsIntent;
// Check the version of the android
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
{
// Get default sms package, if exists
String smsPackage = Telephony.Sms.getDefaultSmsPackage(this);
smsIntent = new Intent(Intent.ACTION_SEND);
smsIntent.setType("text/plain");