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
C:\Users\mparn\Documents\GitHub\zed (main) | |
λ go test -race ./... -count=1 | |
? github.com/authzed/zed/cmd/zed [no test files] | |
{"level":"trace","context-override-via-cli":true,"context":{"Name":"","Endpoint":"e1","APIToken":"t1","Insecure":true,"NoVerifyCA":true,"CACert":"aGk="},"time":"2025-05-08T14:58:25-07:00"} | |
{"level":"trace","context-override-via-cli":false,"context":{"Name":"","Endpoint":"e2","APIToken":"t2","Insecure":false,"NoVerifyCA":false,"CACert":"Ynll"},"time":"2025-05-08T14:58:25-07:00"} | |
--- FAIL: TestGetTokenWithCLIOverride (1.45s) | |
testing.go:1267: TempDir RemoveAll cleanup: remove C:\Users\mparn\AppData\Local\Temp\TestGetTokenWithCLIOverride2482217832\001\3569675982: The process cannot access the file because it is being used by another process. | |
{"level":"trace","context-override-via-cli":true,"context":{"Name":"","Endpoint":"e1","APIToken":"t1","Insecure":true,"NoVerifyCA":false,"CACert":null},"time":"2025-05-08T14:58:26-07:00"} | |
{"level":"trace","context-override-via-cli":true,"conte |
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 | |
set -e | |
GITHUB_TOKEN=ENTER-YOUR-TOKEN | |
if [ -z "$1" ]; then | |
echo "Check for achived repos. \nUsage: $0 <go.md URL or file>" | |
exit 1 | |
fi |
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
diff --git a/internal/graph/check.go b/internal/graph/check.go | |
index 4449d6af..66dbe94c 100644 | |
--- a/internal/graph/check.go | |
+++ b/internal/graph/check.go | |
@@ -143,7 +143,7 @@ func WithCachedResolver(opts ...CachedCheckResolverOpt) LocalCheckerOption { | |
d, | |
opts..., | |
) | |
- d.SetDelegate(cachedCheckResolver) | |
+ d.delegate = cachedCheckResolver |
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
// in makefile | |
.PHONY: test-migration-postgres | |
test-migration-postgres: | |
{ \ | |
URI=postgres://postgres:password@localhost:5432/postgres; \ | |
ENGINE=postgres; \ | |
TOTALTUPLES=15; \ | |
docker rm -f $${ENGINE} && \ | |
make start-$${ENGINE} && \ | |
./openfga migrate --datastore-engine $${ENGINE} --datastore-uri $${URI} --version 3 && \ |
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 sendingRequest(msg, initiator, helper) { | |
var urlParams = msg.getUrlParams(); | |
console.log("Url Params before update: " + urlParams); | |
var updatedUrlParams = modifyParams(urlParams); | |
console.log("Url Params after update: " + urlParams); | |
msg.setGetParams(updatedUrlParams); | |
} | |
function modifyParams(params) { | |
let iterator = params.iterator(); |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "extensionHost", | |
"request": "launch", | |
"name": "Debug client.ts", | |
"runtimeExecutable": "${execPath}", | |
"args": [ | |
"--extensionDevelopmentPath=${workspaceRoot}" |
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
# Have zsh return case-insensitive auto-complete matches, but prefer exact matches | |
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*' | |
autoload -Uz compinit && compinit | |
# git prompts with a branch | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
setopt PROMPT_SUBST |
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
from xml.dom import minidom | |
import xml.etree.ElementTree as ET | |
import math | |
import decimal | |
# send the original TCX file to https://www.plotaroute.com/ and export it to get the right distances | |
fixed_doc = minidom.parse('fromplotaroute.tcx') | |
distances = [] | |
for fixedElem in fixed_doc.getElementsByTagName('Trackpoint'): |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
This file is used by the publish/package process of your Web project. You can customize the behavior of this process | |
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121. | |
--> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<WebPublishMethod>MSDeploy</WebPublishMethod> | |
<ResourceId>/subscriptions/d1e23ab5-7c4a-4abe-8b3a-272ec2155cf8/resourcegroups/stackoverflow/providers/Microsoft.Web/sites/aspnetcore21-mparnisari</ResourceId> | |
<ResourceGroup>stackoverflow</ResourceGroup> |
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
using NUnit.Framework; | |
using System.Collections; | |
using UnityEngine.TestTools; | |
public class NewEditModeTest { | |
// A UnityTest behaves like a coroutine in PlayMode | |
// and allows you to yield null to skip a frame in EditMode | |
[UnityTest] | |
public IEnumerator NewEditModeTestWithEnumeratorPasses() { |
NewerOlder