Nvim recognizes the following events. Names are case-insensitive.
BufAdd
Just after creating a new buffer which is
added to the buffer list, or adding a buffer
<?php | |
it('redirects to the correct Google sign in url', function () { | |
$driver = Mockery::mock('Laravel\Socialite\Two\GoogleProvider'); | |
$driver->shouldReceive('redirect') | |
->andReturn(new RedirectResponse('https://redirect.url')); | |
Socialite::shouldReceive('driver')->andReturn($driver); | |
$this->get(route('oauth.redirect', 'google')) |
defmodule OperationsTest do | |
use ExUnit.Case, async: true | |
def make_mod() do | |
String.to_atom("Elixir.Test#{System.unique_integer([:positive])}") | |
end | |
describe "operation/2" do | |
setup do | |
mod = make_mod() |
shader_type canvas_item; | |
const vec4 background = vec4(1., 1., 1., 0.); | |
float dist(vec4 c1, vec4 c2) { | |
return (c1 == c2) ? 0.0 : abs(c1.r - c2.r) + abs(c1.g - c2.g) + abs(c1.b - c2.b); | |
} | |
bool similar(vec4 c1, vec4 c2, vec4 input) { | |
return (c1 == c2 || (dist(c1, c2) <= dist(input, c2) && dist(c1, c2) <= dist(input, c1))); |
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\SOFTWARE\Francophonie\Eudic\Customer Info] | |
"SerialCode"="cracked by Archon" | |
"TimesLeft3"=dword:000c85e7 | |
"regDate"="2024/1/1 00:00:00" | |
"LicenseCode"="cracked by Archon" |
# Start the tmux session if not alraedy in the tmux session | |
if [[ ! -n $TMUX ]]; then | |
# Get the session IDs | |
session_ids="$(tmux list-sessions)" | |
# Create new session if no sessions exist | |
if [[ -z "$session_ids" ]]; then | |
tmux new-session | |
fi |
# Batch convert all .ppt/.pptx files encountered in folder and all its subfolders | |
# The produced PDF files are stored in the invocation folder | |
# | |
# Adapted from http://stackoverflow.com/questions/16534292/basic-powershell-batch-convert-word-docx-to-pdf | |
# Thanks to MFT, takabanana, ComFreek | |
# | |
# If PowerShell exits with an error, check if unsigned scripts are allowed in your system. | |
# You can allow them by calling PowerShell as an Administrator and typing | |
# ``` | |
# Set-ExecutionPolicy Unrestricted |
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.