This file contains hidden or 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
| pragma solidity >=0.8.0 <0.9.0; | |
| // SPDX-License-Identifier: MIT | |
| /// [MIT License] | |
| /// @title Base64 | |
| /// @notice Provides a function for encoding some bytes in base64 | |
| /// @author Brecht Devos <[email protected]> | |
| library Base64 { | |
| bytes internal constant TABLE = | |
| "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; |
This file contains hidden or 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
| pragma solidity >=0.8.0 <0.9.0; | |
| //SPDX-License-Identifier: MIT | |
| import "hardhat/console.sol"; | |
| import "@openzeppelin/contracts/utils/Counters.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
| import "@openzeppelin/contracts/utils/Strings.sol"; | |
| import "./Base64.sol"; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; |
This file contains hidden or 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 faunadb = require("faunadb"); | |
| const q = faunadb.query; | |
| // Instantiate client | |
| const client = new faunadb.Client({ | |
| secret: FAUNA_KEY, | |
| domain: "localhost", | |
| scheme: "http", | |
| port: 8443 | |
| }); |
This file contains hidden or 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 get_pr_status() { | |
| gh pr status | |
| } | |
| for dir in ~/Code/*/; do | |
| cd $dir | |
| get_pr_status | |
| done |
This file contains hidden or 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
| // Applying a ref directly to an HTML element | |
| <input | |
| className="AuthorFilterMenu__filter-input" | |
| ref={authorFilterInputRef} | |
| placeholder="Filter by author..." | |
| value={filterInputValue} | |
| type="search" | |
| onInput={event => { | |
| setFilterInputValue(event.currentTarget.value); | |
| }} |
This file contains hidden or 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
| <template> | |
| <div class="toggle"> | |
| <ToggleButton | |
| @clicked="workClicked" | |
| :class="{'toggle__button': true, 'active': workActive}" | |
| text="Work" | |
| /> | |
| <ToggleButton | |
| @clicked="homeClicked" | |
| :class="{'toggle__button': true, 'active': homeActive}" |
This file contains hidden or 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
| license: gpl-3.0 | |
| height: 600 |
This file contains hidden or 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
| " Plugins | |
| " ------- | |
| " nerdtree | |
| " vim-airline | |
| " vim-multiple-cursors | |
| " vim-sensible | |
| " Start Pathogen | |
| " -------------- |