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
# <https://github.com/orgs/community/discussions/6874>, where I cannot even find the source of the Bash version I based this on; this Web UX is c**p | |
gh api ` | |
--method PUT ` | |
-H "Accept: application/vnd.github+json" ` | |
/notifications ` | |
-f last_read_at="$(date -Format +'YYYY-MM-DDTHH:MM:SSZ')" ` | |
-F read=true |
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 Lean | |
open Lean | |
deriving instance Repr for ParserDescr | |
unsafe def getParserDescrUnsafe (name : Name) : CoreM (Option ParserDescr) := do | |
let info ← getConstInfo name | |
if info.type.isConstOf ``ParserDescr || info.type.isConstOf ``TrailingParserDescr then | |
return some (← evalConst ParserDescr info.name) |
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
# https://chatgpt.com/share/674595bf-959c-8007-ab19-7a9d55328526 | |
class BucketStack: | |
def __init__(self): | |
self.stack = [] | |
def push(self, bucket): | |
self.stack.append(bucket) | |
def pop(self): | |
if self.stack: |
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
# see https://github.com/microsoft/terminal/issues/4066#issuecomment-991775872 | |
# Feature deprecated | |
# # A Light colorScheme is bound as counterpart to one and only one Dark colorScheme. | |
# # To configure two colorSchemes as a pair, select one of them as default in dark mode, | |
# # switch to light mode, select the other as default, then switch back to dark mode; | |
# # the script will now toggle this pair correctly for any other profile. | |
param( | |
[String] $themeMode, # if not provided, default to the opposite of the mode recorded in the config file |
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
$dependencies = @( | |
"Get-GeoLocationCoordinates", | |
) | |
foreach ($script in ){ | |
iex ((New-Object System.Net.WebClient).DownloadString("https://gist.githubusercontent.com/Gravifer/a0012ea5f115bf48bc652c1b02845bd8/raw/d6d06a82ed8282e14aed0f258ff39b8e89dcf01e/$script.ps1")) | |
} | |
function Get-GeoCodeCoordinatesAddress { | |
param ( | |
[Parameter(ValueFromPipeline=$true)] |
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:: *) | |
(* ::Title:: *) | |
(*Mathematica WakaTime Plugin*) | |
(* ::Author:: *) | |
(*Author: Gravifer*) | |
(*Date: 2021-02-21*) | |
(*Version: 0.0.3*) |
A little tweaking to install wolfram paclets in the Windows explorer. It is always possible to modify the registry manually; but for a less painstaking way, you can use FileTypesMan by Nir Sofer and Resource Hacker by Angus Johnson.
Paclets are merely .zip
archives with concerned .m
package files and some versioning code.
It's convenient to add unzipping and installing actions to the right-click context menu.
For installation:
wolframscript.exe -code "pac=Last[$ScriptCommandLine]; Print[StringJoin[\"Trying to install \", pac, \" ...\"]]; PacletInstall[pac]" "%1"
NewerOlder