This file contains hidden or 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
| a { | |
| color: black; | |
| text-decoration: none; | |
| } | |
| a { | |
| position: relative; | |
| display: inline-block; | |
| } |
This file contains hidden or 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
| find . -name "*.cs" -print0 | xargs -0 sed -i 's/\xef\xbb\xbf//' |
This file contains hidden or 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
| param ( | |
| [Parameter(Position = 0)] | |
| [string]$FolderPath = $pwd.Path | |
| ) | |
| Write-Host "Scanning for duplicate GUIDs. Please wait..." | |
| # Find all .meta files recursively within the specified folder | |
| $metaFiles = Get-ChildItem -Path $FolderPath -Filter "*.meta" -Recurse |
This file contains hidden or 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
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| // Setup data | |
| var butterfly = new Spawnable("Butterfly"); | |
| var bumblebee = new Spawnable("Bumblebee"); | |
| var cockroach = new Spawnable("Cockroach"); | |
| var spawnPoint = new SpawnPoint(); |
This file contains hidden or 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
| Private Sub Worksheet_Change(ByVal Target As Range) | |
| Dim Cell As Range | |
| ' Prevent infinite loops by disabling events temporarily | |
| On Error Resume Next | |
| Application.EnableEvents = False | |
| ' Iterate through each cell in the range that was changed | |
| For Each Cell In Target | |
| ' Strictly check if the cell's format is exactly "h:mm" |
This file contains hidden or 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
| #include <utility> // For std::swap | |
| template <typename T> | |
| void quick_sort(T array[], size_t size) | |
| { | |
| constexpr auto npos = (size_t{ 0 } - 1); | |
| // Empty or doesn't need sorting | |
| if (size <= 1) | |
| return; |
This file contains hidden or 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
| $defaultItems = @( | |
| "Deze standaard items staan bovenaan in het script", | |
| "Hier kun je nieuwe dingen toevoegen die er vanaf het opstarten al in staan.", | |
| "Open dit bestandje in notepad om het aan te passen.", | |
| "Zet aanhalingstekens ("") voor en achter de zin, en eindig met een comma (,).", | |
| "Als je in het script een "" wil gebruiken, dan moet je deze schrijven als """".", | |
| "Achter het laatste item in deze lijst moet geen comma staan, anders krijg je errors" | |
| ) | |
| Add-Type -AssemblyName PresentationFramework |
This file contains hidden or 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
| // Some default colours | |
| var black = { r = 0.0f, g = 0.0f, b = 0.0f, }; | |
| var white = { r = 1.0f, g = 1.0f, b = 1.0f, }; | |
| var grey = { r = 0.5f, g = 0.5f, b = 0.5f, }; | |
| var lightgrey = { r = 0.8f, g = 0.8f, b = 0.8f, }; | |
| var darkgrey = { r = 0.3f, g = 0.3f, b = 0.3f, }; | |
| var red = { r = 1.0f, g = 0.0f, b = 0.0f, }; | |
| var green = { r = 0.0f, g = 0.5f, b = 0.0f, }; | |
| var blue = { r = 0.0f, g = 0.0f, b = 1.0f, }; | |
| var lightred : red = { g = 0.2f, b = 0.2f, }; |
This file contains hidden or 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
| Set WshShell = WScript.CreateObject("WScript.Shell") | |
| WshShell.Run """C:\Program Files\Mozilla Firefox\firefox.exe"" -private-window https://github.com/login" | |
| WScript.Sleep 4000 | |
| WshShell.SendKeys "<username or email address>{TAB}<password>{ENTER}" |
This file contains hidden or 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 generateVT(w, h) { | |
| var vt = ""; | |
| for (var y = 1; y <= h; y++) | |
| for (var x = 1; x <= w; x++) | |
| vt += `vt ${((x-1)/(w-1)).toFixed(6)} ${((h-y)/(h-1)).toFixed(6)}\n`; | |
| return vt; | |
| } |
NewerOlder