Skip to content

Instantly share code, notes, and snippets.

View maghis's full-sized avatar

Massimo Andreasi Bassi maghis

View GitHub Profile

Keybase proof

I hereby claim:

  • I am maghis on github.
  • I am maghis (https://keybase.io/maghis) on keybase.
  • I have a public key ASAricVS_st6K9N_fuqM0Idw_O7Bu_XZVHiOAsR7Bjw00wo

To claim this, I am signing this object:

@maghis
maghis / sleep-session.js
Last active March 3, 2023 05:40
Format of a sleep session
{
"intervals": [ // a collection of sleep sessions (or intervals)
{
"id": "1488258600", // id of the interval
"ts": "2017-02-28T05:10:00.000Z", // time the session starts in ISO 8601 format
"stages": [ // the sleep stages of the session
{
"stage": "awake", // each stage can be any of "awake" (in bed, awake), "out" (out of bed), "light" (in light sleep), "deep" (in deep sleep)
"duration": 1024 // duration of the stage, in seconds
},
@maghis
maghis / gist:6647059
Created September 21, 2013 03:54
match_game_id
{"field": "game_id", "comparer": "=", "value": 44554}