Skip to content

Instantly share code, notes, and snippets.

View fielding's full-sized avatar
๐Ÿ™Š

Fielding Johnston fielding

๐Ÿ™Š
View GitHub Profile
const Info = ({ title, img, alt, message, details, className, buttonText = 'Done', handleClick = () => {} }) => (
<div className={className !== undefined ? `${styles['acc__info']} ${styles[className]}` : styles['acc__info']}>
<h2>{title}</h2>
<div className={styles.card}>
<div className={styles['acc__info__container']}>
<img src={img} alt={alt} />
</div>
<h4>{message}</h4>
<p>{details}</p>
</div>
This file has been truncated, but you can view the full file.
[
{
"id": 5402626308964352,
"name": "A.J. Applegate",
"nickNames": [],
"imageKeyIds": [
4659648506363904,
5653361667866624,
6170424375246848,
6560949142028288,
[
{
"name": "Chongqing",
"country": "China",
"displayName": "Chongqing (China)"
},
{
"name": "Shanghai",
"country": "China",
"displayName": "Shanghai (China)"
/**
*
* Node
*
* @param {*} key
* @param {*} value
* @param {Node} [next=null]
* @param {Node} [prev=null]
*/
function Node(key, value, next = null, prev = null) {

Repo

Haven't decided if I am going to submit code to it yet

Questions

๐Ÿ‘ - Unlocked & Done ๐Ÿ˜Š - Locked & Done ๐Ÿ”’ - Locked & Not Done [] - Not yet Done

@fielding
fielding / Block.js
Last active December 28, 2018 21:19
primitive blockchain implementation in javascript
const sha256 = require("crypto-js/sha256");
function Block(data, parent) {
if ( parent) {
this.index = parent.index + 1;
this.parentHash = parent.hash;
} else {
this.index = 0;
this.parentHash = null;
}
function solve(data) {
// example returns sum of a line of integers seperated by a space
// return data.split(' ').reduce((acc, cur) => acc += Number(cur), 0);
return data;
}
process.stdin.resume();
process.stdin.setEncoding('ascii');
This file has been truncated, but you can view the full file.
[
{
"timestamp": 1556742627000,
"dataType": "activity-hack",
"dataSource": "git@sage:/Users/fielding/etc",
"uuid": "96656ebe-b6d6-531a-9c68-5c92a7ccf50b",
"refs": [
"HEAD",
"master",
"origin/master",
โ”€ โ” โ”‚ โ”ƒ โ”„ โ”… โ”† โ”‡ โ”ˆ โ”‰ โ”Š โ”‹ โ”Œ โ” โ”Ž โ”
โ” โ”‘ โ”’ โ”“ โ”” โ”• โ”– โ”— โ”˜ โ”™ โ”š โ”› โ”œ โ” โ”ž โ”Ÿ
โ”  โ”ก โ”ข โ”ฃ โ”ค โ”ฅ โ”ฆ โ”ง โ”จ โ”ฉ โ”ช โ”ซ โ”ฌ โ”ญ โ”ฎ โ”ฏ
โ”ฐ โ”ฑ โ”ฒ โ”ณ โ”ด โ”ต โ”ถ โ”ท โ”ธ โ”น โ”บ โ”ป โ”ผ โ”ฝ โ”พ โ”ฟ
โ•€ โ• โ•‚ โ•ƒ โ•„ โ•… โ•† โ•‡ โ•ˆ โ•‰ โ•Š โ•‹ โ•Œ โ• โ•Ž โ•
<rss
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
version="2.0">
<channel>