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
@Override | |
public synchronized void init( ServletConfig servletConfig ) throws ServletException { | |
GatewayConfig gatewayConfig = (GatewayConfig) servletConfig.getServletContext().getAttribute(GatewayConfig.GATEWAY_CONFIG_ATTRIBUTE); | |
isErrorMessageSanitizationEnabled = gatewayConfig.isErrorMessageSanitizationEnabled(); | |
errorMessageSanitizationPattern = gatewayConfig.getErrorMessageSanitizationPattern(); | |
try { | |
if( filter == null ) { | |
filter = createFilter( servletConfig ); | |
} | |
filterConfig = new FilterConfigAdapter( servletConfig ); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>TapMedia</title> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"> | |
<style> | |
.testimonial { | |
display: flex; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>TapMedia</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> | |
<style> | |
body { | |
font-family: Arial, sans-serif; |
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
tell application "System Events" | |
keystroke "a" using {command down} | |
delay 0.1 | |
keystroke "c" using {command down} | |
delay 0.1 | |
key code 122 using {command down} -- the F1 key | |
end tell |
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/sh | |
open -na "GoLand.app" --args "$@" |
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 postgres | |
import ( | |
"database/sql" | |
"github.com/lib/pq" | |
"time" | |
) | |
type TransactionRecord struct { | |
ID string `db:"id"` |
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
cors: | |
whitelist: | |
- https://localhost:3000 | |
- https://marketplug.app | |
alpaca: | |
schedule: | |
start: 9 | |
close: 19 |
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
func rune2Index(r rune) int { | |
return int(r) - int('a') | |
} | |
func index2Rune(i int) rune { | |
return rune(i) + 'a' | |
} |
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 client_test | |
import ( | |
"math" | |
"testing" | |
) | |
func TestUnitClient(t *testing.T) { // go test will hit this method | |
t.Run("Client Test", testClient) | |
} |
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
### Usage: kong.sh [--no-db] | |
### | |
### - Run kong with an in memory database | |
### kong.sh --no-db | |
### | |
### - Run kong with postgre | |
### kong.sh | |
print_usage() { | |
awk -F'### ' '/^###/ { print $2 }' "$0" |
NewerOlder