Skip to content

Instantly share code, notes, and snippets.

@Coda-Coda
Coda-Coda / nix-shell error with archetype
Last active September 24, 2020 10:13
Nix-shell error with Archetype
# Relates to https://github.com/timbertson/opam2nix/issues/43
# Ran on Ubuntu on AWS
$ nix-shell
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
trace: [wrangle] Providing source self (git-local) from /nix/store/d2pcpfs5cvw913rw7jk8hpnc4ssg39rk-dbgihl2pv3yh1jbi1k68sgdy0kp5d467-source
trace: [wrangle] Providing source cudf (url) from /nix/store/3r17n7vjrbihzr7z0cd163xvzxz6mx4w-cudf-0.9.tar.gz
trace: [wrangle] Providing source dose (url) from /nix/store/mh2jr4sgghybljmfk7wlynn2pwq3ccfn-dose3-5.0.1.tar.gz
trace: [wrangle] Providing source mccs (url) from /nix/store/1ssag69f74snzkk53cwr1alwkil7a1lc-1.1+9.tar.gz
trace: [wrangle] Providing source opam (github) from /nix/store/s26wnykrfqxkpj1iy1vkh69nz9j0axgi-source
trace: [wrangle] Providing source opam-file-format (github) from /nix/store/kpk45bmqdrm3p43ac1bcsbr3yh5yrkpz-source
@Coda-Coda
Coda-Coda / OpenZeppelinToken.sol
Created September 8, 2020 05:26
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.6.6+commit.6c089d02.js&optimize=false&gist=
// From https://docs.openzeppelin.com/contracts/3.x/erc20
// contracts/GLDToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0/contracts/token/ERC20/ERC20.sol";
contract GLDToken is ERC20 {
constructor(uint256 initialSupply) public ERC20("Gold", "GLD") {