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 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 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 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 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 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 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 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 |
This file contains 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
swagger: '2.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 | |
schemes: | |
- https | |
host: api.youneedabudget.com | |
basePath: /v1 | |
tags: |
This file contains 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 bash | |
##### What / Why / How ##### | |
# | |
# - What | |
# | |
# This script makes it simple to intercept, typically for viewing by a human, | |
# the stdin and stdout of a process, such as a language server binary. | |
# | |
# |
NewerOlder