-
herself
- Walnut Creek, CA
Pinned Loading
-
a trace function for wordpress debug...
a trace function for wordpress debugging 1//* add a trace file
2$upload_dir = wp_upload_dir();
3define('TRACEFILE', $upload_dir['basedir'] . '/trace.log');
4function trace($log) {
5$prefix = current_time( 'mysql' ) . ": " ;
-
write a map to a file
write a map to a file 1<!DOCTYPE html>
2<html>
3<head>
4<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
5<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.js" type="text/javascript"></script>
-
Make a table from a javascript object
Make a table from a javascript object 1function arrayToTable(data) {
2const keys = [...data.reduce((all, obj)=>{
3Object.keys(obj).forEach(key => all.add(key));
4return all;
5}, new Set())];
-
sticky table headers, scrolling rows
sticky table headers, scrolling rows 1#table-container {
2overflow-y: scroll;
3height: 100vh; /* or whatever */
4}
5 -
Open a file download from php
Open a file download from php 12header('Content-Description: File Transfer');
3header('Content-Type: application/octet-stream');
4header('Content-Disposition: attachment; filename='.basename( $file_complete ) );
5header('Expires: 0');
-
Fluid truly responsive text and spac...
Fluid truly responsive text and spacing with calc in CSS 1/* baseline sizes for use on screen width > 1699, want it fixed here */
2// or you can use css clamp --
3// https://www.smashingmagazine.com/2022/01/modern-fluid-typography-css-clamp/ */
4// https://developer.mozilla.org/en-US/docs/Web/CSS/clamp
5.sidebar .top {
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.