Skip to content

Instantly share code, notes, and snippets.

use actix_web::{
middleware, web, App, HttpResponse, HttpServer,
};
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
struct Person {
name: String,
number: i32,
}
const svgconfig = require("./svg.config");
const svgo = new SVGO(svgconfig);
@jschatz1
jschatz1 / brandIcon.js
Created September 25, 2019 15:49
Using Bulma: A little branding for your brand inputs
{
getters: {
brandIcon() {
return (text, defaultIcon) => {
const isBrand = brandIcons.includes(text.toLowerCase());
if (isBrand) {
return `fa-${text.toLowerCase()}`;
}
return `fa-${defaultIcon}`;
};
@jschatz1
jschatz1 / gitconfig
Created May 16, 2019 15:45
GitConfig
[alias]
a = add --all
ai = add -i
#############
ap = apply
as = apply --stat
ac = apply --check
#############
ama = am --abort
amr = am --resolved