Skip to content

Instantly share code, notes, and snippets.

<?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) パスワードチェック
// -------------------
@think49
think49 / find-corresponding-from-string.js
Last active May 2, 2021 07:23
find-corresponding-from-string.js: 「開始文字列」と「終了文字列」で括られた対応関係を最長一致でマッチします。
/**
* find-corresponding-from-string.js
*
* @version 1.0.0
* @author think49
* @url https://gist.github.com/think49/53b4a2cedfcff3c1a1ea40390a7ff3d8
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License)
*/
'use strict';
@JacobDB
JacobDB / inline-svg-function.scss
Created January 26, 2017 17:45 — forked from B-iggy/inline-svg-function.scss
Inline SVG function [SASS]
// Replace letters
@function str-replace($string, $search, $replace: '') {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
}
@return $string;
}
@awkale
awkale / css-order.md
Last active April 29, 2024 09:18
#CSS Declaration order

css property order

Related property declarations should be grouped together following the order:

  1. Positioning
  • position
  • top
  • right
  • bottom
  • left
  • z-index