This file contains 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
git fetch upstream | |
git reset --hard upstream/master |
This file contains 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
$(document).ajaxComplete(function(event, XMLHttpRequest){ | |
var token = XMLHttpRequest.getResponseHeader('x-debug-token'), | |
protocol = window.location.protocol, | |
hostname = window.location.hostname; | |
if(token) { | |
$.get(protocol+'//'+hostname+'/_wdt/'+token, function(data){ |
This file contains 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 ( | |
"bytes" | |
"compress/gzip" | |
"fmt" | |
"io" | |
"log" | |
) |
This file contains 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 { Type, EntityProperty, ValidationError } from "@mikro-orm/core"; | |
export class VectorType extends Type< | |
number[] | null, | |
string | null | undefined | |
> { | |
convertToDatabaseValue(value: number[] | string | undefined): string | null { | |
if (!value) { | |
return null; | |
} |
This file contains 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 clerk | |
import ( | |
"errors" | |
"net" | |
"net/http" | |
"net/url" | |
"regexp" | |
"strconv" | |
"strings" |