This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function shortcode_custom_date($fmt) { | |
extract(shortcode_atts(array( | |
'format' => 'Ymd' | |
), $fmt)); | |
return date($format); | |
} | |
add_shortcode('custom_date', 'shortcode_custom_date'); | |
// usage: [custom_date format="r"] // Thu, 29 Jun 2023 14:49:05 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>canopy test results</title> | |
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | |
<style> | |
.masthead ul, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"personal_info": { | |
"name": "first last", | |
"age": 0, | |
"phone": "000-000-0000", | |
"email": "[email protected]", | |
"address": "address", | |
"website": "https://dev.to" | |
}, | |
"cv": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function baseGrad() { | |
let g = new LinearGradient() | |
g.locations = [0, 1] | |
return g | |
} | |
function gradBaseBlackTop(clr) { | |
let g = baseGrad() | |
g.colors = [ | |
new Color("141414"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WSL Configuration | |
## Update Ubuntu components: | |
Update and upgrade system | |
sudo apt-get update && sudo apt-get upgrade | |
Install LAMP stack (note the caret) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var iter = rl("Iterations:"); | |
var iterInt = Convert.ToInt32(iter); | |
long val1 = 0; | |
long val2 = 1; | |
for (int i = 1; i < iterInt; i++) { | |
long calc = val1 + val2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
[<EntryPoint>] | |
let main argv = | |
let rec DoFib val1 val2 i = | |
if i > 0 then | |
let calc = val1 + val2 | |
if i = 1 then | |
Console.Write(calc.ToString()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Outlook Space Liberation | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Gains that space back by annoying ads and upgrade prompts. | |
// @author fischgeek | |
// @match https://outlook.live.com/mail/* | |
// @grant none | |
// @require http://code.jquery.com/jquery-1.12.4.min.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Notification { | |
;Things to configure: | |
; Font,color,size title | |
; Font,color,size body | |
; duration | |
; pop in location/behavior | |
Title := "" | |
TitleSize := 30 | |
TitleColor := "7FA2CF" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clear-Host | |
# Point to the makemkvcon.exe (https://www.makemkv.com/download/) | |
Set-Alias makemkv "C:\Program Files (x86)\MakeMKV\makemkvcon.exe" | |
# Point to the HandBrakeCLI.exe (https://handbrake.fr/downloads2.php) | |
Set-Alias handbrake "C:\Program Files\Handbrake\HandBrakeCLI.exe" | |
# Define where your Plex library is (final resting place) | |
$plex = "\\server\plex\movies" |
NewerOlder