Skip to content

Instantly share code, notes, and snippets.

@mingderwang
mingderwang / BetOnThePressureOnMars.sol
Last active October 31, 2021 01:41
BetOnThePressureOnMars,sol for Remix, deployed to address: 0x756387869AfDEeb868E82084CAa27847b0970B4B (Kovan)
/** This example code is designed to quickly deploy an example contract using Remix.
* If you have never used Remix, try our example walkthrough: https://docs.chain.link/docs/example-walkthrough
* You will need testnet ETH and LINK.
* - Kovan ETH faucet: https://faucet.kovan.network/
* - Kovan LINK faucet: https://kovan.chain.link/
*/
// deploy this to address: 0x756387869AfDEeb868E82084CAa27847b0970B4B (Kovan)
pragma solidity ^0.6.6;
//SPDX-License-Identifier: MIT
@pooja
pooja / developing-on-filecoin.md
Last active March 26, 2025 16:15
Developing on Filecoin: Resources
@nijicha
nijicha / install_nodejs_and_yarn_homebrew.md
Last active July 25, 2025 09:02
Install NVM, Node.js, Yarn via Homebrew
@willurd
willurd / web-servers.md
Last active October 2, 2025 19:22
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@cjus
cjus / jsonval.sh
Created June 26, 2011 17:42
Extract a JSON value from a BASH script
#!/bin/bash
function jsonval {
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop`
echo ${temp##*|}
}
json=`curl -s -X GET http://twitter.com/users/show/$1.json`
prop='profile_image_url'
picurl=`jsonval`