Skip to content

Instantly share code, notes, and snippets.

View elie222's full-sized avatar
🏠
Working from home

Elie Steinbock elie222

🏠
Working from home
View GitHub Profile
@elie222
elie222 / CLA.md
Created December 29, 2023 20:39
Inbox Zero CLA

Inbox Zero Contributors License Agreement

This Contributors License Agreement ("CLA") is entered into between the Contributor, and Inbox Zero, collectively referred to as the "Parties."

Background:

Inbox Zero is an open-source project aimed at providing an open-source app to help manage email better. This CLA governs the rights and contributions made by the Contributor to the Inbox Zero project.

Agreement:

@elie222
elie222 / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created August 30, 2021 17:50
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
@elie222
elie222 / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created August 30, 2021 17:48
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
@elie222
elie222 / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created August 30, 2021 17:39
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
@elie222
elie222 / .deps...npm...@openzeppelin...contracts...token...ERC721...ERC721.sol
Created August 5, 2021 14:08
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
@elie222
elie222 / frame-2.css
Created October 29, 2020 10:20
Using Anima 4 code generation. Used on frame 2 of this Figma file: https://www.figma.com/file/C3i3LtfHJ5cldna0fv5vff/Skilled-UI-Interview?node-id=2%3A354
/* screen - frame-2 */
.border-class-1 {
border: 1px solid transparent;
}
.font-class-1 {
font-family: 'Montserrat', Helvetica, Arial, serif;
font-style: normal;
font-weight: 600;
letter-spacing: 0.25px;
@elie222
elie222 / index.html
Created February 17, 2020 17:28
@ffmpeg/ffmpeg compress video example in browser
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>FFMPEGJS Core Page</title>
<script src="https://unpkg.com/@ffmpeg/ffmpeg@0.6.1/dist/ffmpeg.min.js"></script>
<script>
@elie222
elie222 / Items.tsx
Created August 18, 2019 13:31
Using GraphQL code generator
import React from 'react'
import { Text, View, TouchableOpacity, ImageBackground, ScrollView } from 'react-native'
import gql from 'graphql-tag'
import { FlatGrid } from 'react-native-super-grid'
import { useItemsQuery } from '../../generated/graphql'
export const ITEMS_QUERY = gql`
query Items($communityId: String!) {
items(communityId: $communityId) {
_id
import { Field, ObjectType, ID } from 'type-graphql'
import {
Entity,
ObjectIdColumn,
ObjectID,
Column,
CreateDateColumn,
UpdateDateColumn,
} from 'typeorm'
@elie222
elie222 / sanctuary.d.ts
Created August 14, 2019 14:28
Sanctuary TS types
declare module 'sanctuary' {
type maybeToNullable<A> = (p: Maybe<A>) => Nullable<A>;
type Nullable<A> = A | null;
type Pair<A, B> = [A, B];
type Thunk<A> = () => A;
type Fn<A, B> = (a: A) => B;