- [TDD] Write tests and / or docs before the implementation (even for pet and proof-of-concept projects)
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 fs = require('fs'); | |
| const path = require('path'); | |
| const gulp = require('gulp'); | |
| const Mem = require('gulp-mem'); | |
| const data = require('gulp-data'); | |
| const JSON5 = require('json5'); | |
| const twig = require('gulp-twig'); | |
| const bs = require('browser-sync').create(); | |
| const sass = require('gulp-sass'); |
This file has been truncated, but you can view the full file.
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
| ❯ cargo lipo | |
| [INFO cargo_lipo::meta] Will build universal library for ["flutter_rust_bridge_example"] | |
| [INFO cargo_lipo::lipo] Building "flutter_rust_bridge_example" for "aarch64-apple-ios" | |
| Compiling cfg-if v1.0.0 | |
| Compiling scopeguard v1.1.0 | |
| Compiling lazy_static v1.4.0 | |
| Compiling encoding_index_tests v0.1.4 | |
| Compiling adler v1.0.2 | |
| Compiling adler32 v1.2.0 | |
| Compiling smallvec v1.7.0 |
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
| docker run -it --rm \ | |
| --name php74_composer \ | |
| -v "$PWD":/usr/src/myapp \ | |
| -w /usr/src/myapp \ | |
| php:7.4.33-cli sh -c "pwd; apt-get update && apt-get install -y unzip; \ | |
| curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php; \ | |
| php composer.phar create-project --no-install --no-interaction --no-scripts --prefer-dist cakephp/app:\"3.6.5\" my_app_name; \ | |
| cd my_app_name; \ | |
| php ../composer.phar config --no-plugins allow-plugins.cakephp/plugin-installer true; \ | |
| php ../composer.phar install --ignore-platform-reqs; \ |
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 chrono::{serde::ts_seconds, DateTime, Utc}; | |
| use serde::{Deserialize, Serialize}; // 1.0.153 // 0.4.23 | |
| #[derive(Debug, Serialize, Deserialize, PartialEq)] | |
| #[serde(tag = "_type")] | |
| pub enum Leave { | |
| #[serde(rename = "administrative")] | |
| Administrative { | |
| id: u8, | |
| user_id: u8, |
OlderNewer