Skip to content

Instantly share code, notes, and snippets.

View webbingstudio's full-sized avatar
🤤
Working from home

うぇびんさん webbingstudio

🤤
Working from home
View GitHub Profile
<?php
// ----------------------
// a-blog cms バックアップ
// update 2022/03/04
// ----------------------
# 指定すると DOMAIN_YYYYMMDDHHMMSS.zip で
# sql , archives , archives_rev , storage , media , themes , config.system.yaml
# を圧縮してバックアップします。
@kazumich
kazumich / a-copy.php
Last active August 18, 2022 02:36
a-blog cms のデータ(DB / archives / archives_rev / storage / media)を同じサーバー内の別の a-blog cms にコピーする仕組み
<?php
// ----------------------
// a-blog cms
// update 2022/03/15
// ----------------------
// -------------------
// 2) パスワードチェック
// -------------------
@tamshow
tamshow / imgの呼び出し
Created December 7, 2018 01:43
a-blog cms カスタムフィールドのHTML部分をインクルード化するサンプル
@include("/include/field-parts/template/img.html", {"field":"hoge"})
<input type="hidden" name="field[]" value="hoge">
<input type="hidden" name="hoge:extension" value="image">
<input type="hidden" name="hoge@size" value="1400">
<input type="hidden" name="hoge@filename" value="">
@terkel
terkel / _decimal.scss
Last active November 23, 2023 18:36
Rounding decimals in Sass
// _decimal.scss | MIT License | gist.github.com/terkel/4373420
// Round a number to specified digits.
//
// @param {Number} $number A number to round
// @param {Number} [$digits:0] Digits to output
// @param {String} [$mode:round] (round|ceil|floor) How to round a number
// @return {Number} A rounded number
// @example
// decimal-round(0.333) => 0