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
lookerstudio.google.com##.metric-axis-holder:style(display: none) |
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 model | |
import ( | |
"bytes" | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/hmac" | |
"crypto/rand" | |
"crypto/sha256" | |
"encoding/base64" |
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
clean: | |
git clean -ndX | |
bash -c "read -r -p \"Are you sure? [y/N]\" response; [[ \$$response =~ [yY] ]] && git clean -dXi" |
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 gateway | |
import "testing" | |
// omitBasePath strips out the base path from the given path. | |
// | |
// It allows to support both API endpoints (default, auto-generated | |
// "execute-api" address and configured Base Path Mapping | |
// with a Custom Domain Name), while preserving the same routing | |
// registered on the http.Handler. |
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 server | |
import ( | |
"encoding/base64" | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
"net" | |
"net/http" | |
"net/url" |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Console] | |
"ColorTable00"=dword:000c0c0c | |
"ColorTable01"=dword:00da3700 | |
"ColorTable02"=dword:000ea113 | |
"ColorTable03"=dword:00dd963a | |
"ColorTable04"=dword:001f0fc5 | |
"ColorTable05"=dword:00981788 | |
"ColorTable06"=dword:00009cc1 |
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 server | |
func StripLeadingSlashes(next http.Handler) http.Handler { | |
fn := func(w http.ResponseWriter, r *http.Request) { | |
var path string | |
rctx := chi.RouteContext(r.Context()) | |
if rctx.RoutePath != "" { | |
path = rctx.RoutePath | |
} else { | |
path = r.URL.Path |
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
// Type definitions for NewRelicBrowser v1026 | |
// Project: https://docs.newrelic.com/docs/browser/new-relic-browser/browser-agent-spa-api | |
// Definitions by: Piotr Kubisa <https://gist.github.com/piotrkubisa/4a1cc7355afcec46651a896d59ec8d50> | |
declare var newrelic: NewRelicBrowser; | |
interface NewRelicBrowser { | |
addPageAction(name: string, attributes: any): void; | |
addRelease(release_name: string, release_id: string): void; | |
addToTrace(custom_object: any): void; |
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 calc | |
import ( | |
"bytes" | |
"io" | |
"io/ioutil" | |
) | |
func BufferLen(r io.Reader) int { | |
var buf bytes.Buffer |
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
# Set all directories to 755, all files to 644. | |
find -type d -print0 | xargs -0 chmod 755 | |
find -type f -print0 | xargs -0 chmod 644 |
NewerOlder