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": "Suvia", | |
"host": "hisuvia.com", | |
"punish": 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
const name = 'ele' + 'ctr' + 'ic' + 'con' + 'fet' + 'ti'; | |
const allowedDomains = [ | |
`${name}.co${'m'}`, | |
'shopify', | |
'myshopify', | |
'127.0.0.1', | |
'localhost', | |
'klarna' | |
]; |
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
class Sql { | |
repository; | |
constructor() { | |
this.repository = []; | |
} | |
createTable(tableName, values) { | |
this.repository.push({ | |
[tableName]: { |
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
{%- comment -%} | |
Available Variables | |
* id: The accordion id | |
* content: The tab content | |
* color: The color for h4 headings, borders, and icons | |
* number: Display the number for the tab | |
{%- endcomment -%} | |
{% if color == blank %} | |
{% assign color = '#3200B2' %} |
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
interface Map { | |
[key: string]: string | undefined | |
} | |
export const objectToArray = (obj: Map): string[] => { | |
const tempArray: string[] = []; | |
const keys = Object.keys(obj); | |
keys.forEach((i: string): string[] => { | |
tempArray.push(obj[i]); |
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
{ | |
"id": 820982911946154508, | |
"email": "[email protected]", | |
"closed_at": null, | |
"created_at": "2021-01-07T17:09:46-05:00", | |
"updated_at": "2021-01-07T17:09:46-05:00", | |
"number": 234, | |
"note": "type:PICKUP;date:21-01-2021:10:00;location:salvio", | |
"token": "123456abcd", | |
"gateway": null, |
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
/** | |
* Galleria Twelve Theme | |
* | |
* Copyright (c) 2010 - 2019 worse is better UG | |
* Licensed under the MIT License. | |
*/ | |
( function( window, factory ) { | |
if ( typeof define == 'function' && define.amd ) { | |
define( ['../galleria', 'jquery' ], function( Galleria, jQuery ) { |
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
{ | |
"New York": [ | |
"New York", | |
"Buffalo", | |
"Rochester", | |
"Yonkers", | |
"Syracuse", | |
"Albany", | |
"New Rochelle", | |
"Mount Vernon", |
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
function handleVisibleElements(modal, hide = null) { | |
let parent = $(modal).parent(); | |
let grandparent = null; | |
const parentCount = $(modal).parents().length - 1; | |
const mainTag = $('body main').length ? 'main' : 'body'; | |
const tagToCheck = $(`${mainTag} > article`).length | |
? 'article' | |
: '.wrapper'; | |
const hideSiblings = element => { | |
$(element) |
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 getUrlParameter = (name) => { | |
const nameClean = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); | |
const regex = new RegExp('[\\?&]' + nameClean + '=([^&#]*)'); | |
const results = regex.exec(location.search); | |
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); | |
}; | |
const removeUrlParameter = (url, paramKey) => { | |
const r = new URL(url); | |
r.searchParams.delete(paramKey); |
NewerOlder