Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title>Test dark mode</title>
<style type="text/css">
body.dark {
background-color: #212529;
color: #6c757d;
}
@jc91715
jc91715 / gist:f3fb2cfc150da7a3e6c7e4e9a7ad52fb
Created June 28, 2019 11:21 — forked from tobek/get-image-urls.js
Save images from chrome inspector network tab
/* right click on an entry in the network log, select Copy All as Har
* type in console: x = [paste]
* paste the following JS code into the console
* copy the output, paste into a file
* then wget -i [that file]
*/
(function(logObj, mime) {
var results = [];
logObj.log.entries.forEach(function (entry) {
if (mime && entry.response.content.mimeType !== mime) return;
https://press.one/p/address/v?s=92c81d04ccd6f2f9a93a055a776cfd1d8a829c4fd73a3163d894640c1006241ffc0c981f56b1d83ec0e586e5e976461fb0935aac9c77b7daa9765a77414d2a100&h=c70c21d8d0ccb8611efd9fb9a8dbd04aa1ebfed56d2aede55a56a758c13e1272&a=d56c3210dc996845db178d293580f55073236777&f=P1&v=2
@jc91715
jc91715 / README.md
Created April 15, 2018 01:00 — forked from hofmannsven/README.md
Notes on working with October CMS
@jc91715
jc91715 / gist:987c14991336a0b90cb75ba597ebfb07
Created November 10, 2017 07:58
Excel export 和 import code
创建
```
\Excel::create(
'name',
function ($excel) {
$excel->sheet(
'name',
function ($sheet) {
$records=[];
$title=[];
@jc91715
jc91715 / gist:de7d154a69899bef8f0955684dcf7f0e
Created November 10, 2017 07:55
octobecms 弹出层修改数据,优雅的解决方案
按钮 可放在 field.yaml 和 columns.yaml 中 type: partial
```
<a
href="javascript:;"
class="btn btn-xs"
data-control="popup"
data-handler="onLoadUserItemForm"
data-request-data="id:<?=$record->id?>"
data-size="large">
查看报名