Skip to content

Instantly share code, notes, and snippets.

💭
(っ◕‿◕)っ

Tony Crowe tcrowe

💭
(っ◕‿◕)っ
Block or report user

Report or block tcrowe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tcrowe
tcrowe / medium-feed.js
Created Sep 10, 2018
process medium.com site feed xml into json into file
View medium-feed.js
/*
medium feed processor:
---
+ npm install async xml2js lodash
+ add urls to feeds array to get more
+ npm run data-medium
*/
@tcrowe
tcrowe / aion-create-account.md
Last active Oct 9, 2018
Create Aion account with JavaScript
View aion-create-account.md
@tcrowe
tcrowe / redis-get-set-json.js
Created Sep 13, 2018
simple redis get set with json values
View redis-get-set-json.js
/*
⚠️expires keys in 10min so it's only good for temp data
Install:
npm install redis lodash
Usage:
@tcrowe
tcrowe / aion-compile-solidity.js
Created Oct 9, 2018
compile solidity from your aion node
View aion-compile-solidity.js
/*
Example how to:
+ add RPC calls into Aion Web3
+ check which languages the node can compile
+ compile a solidity contract
+ inspect results
💪🏼
@tcrowe
tcrowe / .stylintrc
Last active Nov 13, 2018
.stylintrc with stylus-supremacy
View .stylintrc
{
"blocks": "never",
"brackets": "never",
"colons": "never",
"commaSpace": "always",
"commentSpace": "always",
"cssLiteral": "never",
"depthLimit": 6,
"duplicates": false,
"efficient": "always",
@tcrowe
tcrowe / mocha.opts
Last active Oct 16, 2018
optimize your mocha.opts for bdd
View mocha.opts
--colors
--reporter spec
--ui bdd
# stop if there's an error
--bail
# give us a full explanation
--full-trace
@tcrowe
tcrowe / decode-aion-keystore.js
Created Oct 23, 2018
decode aion binary keystore file using aion-rlp module
View decode-aion-keystore.js
/*
use aion-rlp to decode an aion keystore v3 binary encoded file
the output is shown by index
the next step is decrypt aes-128-ctr
*/
@tcrowe
tcrowe / .eslintrc
Last active Nov 20, 2018
.eslintrc with prettier
View .eslintrc
{
"env": {
"es6": true,
"node": true
},
"plugins": ["prettier"],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
@tcrowe
tcrowe / webpack.config.js
Created Oct 25, 2018
a decent webpack config with babel and react
View webpack.config.js
/*
# webpack config
npm install webpack webpack-cli uglifyjs-webpack-plugin @babel/core @babel/cli @babel/register @babel/preset-env @babel/preset-react babel-loader react react-dom
https://webpack.js.org
https://webpack.js.org/configuration
*/
@tcrowe
tcrowe / convert-mov-to-gif.sh
Last active Nov 10, 2018
Convert QuickTime MOV to GIF
View convert-mov-to-gif.sh
ffmpeg -i incoming.mov -s 300x200 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --dither > outgoing.gif
# https://github.com/chrisjmendez/convert-mov-to-gif
You can’t perform that action at this time.