Demo.mp4
Inspired by Shiki Magic Move
This code uses Google's diff-match-patch library to animate code transformations in Manim.
Inspired by Shiki Magic Move
This code uses Google's diff-match-patch library to animate code transformations in Manim.
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Git smart switch | |
Like `git switch` but stashing uncommitted changes and recovering them when you are back. | |
# Install |
'use strict' | |
let Promise = require('bluebird'); | |
let fs = Promise.promisifyAll(require('fs')); | |
let Cheerio = require('cheerio'); | |
let Request = require('request'); | |
let ToughCookie = require('tough-cookie'); | |
class Session { |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
import { startSpan } from "@sentry/remix"; | |
import type { StartSpanOptions } from "@sentry/types"; | |
import { | |
type AnyColumn, | |
type AnyTable, | |
type BuildQueryResult, | |
type DBQueryConfig, | |
type DrizzleTypeError, | |
type Equal, | |
type ExtractTablesWithRelations, |
If you're working on a project that requires a version of PHP higher than the versions that MAMP comes with, you can easily add additional verions.
My version of MAMP came installed with PHP 7.4.21 and 8.0.8. I'm attempting to use MAMP to host a Laravel application which requires at least PHP 8.1.
The version of PHP MAMP uses is often different than the version you have installed. I have installed PHP using Brew. I'm currently running PHP 8.1.8. If you want to check your installed version of PHP, use the terminal and run the following command:
php --version
This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.
On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that
{% comment %} | |
* | |
* This loop loops through a collection called `collection_name` | |
* and sorts it by the front matter variable `date` and than filters | |
* the collection with `reverse` in reverse order | |
* | |
* To make it work you first have to assign the data to a new string | |
* called `sorted`. | |
* | |
{% endcomment %} |
function Find-VisualStudio() { | |
Write-Information "Finding VisualStudio .exe path" | |
$vsWherePath = join-path ${env:ProgramFiles(x86)} "\Microsoft Visual Studio\Installer\vswhere.exe" | |
Write-Debug "Checking for vswhere.exe at $vsWherePath" | |
if (-not (Test-Path $vsWherePath)) { | |
Write-Error "vswhere.exe not found at $vsWherePath" | |
exit 1 | |
} | |
Write-Debug "Finding VisualStudio Installation Location using:" |