When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| var mediaJSON = { "categories" : [ { "name" : "Movies", | |
| "videos" : [ | |
| { "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
| "subtitle" : "By Blender Foundation", | |
| "thumb" : "images/BigBuckBunny.jpg", | |
| "title" : "Big Buck Bunny" | |
| }, | |
| { "description" : "The first Blender Open Movie from 2006", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
Published: 8 February, 2024
Updated: 7 April, 2026
This guide will help you get your Apple Studio Display, ProDisplay XDR, Magic Keyboard, Magic Mouse, Magic Trackpad, etc. to work with a Windows 11 PC that doesn’t have native support for BootCamp. I wrote this guide because most methods that I could find elsewhere were either out of date, had sketchy download links, had compatibility issues with Windows 11 version 23H2, didn't support Windows Precision Touchpad, didn’t support all the modules in the BootCamp app, or didn’t explain how to get the most up to date Apple official drivers.
| <?php | |
| add_action('admin_init', function () { | |
| // Redirect any user trying to access comments page | |
| global $pagenow; | |
| if ($pagenow === 'edit-comments.php') { | |
| wp_redirect(admin_url()); | |
| exit; | |
| } |
| <?php | |
| $options = array('http' => array('user_agent' => 'custom user agent string')); | |
| $context = stream_context_create($options); | |
| $response = file_get_contents('http://domain/path/to/uri', false, $context); |
| /* | |
| * CSS Time to Milliseconds | |
| * by Jake Bellacera (http://jakebellacera.com) | |
| * ============================================ | |
| * | |
| * Converts CSS time into milliseconds. Useful for timing functions around CSS animations. | |
| * It supports both seconds (s) and milliseconds (ms). | |
| * | |
| * Arguments: | |
| * time_string - string representation of a CSS time unit (e.g. "1500ms" or "1.5s") |
| function getCSSTransitionDuration ({ | |
| element, | |
| ms = false | |
| }) { | |
| return (parseFloat(window.getComputedStyle(element).transitionDuration)) * (ms ? 1000 : 1) | |
| } | |
| getCSSTransitionDuration({ | |
| element: document.querySelector('header') | |
| }); //0.25 |
| // Move Yoast to bottom | |
| function yoasttobottom() { | |
| return 'low'; | |
| } | |
| add_filter( 'wpseo_metabox_prio', 'yoasttobottom'); |
| If you’re anything like me who didn't want to pay for github before their new business strategy, then most likely you use BitBucket or hosted your own (come ‘on, it was free!). Problem with that is now your activities or contributions are fragmented between the different services. Now that I've chosen GitHub, I found myself migrating the git repos. | |
| Here is my copy and paste script I use for migration which also carries your history, which without it, defeats the purpose of it! | |
| $ cd ~/Sites/repo-directory | |
| $ git remote rename origin bitbucket | |
| $ git remote add origin git@github.com:JMichaelVelasquez-change-user/your-new-repo.git | |
| $ git push origin master |