Skip to content

Instantly share code, notes, and snippets.

View mavarazy's full-sized avatar
😀

Anton O. mavarazy

😀
View GitHub Profile
@mavarazy
mavarazy / topTracker.sc
Created July 17, 2017 10:21
TopTracker combine by description and round in Scala
import java.io._
import java.time.{LocalDate, LocalTime, Month}
import scala.io.Source
case class Event(
description: String,
project: String,
duration: LocalTime,
start: LocalTime,
@mavarazy
mavarazy / togglConsoleCSV.js
Last active July 4, 2017 19:14
Small hack to extract CSV of worked hours from toggl (run in browser console)
let elements = document.getElementsByClassName("TimeEntriesList__list");
let report = Array.apply(null, elements).map(function(el) {
// Do stuff here
let summary = el.getElementsByClassName("DayListItem__container")[0];
let date = summary.getElementsByTagName("div")[1].textContent;
let total = summary.getElementsByClassName("DayListItem__totalTime")[0].textContent;
let itemsHtml = el.getElementsByClassName("ListItem__item");
let items = Array.apply(null, itemsHtml).map((el) => {
let description = el.getElementsByClassName("Description__container")[0].textContent;
@mavarazy
mavarazy / index.html
Last active August 29, 2015 14:10 — forked from JoshMock/index.html
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css" media="all">
#main {
width: 300px;
height: 400px;
overflow: scroll;
}