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
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| from sklearn.preprocessing import MinMaxScaler | |
| # ============================= | |
| # 1. Load & process crimes | |
| # ============================= | |
| df_crime = pd.read_csv("../data/crimes_2010_2024.csv", sep=";", header=4) | |
| df_crime.columns = df_crime.columns.str.replace('"', '', regex=False).str.replace('*', '', regex=False).str.strip() | |
| df_crime = df_crime.rename(columns={"Unnamed: 0": "Soort misdrijf"}) |
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) | |
| } |
NewerOlder