Skip to content

Instantly share code, notes, and snippets.

View imvkmark's full-sized avatar
🎯
永无止境

多厘 imvkmark

🎯
永无止境
View GitHub Profile
@imvkmark
imvkmark / url
Last active June 18, 2021 11:23
https://jdc.jd.com/img/100
@imvkmark
imvkmark / index.html
Created February 27, 2020 02:08
JS Bin 自定义Checkbox/Radio // source https://jsbin.com/movisel
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="自定义Checkbox/Radio">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
dt {
padding: 1rem;
#!/usr/bin/env bash
work_path=$(cd "$(dirname "$0")" && pwd)
root_path=$(dirname "$(dirname "$(dirname "$work_path")")")
echo "Current Work Path : '$work_path'"
echo "Current Code Path : '$root_path'"
@imvkmark
imvkmark / cloudSettings
Last active September 6, 2020 13:15
vscode.settings
{"lastUpload":"2020-09-06T13:15:45.961Z","extensionVersion":"v3.4.3"}
@imvkmark
imvkmark / send-slow.sh
Created May 6, 2019 03:38
线上服务器发送慢日志
#!/bin/bash
/usr/bin/sed -n "/# Time: `date +%F`/,/# Time: `date +%F`/"p /var/lib/mysql/iZ28gwro9uqZ-slow.log > /tmp/slow-select.log
/usr/local/bin/mysqlsla --log-type slow --sort c_sum /tmp/slow-select.log > /tmp/slow-select.txt
python /var/lib/mysql-slow/sendemail.py
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
<?php
if (preg_match("/^data:image\/(?<extension>(?:png|gif|jpg|jpeg));base64,(?<image>.+)$/", $item->user->face_image, $matchings)) {
$imageData = base64_decode($matchings['image']);
$extension = $matchings['extension'];
$filename = sprintf('user-%s.%s', $item->user->id, $extension);
$disk->put('face_image/' . $filename, $imageData);
}
@imvkmark
imvkmark / area.php
Created November 30, 2018 03:39
[todo] 地区待集成
/**
* Linkage 地区
* @param $name
* @param null $value
* @param array $options
* @return string
*/
public function areaLinkage($name, $value = null, $options = []) {
$options['id'] = $this->getIdAttribute($name, $options);
if (!$options['id']) {
@imvkmark
imvkmark / backend.blade.php
Last active November 30, 2018 03:34
poppy 分页
@extends('lemon.template.desktop_metronic')
@section('desktop-main')
{!! Form::model(\Input::all(), ['method' => 'get', 'class'=> 'form-search']) !!}
{!! Form::label('cat_id','分类') !!}
{!! Form::select('cat_id', \App\Models\DuobaoCategory::kvLinear(),null, ['placeholder' => '分类']) !!}
{!! Form::select('is_on', App\Models\DuobaoGoods::kvIsOn(), null, ['placeholder' => '是否活动']) !!}
{!! Form::select('status', App\Models\DuobaoGoods::kvStatus(), null, ['placeholder' => '商品状态']) !!}
{!! Form::label('market_price','市场价') !!}
{!! Form::text('market_price',null,['placeholder' => '输入价格']) !!}
{!! Form::button('<i class="fa fa-search"> </i>', ['class'=> 'btn blue', 'type'=> 'submit']) !!}
@imvkmark
imvkmark / router-link.js
Created November 30, 2018 03:28
vue 路由