Skip to content

Instantly share code, notes, and snippets.

{
"public_identifier": "emily-beall-684845157",
"profile_pic_url": "https://media.licdn.com/dms/image/C5603AQFbnZn-6PWF9g/profile-displayphoto-shrink_800_800/0/1611529036634?e=1693440000&v=beta&t=QJz6EfDinfTbwW3DJhXEyW8l28uRZQyfC3j6OBrPxZM",
"background_cover_image_url": null,
"first_name": "Emily",
"last_name": "beall",
"full_name": "Emily beall",
"follower_count": null,
"occupation": "Ag uni manager at Accent Group Limited",
"headline": "AG Uni Manager",
@Morganjackson
Morganjackson / af-backend-sql-server.txt
Created July 21, 2022 03:18
af-backend-sql-server
2022-07-21T03:13:09.908148173Z Azure SQL Edge will run as non-root by default.
This container is running as user mssql.
Your master database file is owned by mssql.
To learn more visit https://go.microsoft.com/fwlink/?linkid=2140520.
2022/07/21 03:13:09 [launchpadd] INFO: Extensibility Log Header: <timestamp> <process> <sandboxId> <sessionId> <message>
2022/07/21 03:13:09 [launchpadd] WARNING: Failed to load /var/opt/mssql/mssql.conf ini file with error open /var/opt/mssql/mssql.conf: no such file or directory
2022/07/21 03:13:09 [launchpadd] INFO: DataDirectories =  /bin:/etc:/lib:/lib32:/lib64:/sbin:/usr/bin:/usr/include:/usr/lib:/usr/lib32:/usr/lib64:/usr/libexec/gcc:/usr/sbin:/usr/share:/var/lib:/opt/microsoft:/opt/mssql-extensibility:/opt/mssql/mlservices:/opt/mssql/lib/zulu-jre-11:/opt/mssql-tools
2022/07/21 03:13:09 Drop permitted effective capabilities.
2022/07/21 03:13:10 [launchpadd] INFO: Polybase remote hadoop bridge disabled
import React, { useEffect, useMemo, useRef } from 'react'
export default function Document({ values }: any) {
const containerRef = useRef(null)
const instantJSON = useMemo(
() => ({
format: 'https://pspdfkit.com/instant-json/v1',
formFieldValues: [
{
# https://circleci.com/docs/2.0/configuration-reference/
version: 2
references:
config_env: &config_env
docker:
- image: circleci/node:latest
cache_key: &cache_key node_modules-{{ .Branch }}-{{ checksum "package.json" }}
save_cache: &save_cache
import { compose } from 'redux';
import { graphql } from 'react-apollo';
import { connect } from 'react-redux';
import { remapSearchFilterFaceted } from '../../lib/config/api-mappings-elastic';
import { getQueryString } from '../../lib/config/api-endpoints-elastic';
import AGGREGATIONS_QUERY from '../graphql/queries/aggregations.graphql';
import LISTINGS_QUERY from '../graphql/queries/listings.graphql';
import LISTING_SEARCH from "../graphql/queries/listings-and-aggregations.graphql"
export const getFinYearStart = () => {
if (moment().quarter() > 2) {
return moment()
.month("July")
.startOf("month")
.subtract(1, "days")
.valueOf();
} else {
return moment()
.subtract(1, "years")
@Morganjackson
Morganjackson / destructuring.js
Created October 7, 2018 18:36 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
namespace :heroku do
desc 'Copy production database to staging database'
task production_to_staging: :environment do
staging_app = 'edward-staging'
production_app = 'edward-production'
worker_count = ENV.fetch('SIDEKIQ_WORKERS') { 1 }
sh("heroku maintenance:on -a #{staging_app}")
sh("heroku ps:scale worker=0 -a #{staging_app}")
sh("heroku pg:backups capture -a #{staging_app}")
query Client($clientId: ID!, $entityId: ID!, $withMs: Boolean!) {
client(id: $clientId) {
name
id
entities {
id
name
}
entity(id: $entityId) @include(if: $withEntity) {
monthlyStatus(startDate: "31-12-2017", endDate: "30-06-2018") {
rpt = Reports::SummaryMonthlyValuation.new(
“Entity: Slobom Family > Fullow Pty Ltd”,
[
“level_type"=>"Entity",
"level_id"=>"9",
"type"=>"SummaryMonthlyValuation",
"currency"=>"AUD",
"start_date"=>"31/03/2017",
"end_date"=>"31/03/2018",
"only_selected_currency"=>false