This file contains hidden or 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
const TimeHelper = (() => { | |
const units = [ | |
{ name: 'year', millis: 31536000000 }, | |
{ name: 'month', millis: 2592000000 }, | |
{ name: 'week', millis: 604800000 }, | |
{ name: 'day', millis: 86400000 }, | |
{ name: 'hour', millis: 3600000 }, | |
{ name: 'minute', millis: 60000 }, | |
{ name: 'second', millis: 1000 }, | |
]; |
This file contains hidden or 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
use actix_web::{ | |
middleware, web, App, HttpResponse, HttpServer, | |
}; | |
use serde::{Deserialize, Serialize}; | |
#[derive(Debug, Serialize, Deserialize)] | |
struct Person { | |
name: String, | |
number: i32, | |
} |
This file contains hidden or 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
const svgconfig = require("./svg.config"); | |
const svgo = new SVGO(svgconfig); |
This file contains hidden or 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
{ | |
getters: { | |
brandIcon() { | |
return (text, defaultIcon) => { | |
const isBrand = brandIcons.includes(text.toLowerCase()); | |
if (isBrand) { | |
return `fa-${text.toLowerCase()}`; | |
} | |
return `fa-${defaultIcon}`; | |
}; |
This file contains hidden or 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
[alias] | |
a = add --all | |
ai = add -i | |
############# | |
ap = apply | |
as = apply --stat | |
ac = apply --check | |
############# | |
ama = am --abort | |
amr = am --resolved |