0x1396062f8b786433f1d40a4b41d46011487754050edb3e3c83372b234b4611f9
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
// ABI for https://ftmscan.com/address/0xa320ae264278476be187468ff38e4f6b883b3b92#code | |
[ | |
{ | |
inputs: [ | |
{ | |
internalType: "address", | |
name: "_authority", | |
type: "address", | |
}, | |
{ |
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
#!/bin/bash | |
# Wget's all episodes of the Syntax.fm podcast hosted by Wes Bos and Scott Tolinkski | |
# Fetch full episode list | |
curl https://syntax.fm/api/shows | | |
jq -c '.[] | {url: .url, number: .number, title: .title, displayDate: .displayDate}' | | |
while read row; do | |
url=$(echo $row | jq -r '.url') | |
number=$(echo $row | jq -r '.number') |
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 Skeleton from 'antd/lib/skeleton'; | |
import * as React from 'react'; | |
import InfiniteScroll from 'react-infinite-scroll-component'; | |
import { defineMessages, FormattedMessage as FM } from 'react-intl'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators, Dispatch } from 'redux'; | |
import styled from '@emotion/styled'; | |
import { ActivityActions } from '../../actions/activities'; | |
import { ArticleActions } from '../../actions/articles'; | |
import { ProfilesActions } from '../../actions/profiles'; |
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
#!/bin/bash | |
# Minify all jpg and png images in current directory recursively | |
command_exists () { | |
type "$1" &> /dev/null ; | |
} | |
# Learn more about optipng at http://sweetme.at/2013/09/11/how-to-maximize-png-image-compression-with-optipng/ | |
if command_exists optipng ; then | |
optipng -o2 -strip all **/*.png | |
else |
I hereby claim:
- I am dawsbot on github.
- I am dawsonbotsford (https://keybase.io/dawsonbotsford) on keybase.
- I have a public key ASDJzw6qFpV1UYX6mBcg_nwO09No6c7S9w7MIwcFszV_CQo
To claim this, I am signing this object:
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
'use strict'; | |
export default function transformer(file, api) { | |
const j = api.jscodeshift; | |
const {expression, statement, statements} = j.template; | |
const root = j(file.source); | |
return root | |
.find(j.Program, { | |
body: [ | |
j.AssignmentExpression |
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
#!/bin/bash | |
yarn add eslint eslint-config-uber-es2015 | |
echo '{\n "extends": ["eslint-config-uber-es2015"]\n}' > .eslintrc |
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 tmpDir = path.join(os.tmpdir(), Math.random().toString().slice(8), basename); |
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 url = 'https://google.com'; | |
const pify = require('pify'); | |
const fs = pify(require('fs')); | |
const fetch = require('node-fetch'); | |
const tempfile = require('tempfile'); | |
const curl = (package, version) => { | |
fetch(url) | |
.then(res => res.text()) |
NewerOlder