One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
logging { | |
level = "debug" | |
format = "logfmt" | |
// Soon™ | |
// write_to = loki.write.grafanacloud.receiver | |
} | |
/* CRI-formatted log lines. | |
I'm cheating and just redirecting from stdin for the demo :sweat_smile: */ |
$ aws apigateway create-rest-api --name lambda-trigger-api | |
HEADER 2020-11-05T20:24:08+02:00 False <api-id> lambda-trigger-api | |
TYPES EDGE | |
$ aws apigateway get-rest-api --rest-api-id <api-id> | |
HEADER 2020-11-05T20:24:08+02:00 False <api-id> lambda-trigger-api | |
TYPES EDGE | |
$ aws apigateway get-resources --rest-api-id <api-id> | |
ITEMS <api-root-id> / |
import re | |
def is_hex(word): | |
match = re.match("^[a-f]*$", word) | |
return match is not None | |
with open('/usr/share/dict/american-english') as file: | |
lines = file.readlines() | |
for item in lines: | |
if is_hex(item.lower()) and len(item)>2: |
package main | |
import ( | |
"fmt" | |
"os" | |
"sync" | |
"time" | |
"strconv" | |
) |
package main | |
import "fmt" | |
import "sync" | |
func ambString(str []string) chan []string { | |
c := make(chan []string) | |
go func() { | |
for _, s := range str { | |
c <- []string{s} |
package main | |
import ( | |
"fmt" | |
"os" | |
"bytes" | |
"unsafe" | |
"sync" | |
_"runtime" | |
) |
A simple example to create a websocket server and stream tweets of a specific hashtag to your browser.
$ sudo npm install socket.io
$ sudo npm install twitter
Get your Standard Twitter API credentials from https://apps.twitter.com/ .
Make sure to include any valid URL (eg. https://www.google.com
) as the Callback URL, so that the keys can work as a browser app
.
import numpy as np | |
def np2lat(A): | |
filename = 'table.tex' | |
f = open(filename, 'a') | |
cols = A.shape[1] | |
# Change alignment and format of your output | |
tabformat = '%.3f' | |
tabalign = 'c'*cols |
function mat2lat(A) | |
filename = 'tabular.tex'; | |
fileID = fopen(filename, 'w+'); | |
[rows, cols] = size(A); | |
% Change alignment of your output with the following character | |
tabalign = repmat('c', 1, cols); | |
fprintf(fileID,'\\begin{table}[h] \n'); |