final fakeActivities = List<LitterRobotActivity>.from(
LitterRobotUnitStatus.values.map(
(unitStatus) => LitterRobotActivity(
litterRobotId: 'x',
unitStatus: unitStatus,
timestamp: DateTime.now()
.subtract(Duration(seconds: Random().nextInt(60 * 60 * 8))),
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---------------------------------- slp header ------------------------------- | |
| /* file version 0 0x00 */ 0x32, 0x2e, 0x30, 0x4e, | |
| /* shape count 4 0x04 */ 0x00, 0x00, 0x00, 0x00, | |
| /* comment 8 0x08 */ 0x74, 0x65, 0x73, 0x74, | |
| /* 12 0x0C */ 0x20, 0x73, 0x6C, 0x70, | |
| /* 16 0x10 */ 0x20, 0x63, 0x6F, 0x6D, | |
| /* 20 0x14 */ 0x6D, 0x65, 0x6E, 0x74, | |
| /* 24 0x18 */ 0x2C, 0x20, 0x62, 0x6C, | |
| /* 28 0x1C */ 0x61, 0x68, 0x2E, 0x2E, | |
| // ---------------------------------- shape 1 header --------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Requires: jq 1.5 | |
| ########## | |
| # Hello and welcome! | |
| # Quick note: Comments in a jq program file (which this is!) begin with a '#'. | |
| # | |
| # The comments in this file assume you have ran `empires2json` on your AoE's `empires.dat` file | |
| # and stored the result in a `empires-dat.json` file on disk. | |
| # | |
| # To make use of this file you will need `jq` 1.5 (or a later version) installed (see https://stedolan.github.io/jq/). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| What follows is a description of the SLP format. | |
| The actual author wishes to remain unknown, please email bryce@lanset.com with | |
| your questions. However, I did not write this document. | |
| Header | |
| This structure totals 32 bytes and is packed to 1-byte boundaries. | |
| typedef struct Shape_File_Header | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| 101: "1", | |
| 102: "Copperplate Gothic Light", | |
| 103: "Comic Sans MS", | |
| 104: "Arial", | |
| 110: "Copperplate Gothic Light", | |
| 111: "12", | |
| 112: "B", | |
| 113: "Copperplate Gothic Light", | |
| 114: "21", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; ----------------------------------------------------------------------------- | |
| (require '[clojure.spec.alpha :as spec] | |
| #_'[clojure.string :as str] | |
| #_'[clojure.edn :as edn] | |
| #_'[clojure.java.io :as io] | |
| ;; non-stdlib deps | |
| '[clojure.spec.gen.alpha :as spec-gen] ;; org.clojure/test.check 1.1.0 | |
| '[clojure.data.json :as json] ;; org.clojure/data.json 2.3.1 | |
| #_'[datascript.core :as ds] ;; datascript 1.1.0 | |
| #_'[datascript.transit :as dsts]) ;; datascript-transit 0.3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace CSharpLib | |
| { | |
| public class CSharpClass | |
| { | |
| public int Add(int a, int b) | |
| { | |
| return a + b; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " vim-plug {{{ | |
| call plug#begin('~/.nvim/plugged') | |
| Plug 'git@github.com:kien/ctrlp.vim.git' | |
| Plug 'git@github.com:scrooloose/syntastic.git' | |
| Plug 'git@github.com:itchyny/vim-cursorword.git' | |
| Plug 'git@github.com:itchyny/lightline.vim.git' | |
| Plug 'git@github.com:vim-scripts/Align.git' | |
| Plug 'git@github.com:terryma/vim-multiple-cursors.git' | |
| Plug 'git@github.com:mhinz/vim-startify.git' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| #### | |
| # | |
| # Invoke like this: | |
| # | |
| # $ ./ynab.py ./data.json | |
| # | |
| # -or- | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.0.0 | |
| info: | |
| description: Our API uses a REST based design, leverages the JSON data format, and relies | |
| upon HTTPS for transport. We respond with meaningful HTTP response codes and | |
| if an error occurs, we include error details in the response body. API | |
| Documentation is at https://api.youneedabudget.com | |
| version: 1.0.0 | |
| title: YNAB API Endpoints | |
| tags: | |
| - name: User |
NewerOlder