Skip to content
View karlazz's full-sized avatar
  • herself
  • Walnut Creek, CA

Block or report karlazz

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. a trace function for wordpress debug... a trace function for wordpress debugging
    1
    //* add a trace file
    2
    $upload_dir = wp_upload_dir(); 
    3
    define('TRACEFILE', $upload_dir['basedir'] . '/trace.log');
    4
    function trace($log) {
    5
    	$prefix = current_time( 'mysql' ) . ": " ;
  2. 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>
  3. Make a table from a javascript object Make a table from a javascript object
    1
    function arrayToTable(data) {
    2
            const keys = [...data.reduce((all, obj)=>{
    3
                Object.keys(obj).forEach(key => all.add(key));
    4
                return all;
    5
            }, new Set())];
  4. sticky table headers, scrolling rows sticky table headers, scrolling rows
    1
    #table-container {
    2
      overflow-y: scroll;
    3
      height: 100vh; /* or whatever */
    4
    }
    5
    
                  
  5. Open a file download from php Open a file download from php
    1
    
                  
    2
    header('Content-Description: File Transfer');
    3
    header('Content-Type: application/octet-stream');
    4
    header('Content-Disposition: attachment; filename='.basename( $file_complete ) );
    5
    header('Expires: 0');
  6. 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 {