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 / my-vs-code-snippets.json
Last active December 22, 2025 13:26
Favourite VS Code Snippets
{
"Export default": {
"scope": "javascript,typescript,javascriptreact,typescriptreact",
"prefix": "eid",
"body": [
"export { default } from './${TM_DIRECTORY/.*[\\/](.*)$$/$1/}'",
"$2"
],
"description": "Import and export default in a single line"
},
@elie222
elie222 / README.md
Last active August 1, 2024 20:53
Deploying Mup to a single server

And then you want to run the following command after deploy:

ssh -i ~/.ssh/mypem.pem username@ip /home/myapp/rebuild-restart-mup-my-app.sh

Or stick it in the Meteor Up post deploy hook:

  hooks: {
    'post.deploy': {
 localCommand: 'ssh -i ~/.ssh/mypem.pem username@ip /home/myapp/rebuild-restart-mup-my-app.sh',
@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 / 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 / withClickOutside.tsx
Created January 24, 2019 20:42
HOC for closing an item when clicked outside. Useful for dropdowns and tooltips
import * as React from 'react'
import hoistNonReactStatic from 'hoist-non-react-statics'
import { findDOMNode } from 'react-dom'
export interface WithClickOutsideProps {
close: () => void
containerElement?: React.RefObject<any>
}
const withClickOutside = <P extends WithClickOutsideProps>(
@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;