Skip to content
View JulaineScott's full-sized avatar
🌲
🌲

Highlights

  • Pro
Block or Report

Block or report JulaineScott

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

  1. drop shadows the better way drop shadows the better way
    1
    //@source https://codepen.io/joshwcomeau/pen/mdVZKwr
    2
    .drop-shadow {
    3
      filter: drop-shadow(2px 4px 8px hsla(0deg, 0%, 0%, 0.5))
    4
    }
    5
    
                  
  2. Loading Content Based on Request Loading Content Based on Request
    1
    //bring in a dib with an id of part1 from another page:
    2
    $('#newArticle').load('inc/anotherPage.html #part1');
    3
    
                  
    4
    //simple ajax load of content (ie no post/get) from an external file
    5
    $('a[href="writeNew"]').click(function(e){ e.preventDefault(); $('#newArticle').load('inc/userWrite.php');});
  3. Colorize SVG Colorize SVG
    1
    style="filter: invert(.95) sepia(.95);"
  4. Lots of helpful CSS classes Lots of helpful CSS classes
    1
    .mt0{margin-top:0!important;}
    2
    .mt2{margin-top:2px!important;}
    3
    .mt5{margin-top:5px!important;}
    4
    .mt10{margin-top:10px!important;}
    5
    .mt15{margin-top:15px!important;}
  5. Change php files to slugs Change php files to slugs
    1
    #1)externally redirect "/file.php" to "/file"   
    2
    RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
    3
    RewriteRule ^ /%1 [NC,L,R]
    4
    #2)Internally map "/file" back to "/file.php"
    5
    RewriteCond %{REQUEST_FILENAME}.php -f
  6. Parse PHP Doc Blocks Parse PHP Doc Blocks
    1
    <?php
    2
    
                  
    3
    class DocBlock {
    4
        
    5
        public $docblock,