- Vercel
- vm lightsail
- cloudflare
- akses setting name server domain
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 { DatabaseError, Pool, QueryResult } from "pg"; | |
| import { Point } from "../entities/Point"; | |
| class Locations { | |
| private db: Pool | |
| constructor(pool: Pool) { | |
| this.db = pool | |
| } |
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
| var map = L.map('map').setView([51.505, -0.09], 13); | |
| L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { | |
| attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' | |
| }).addTo(map); | |
| L.marker([51.5, -0.09]).addTo(map) | |
| .bindPopup('A pretty CSS3 popup.<br> Easily customizable.') | |
| .openPopup(); |
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 { Locations } from '../repositories/Locations' | |
| import Supercluster = require('supercluster') | |
| class LocationCluster { | |
| private locationRepository: Locations | |
| constructor(locationsRepository: Locations) { | |
| this.locationRepository = locationsRepository | |
| } |
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
| const loading = document.getElementById('loading') | |
| let isLoading = false | |
| function getJSON(url, callback) { | |
| const xhr = new XMLHttpRequest(); | |
| xhr.open('GET', url, true); | |
| xhr.responseType = 'json'; | |
| xhr.setRequestHeader('Accept', 'application/json'); | |
| xhr.onload = function () { |
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 main | |
| import ( | |
| "errors" | |
| "log" | |
| "testing" | |
| "github.com/DATA-DOG/go-sqlmock" | |
| "github.com/jmoiron/sqlx" | |
| "github.com/stretchr/testify/assert" |
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/bash | |
| set -e | |
| LINE=$@ | |
| TEMP_FILENAME=`uuidgen` | |
| echo $LINE > /tmp/$TEMP_FILENAME |
