Skip to content

Instantly share code, notes, and snippets.

View codacy20's full-sized avatar
:octocat:

Amir codacy20

:octocat:
View GitHub Profile
@codacy20
codacy20 / .yarnrc.yml
Last active October 31, 2021 23:20
yarnrc.yml
yarnPath: .yarn/releases/yarn-3.1.0.cjs
npmScopes:
grandvisionhq:
npmAuthToken: "${GPR_TOKEN}"
npmRegistryServer: "https://npm.pkg.github.com"
@codacy20
codacy20 / expand.txt
Created October 12, 2021 13:55
expand product arg
?expand=masterData.current.masterVariant.attributes[*].value
{{host}}/{{projectKey}}/products/14d29fde-d565-4101-9083-3fd3161d10c0?expand=masterData.current.masterVariant.attributes[*].value
@codacy20
codacy20 / upsert.graphql
Created October 11, 2021 14:47
upsert (mutation)
# Write your query or mutation here
mutation{
upsertProduct(upsertProductInput:{
key: "product1"
productType: { key:"FRAMES"}
brand: "me",
name: [{locale: "en-GB", value: "product1"}],
slug: [{locale: "en-GB", value: "product1"}],
isPublished: true,
description: [{locale:"en-GB", value:"purchase me"}],

Keybase proof

I hereby claim:

  • I am codacy20 on github.
  • I am thisisamir (https://keybase.io/thisisamir) on keybase.
  • I have a public key ASAC0k7Gr4azikUM2vpKoggw3RT-g2qSrYdEULC3VNLinAo

To claim this, I am signing this object:

@codacy20
codacy20 / release.json
Created November 1, 2019 10:58
release json
{
"RELEASE_VERSION": "20191101090000^^localMain^^5354^^iPad"
}
@codacy20
codacy20 / Using [R e d u x] .md
Created August 9, 2019 14:27
Simple application that explains how redux works.

Using [R e d u x]

Hi there! This is a simple application that uses redux.

Code

The code can be found here: CodePen

Analogy

@codacy20
codacy20 / auth0Rules.js
Last active May 2, 2019 06:52
[auth0 rules]
//Augment idToken
function (user, context, callback) {
var namespace = `https://${baseUrl}/claims`;
context.accessToken[`${namespace}/connection`] = context.connection;
context.idToken[`${namespace}/connection`] = context.connection;
context.accessToken[`${namespace}/email`] = user.email;
callback(null, user, context);
@codacy20
codacy20 / cheatSheat.md
Last active May 2, 2019 11:06
[cheatSheat public] Lines of code that you need everyday #day2day
ssh -R be.serveo.net:80:localhost:3000 serveo.net

https://www.youtube.com/watch?v=Cc3KTTzR4g0 << attr_accessor ruby

order number should start from: 40000 crm id should start from: 50000

command dig on terminal: dig amirk.xyz >> shows servers and ips and dns names

@codacy20
codacy20 / mystery.md
Last active April 26, 2019 16:25
[List of proprities] MVP of the app #mystery
  • Flow method controller and connecting it to FE (Amir)
  • See the box on Store Front
    • create a collection for mysteryboxes when installing the app
    • adding the products to it on creation
  • Devops and deploy
  • Release and Publish
@codacy20
codacy20 / myAccountIdExternalPayment.ts
Created April 18, 2019 16:58
[CRM ID] myAccountId - Service bus #order-service
let myAccountId = undefined;
if (order.customerId) {
console.log(order.customerId);
myAccountId = await repository.getCustomerNumberByCustomerId(order.customerId);
}