Guide to setup tools to record your terminal and share.
- Install asciinema
# install asciinema with
brew install asciinema
# start recording with:
asciinema rec
# to finish hit Ctrl-D or type exit.
# start recording to a file
// @ts-ignore | |
const fetch = require('node-fetch'); | |
function delay(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
async function* getBooksPaged({ q, pageSize, lastPageIndex }) { | |
let currentIndex = 0; | |
let isDone = false; |
Guide to setup tools to record your terminal and share.
# install asciinema with
brew install asciinema
# start recording with:
asciinema rec
# to finish hit Ctrl-D or type exit.
# start recording to a file
@NoArg | |
@JsonIgnoreProperties(ignoreUnknown = true) | |
data class Request( | |
var AAA: String?, | |
var BBB : String?, | |
var CCC: String? | |
) { | |
constructor(raw: String): this(null,null, null) { | |
val mapper = jacksonObjectMapper() | |
val request = mapper.readValue<Request>(raw) |
version: '2.1' | |
services: | |
cassandra: | |
image: cassandra:latest | |
networks: | |
- reactive-network | |
volumes: | |
- cassandra_data:/var/lib/cassandra | |
# - ${PWD}/data/cassandra/data:/var/lib/cassandra |
#!/usr/bin/env bash | |
set -e | |
rm -rf ~/.gvm | |
rm -rf ~/.sdkman | |
curl -s get.sdkman.io | bash | |
echo sdkman_auto_answer=true > ~/.sdkman/etc/config |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="styles.css"> | |
<script src="script.js"></script> | |
</head> | |
<body> | |
<div class='hr-table'> | |
<div class='hr-row'> | |
<div class='hr-cell'> | |
<div class='hr-header'>Heart Rate:</div> |
import { Http } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import { Observer } from 'rxjs/Observer'; | |
import 'rxjs/add/operator/share'; | |
import { Todo } from 'app/interfaces'; | |
export class TodosService { | |
todos$: Observable<Todo[]>; | |
private _todosObserver: Observer<Todo[]>; | |
private _dataStore: { |
@Grab('org.codehaus.groovy.modules.http-builder:http-builder:0.7') | |
@Grab('oauth.signpost:signpost-core:1.2.1.2') | |
@Grab('oauth.signpost:signpost-commonshttp4:1.2.1.2') | |
import groovy.json.JsonOutput | |
import groovyx.net.http.RESTClient | |
import static groovyx.net.http.ContentType.* | |
import org.apache.http.params.HttpConnectionParams | |
import com.crossbusiness.nifi.processors.NiFiUtils as util |