Skip to content

Instantly share code, notes, and snippets.

Avatar
💢
Nani!?!

Daemon daephx

💢
Nani!?!
  • A Cardboard Box
View GitHub Profile
@daephx
daephx / ANSI.md
Created Dec 29, 2021 — forked from fnky/ANSI.md
ANSI Escape Codes
View ANSI.md

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@daephx
daephx / Git Commands.md
Last active Oct 30, 2021
[Git Commands] Common commands for managing git version control #Git #Examples
View Git Commands.md
@daephx
daephx / Python - Dependency Iversion.ipynb
Last active Apr 4, 2021
Python - Dependency Iversion #Jupyter #Python
View Python - Dependency Iversion.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@daephx
daephx / .zshrc-wsl-windows-terminal
Created Aug 31, 2020 — forked from jamietre/.zshrc-wsl-windows-terminal
zsh config for windows-like inline editing using Windows Terminal + wsl
View .zshrc-wsl-windows-terminal
# add this to your .zshrc
r-delregion() {
if ((REGION_ACTIVE)) then
zle kill-region
else
local widget_name=$1
shift
zle $widget_name -- $@
fi
@daephx
daephx / LICENSE.md
Last active Oct 30, 2021
[Gist License] This is the default license that applies to all public gists under https://gist.github.com/daephx
View LICENSE.md

The MIT License (MIT)

Copyright (c) 2021 daephx

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARIS LIABILITY, WHETHER IN AN ACTION OF CONTRACT, T

@daephx
daephx / CIP-GeneratorsPy.ipynb
Last active Oct 30, 2021
[Concepts in Programming] #Python #Jupyter #Learning
View CIP-GeneratorsPy.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@daephx
daephx / index.html
Last active Mar 6, 2022
[Sticky Header] #P5JS
View index.html
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<div class="header" id="myHeader">
<head>
<h1>
<u>p5.js Playground</u>
</h1>
@daephx
daephx / !PowershellExamples.md
Last active Oct 30, 2021
[Powershell Examples] #Powershell #Examples
View !PowershellExamples.md

Powershell Examples

Personal collection of basic examples / scripts.

Name Description
Format-Relative Diffrent methods for displaying relative path.
Get-ImageData Get image information.
Get-LastAccess Retreive a timestamp of when an item was accessed..
Get-ModuleCount Measure the amount of loaded modules..
Hide-Item Change item attributes, i.e. 'Hidden'.
@daephx
daephx / Draconic.psm1
Last active Mar 4, 2021
[Draconic Prompt] oh-my-posh V2 theme for PowerShell prompt #Powershell
View Draconic.psm1
<#
.SYNOPSIS
oh-my-posh theme for Powershell prompt
#>
#requires -Version 2 -Modules posh-git, oh-my-posh
function Set-Stopwatch {
$LastExecutionTimeSpan = if (@(Get-History).Count -gt 0) {
Get-History | Select-Object -Last 1 | ForEach-Object {