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 gzip | |
import json | |
import time | |
import requests | |
export_management_token = "YOUR_MANAGEMENT_TOKEN" # Replace with your token | |
domain = "YOUR_SOURCE_TENANT_DOMAIN" # Replace with your source tenant's domain | |
connection_id = "YOUR_CONNECTION_ID" # Replace with your connection ID | |
export_url = f'https://{domain}/api/v2/jobs/users-exports' |
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
export const isPrimitive = (val) => { | |
if (val === null) { | |
return true; | |
} | |
if (typeof val === "object" || typeof val === "function") { | |
return false; | |
} else { | |
return 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
<style> | |
.container { | |
display: flex; | |
flex-direction: column; | |
} | |
.row { | |
display: flex; | |
} |
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
<style> | |
.container { | |
display: flex; | |
flex-direction: column; | |
} | |
.row { | |
display: flex; | |
} |
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
{ | |
"1": "Collectibles", | |
"12": "Other Antiques", | |
"28": "Other Collectible Metalware", | |
"30": "Other Vintage & Antique Toys", | |
"34": "Advertising", | |
"35": "Other Merch & Memorabilia Ads", | |
"36": "Soda", | |
"37": "Other Soda Memorabilia", | |
"38": "Other Coca-Cola Ads", |
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 Cookies from 'js-cookie'; | |
import enTrans from '@public/locales/en'; | |
import deTrans from '@public/locales/de'; | |
import esTrans from '@public/locales/es'; | |
import { DEFAULT_LOCALE } from 'src/global/constants'; | |
const useCustomTranslation = () => { | |
const translationsByLocale = { | |
en: enTrans, | |
de: deTrans, |
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
<?php | |
// | |
// You'll need to install the following composer packages: | |
// "twilio/sdk": "^6.20", | |
// "aws/aws-sdk-php": "~3.0", | |
// "guzzlehttp/guzzle": "^7.0" | |
ini_set( 'memory_limit', '-1' ); | |
set_time_limit(0); |
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 pg = require('pg'); | |
const { Client } = pg; | |
const updateTables = async () => { | |
const client = new Client({ | |
connectionString: | |
'postgresql://cysiamadmin@rav-ravhe7-db:[email protected]:5432/postgres?schema=public', | |
ssl: { | |
rejectUnauthorized: false, | |
}, |
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.exports = { | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
project: 'tsconfig.json', | |
sourceType: 'module', | |
}, | |
plugins: ['@typescript-eslint/eslint-plugin', 'unused-imports', 'import'], | |
extends: [ | |
'plugin:@typescript-eslint/recommended', | |
'plugin:prettier/recommended', |
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
name: Node.js CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: |
NewerOlder