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
# npx create-next-app@latest nextjs-dashboard --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example" |
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
<!-- Example: Load jQuery using defer --> | |
<script defer src="path/to/jquery.js"></script> | |
<!-- Inline script that waits for deferred jQuery to load before executing --> | |
<script> | |
window.addEventListener('DOMContentLoaded', function() { | |
(function($) { | |
// Put your custom code here | |
})(jQuery); | |
}); |
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
<script>console.log(JSON.parse('<isprint value="${JSON.stringify(someObject)}" encoding="jsonvalue"/>'));</script> |
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
MyAddon = LibStub("AceAddon-3.0"):NewAddon("MyAddon") | |
MyAddon.version = "1.0" | |
local Console = LibStub("AceConsole-3.0") | |
local L = LibStub("AceLocale-3.0"):GetLocale("MyAddon") | |
-- Register slash command /myaddon | |
MyAddon:RegisterChatCommand("myaddon", "MyAddonCommand") |
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
client | |
dev tun | |
proto udp | |
remote us-california.privateinternetaccess.com 1198 | |
remote us-east.privateinternetaccess.com 1198 | |
remote us-west.privateinternetaccess.com 1198 | |
remote us-siliconvalley.privateinternetaccess.com 1198 | |
remote us-texas.privateinternetaccess.com 1198 | |
remote us-newyorkcity.privateinternetaccess.com 1198 | |
remote us-midwest.privateinternetaccess.com 1198 |
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
#!/bin/sh | |
echo "Starting Transmission Torrent Downloading" | |
transmission-remote --auth transmission:transmission --torrent all --start |
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
#!/bin/sh | |
echo "Stopping Transmission Torrent Downloading" | |
transmission-remote --auth transmission:transmission --torrent all --stop |
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
/// map-sort | |
/// Sort map by keys | |
/// @param $map - A SASS map | |
/// @returns A SASS map sorted by keys | |
/// @requires function list-sort | |
/// @author Jake Wilson <[email protected]> | |
@function map-sort($map) { | |
$keys: list-sort(map-keys($map)); | |
$sortedMap: (); | |
@each $key in $keys { |
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
/// list-sort | |
/// Sort a SASS list | |
/// @param $list - A SASS list | |
/// @returns A sorted SASS list | |
/// @requires function list-remove | |
/// @author Jake Wilson <[email protected]> | |
@function list-sort($list) { | |
$sortedlist: (); | |
@while length($list) > 0 { | |
$value: nth($list,1); |
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
/// list-remove | |
/// Remove an item from a list | |
/// @param $list - A SASS list | |
/// @param $index - The list index to remove | |
/// @returns A SASS list | |
/// @author Jake Wilson <[email protected]> | |
@function list-remove($list, $index) { | |
$newList: (); | |
@for $i from 1 through length($list) { | |
@if $i != $index { |
NewerOlder