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
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import matplotlib | |
sns.set(rc={'figure.figsize':(14,12)}) | |
file_name = "duration_per_project.csv" | |
df = pd.read_csv(file_name, ';') |
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
#include <M5StickCPlus.h> | |
// the setup routine runs once when M5StickC starts up | |
void setup() { | |
// initialize the M5StickC object | |
M5.begin(); | |
// Lcd display | |
M5.Lcd.fillScreen(WHITE); |
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
import ( | |
"fmt" | |
"io/ioutil" | |
"time" | |
"github.com/dgrijalva/jwt-go" | |
) | |
func signingWithHMAC() { |
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
server* |
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
FROM haproxy:1.7 | |
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg |
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
FROM haproxy:1.7 | |
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg |
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
// mapping suggestion for ESP32, e.g. LOLIN32 D32 PRO | |
// BUSY -> 15 | |
// RST -> 2 | |
// DC -> 0 | |
// CS -> 5 | |
// CLK -> SCK(18) | |
// DIN -> MOSI(23) | |
// GND -> GND | |
// 3.3V -> 3.3V | |
// note: use explicit value for CS |
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
package main | |
import ( | |
"os" | |
"text/template" | |
"time" | |
) | |
type Todo struct { | |
Name string |
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
# yum install -y rpm-build rpmdevtools yum-utils centos-release-scl-rh | |
# rpmdev-setuptree | |
# mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp} | |
# spectool -g -R rpmbuild/SPECS/neovim.spec | |
# yum-builddep -y rpmbuild/SPECS/neovim.spec | |
# source scl_source enable devtoolset-6 | |
# rpmbuild -ba rpmbuild/SPECS/neovim.spec | |
%define build_timestamp %(date +"%Y%m%d%H%M") |
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
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/gobuffalo/plush" | |
) | |
func main() { |