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
docker exec foodbank_db psql -U postgres -d food_bank -c '\d' |
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
git restore --source origin/master filename | |
git checkout - | |
git log branchB..branchA | |
git log --oneline --decorate | |
git config --global push.default current | |
git config --global push.autoSetupRemote true |
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
# vars.tf: | |
variable "docker_image" { | |
type = string | |
} | |
variable "project_id" { | |
type = string | |
default = "{YOUR GOOGLE PROJECT ID}" | |
} |
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
import React from "react"; | |
// Import Highcharts | |
import Highcharts from "highcharts/highstock"; | |
import HighchartsReact from "highcharts-react-official"; | |
import highchartsExporting from "highcharts/modules/exporting"; | |
import highchartsExportData from "highcharts/modules/export-data"; | |
import highchartsAccessibility from "highcharts/modules/accessibility"; | |
import {defaultConfig} from "@ignite-analytics/charts" | |
highchartsExporting(Highcharts); |
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
const delay = (milisec: number) => | |
new Promise(r => { | |
setTimeout(r, milisec); | |
}); |
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
import nationalities from 'i18n-nationality/langs/en.json' | |
import countries from 'i18n-iso-countries/langs/en.json' | |
import { | |
getName as getNationality, | |
registerLocale as registerNationality | |
} from 'i18n-nationality' | |
import { | |
getName as getCountry, | |
registerLocale as registerCountry | |
} from 'i18n-iso-countries' |
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
open System | |
open System.Text | |
open EventStore.Client | |
open Xunit | |
[<Fact>] | |
let ``Connect to event store`` () = | |
// Arrange | |
let data: string = "{ \"a\":\"2\"}" | |
let metadata: string = "{}" |
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
FROM neo4j:latest | |
COPY neo_import.sh neo_import.sh | |
COPY *.cypher . | |
RUN ["chmod", "+x", "neo_import.sh"] | |
ENTRYPOINT ["./neo_import.sh"] |
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 SupportOperations.TestApi | |
open System.Net.Http | |
open Microsoft.AspNetCore.Mvc.Testing | |
open Newtonsoft.Json | |
open System | |
open FsToolkit.ErrorHandling | |
open Program | |
let create () = (new WebApplicationFactory<Program>()).Server |
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
FROM mcr.microsoft.com/dotnet/sdk:5.0 | |
COPY * ./ | |
CMD ["sh", "-c", "dotnet fsi migrateDatabase.fsx \"${DB_CONNECTION}\""] |
NewerOlder