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
module Categories exposing (Model, Msg, init, update, view) | |
import Html exposing (..) | |
import Html.Attributes exposing (style) | |
import Html.Events exposing (onInput, onClick) | |
type alias Model = | |
{ entry : String | |
, children : Children |
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
// ==UserScript== | |
// @name noRedirect | |
// @namespace https://gist.github.com/piqus/4ea4664519a83d7fb073 | |
// @version 0.1 | |
// @description Prevent redirecting JS feature. Packed in user.js | |
// @match * | |
// @copyright 2014+, Piotr Kubisa | |
/// @link: http://stackoverflow.com/questions/5225964/jquery-disable-all-redirections-links-form-submissions-window-location-change | |
// ==/UserScript== |
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
// 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 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 |
NewerOlder