0x04f601d61b672dc81fd1d071f5e4bd5337737a67849d4123775730080d024799
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
{ | |
"addresses": [ | |
"0xFe7cBb9cCd3057589eeBcb915c9d959A822C4b7B", | |
"0x06C5034A2049abC450b8A891d02017CeE1D398B0" | |
] | |
} |
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 fs from 'fs'; | |
import path from 'path'; | |
import dotenv from 'dotenv'; | |
import * as Figma from 'figma-api'; | |
dotenv.config(); | |
//#region constants | |
const FIGMA_FILE_KEY = 'L4oZwYVUdpgacZtwipGaYe'; |
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 type * as Stitches from "@stitches/react"; | |
import { modifyVariantsForStory } from "../../../.storybook/type-utils"; | |
import { styled } from "../../stitches.config"; | |
const Example = styles("div", { | |
// ... | |
}); | |
export default Example; |
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 { S3 } = require('aws-sdk') | |
jest.mock('aws-sdk'); | |
// see the previous gist file I created here | |
// https://gist.github.com/f1lander/287cf20fb8dbfcce24a5c3e867346788 | |
import s3Utils from './s3-utils'; | |
// I set this for debug | |
jest.setTimeout(45000); |
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 AWS from 'aws-sdk'; | |
// set your process env | |
const { | |
S3_BUCKET, | |
STAGE } = process.env; | |
const endpoint = 'http://localhost:4572'; | |
// set your config look | |
// https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-configuring-buckets.html |
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 ar = [10, 20, 20, 10, 10, 30, 50, 10, 20]; | |
const getPairs = (n, ar) => { | |
let pairs = 0, i = 0; | |
ar.sort((a, b) => a - b); | |
while (i < n) { | |
const count = ar.filter(item => item === ar[i]).length; | |
if (count >= 2) { |
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
/** | |
Example Code for developer position application | |
Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4]. | |
For this code I'll use JS (es6) running in NodeJS v11 | |
Instructions: |
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 xtreme_math = require("../../ceutek/deunitek/xtreme-math"); | |
const math = new xtreme_math(3); | |
console.log(math.square); // resultado: 9. |
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 xtreme_math = require("../../ceutek/deunitek/xtreme-math"); | |
const math = new xtreme_math(3); | |
console.log(math.square); // resultado: 9. |