Skip to content

Instantly share code, notes, and snippets.

View leoruhland's full-sized avatar

Leonardo Ruhland leoruhland

View GitHub Profile

Ionic Utils

Ionic + Angular + Capacitor

Utilities for working quick and simple. Don't reinventing the wheel.

Modules

#!/bin/bash
export IP=""
if [ -z "${VERSION}" ]; then
export VERSION="1.0.7"
fi
ARCHITECTURE=$(dpkg --print-architecture)
CLOUDPANEL_DEB_URL=https://github.com/cloudpanel-io/cloudpanel-ce/releases/download/v$VERSION/cloudpanel.deb
@RestResource(urlMapping='/dedup/*')
global with sharing class AAA_DEDUP{
@HttpPost
global static List<Contact> findContacts(List<Contact> cons) {
List<Contact> cons1 = new List<Contact>();
List<Contact> cons2 = new List<Contact>();
List<Contact> cons3 = new List<Contact>();
List<Contact> cons4 = new List<Contact>();
List<Contact> cons5 = new List<Contact>();
@leoruhland
leoruhland / TogglCsv.js
Created January 30, 2020 12:52
Transform raw data from Toggl to a summarizing information grouping duration hours by task.
const csv = require('csv-parser');
const fs = require('fs');
const createCsvWriter = require('csv-writer').createObjectCsvWriter;
const csvWriter = createCsvWriter({
path: 'out.csv',
header: [
{ id: 'date', title: 'Date' },
{ id: 'project', title: 'Project' },
{ id: 'description', title: 'Description' },
{ id: 'duration', title: 'Hours' },