| Value | Color |
|---|---|
| \e[0;30m | Black |
| \e[0;31m | Red |
| \e[0;32m | Green |
| \e[0;33m | Yellow |
| \e[0;34m | Blue |
| \e[0;35m | Purple |
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
| <div style="position:absolute;top:-999px;left:-999px"> | |
| <svg | |
| id="effectSvg" | |
| width="200" | |
| height="200" | |
| viewBox="0 0 200 200" | |
| xmlns="http://www.w3.org/2000/svg"> | |
| <filter id="displacementFilter4"> |
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
| import lldb | |
| import math | |
| import logging | |
| log = logging.getLogger(__name__) | |
| def is_slice_type(t, internal_dict): | |
| return (t.name.startswith("[]") or t.name.startswith("[dynamic]")) and not t.name.endswith(']') | |
| def slice_summary(value, internal_dict): |
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
| import lldb | |
| def is_slice_type(t, internal_dict): | |
| return t.name.startswith("[]") or t.name.startswith("[dynamic]") | |
| class SliceChildProvider: | |
| def __init__(self, val, dict): | |
| self.val = val | |
| def num_children(self): |
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
| package main | |
| import "core:fmt" | |
| import "core:io" | |
| import "core:odin/ast" | |
| import "core:odin/parser" | |
| import "core:os" | |
| import "core:path/filepath" | |
| import "core:slice" | |
| import "core:strings" |
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
| package uuid4 | |
| import "core:crypto" | |
| import "core:io" | |
| import "core:mem" | |
| UUID_SIZE :: 16 | |
| UUID4 :: distinct [UUID_SIZE]byte | |
| generate :: proc() -> (u: UUID4) #no_bounds_check { |
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 compress(string, encoding) { | |
| const byteArray = new TextEncoder().encode(string); | |
| const cs = new CompressionStream(encoding); | |
| const writer = cs.writable.getWriter(); | |
| writer.write(byteArray); | |
| writer.close(); | |
| return new Response(cs.readable).arrayBuffer(); | |
| } | |
| function decompress(byteArray, encoding) { |
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
| @ECHO OFF | |
| :: Path to Odin executable | |
| SET ODINPATH="C:\odin\odin.exe" | |
| :: Path to the Microsoft 'vcvarsall.bat' file. | |
| :: This sets the required environment vars and makes cl.exe and link.exe available in PATH. | |
| SET VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio\VC\Auxiliary\Build\vcvarsall.bat" | |
| :: Only run the MSVC batch file the first time we |
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
| #!/bin/bash | |
| sudo add-apt-repository -y ppa:git-core/ppa | |
| sudo apt-get update | |
| sudo apt-get install git -y |
$ git checkout --orphan NEWBRANCH
$ git rm -rf .
--orphan creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry.
You can then start adding files and commit them and they will live in their own branch. If you take a look at the log, you will see that it is isolated from the original log.
NewerOlder