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>
[
{
"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",
─ ━ │ ┃ ┄ ┅ ┆ ┇ ┈ ┉ ┊ ┋ ┌ ┍ ┎ ┏
┐ ┑ ┒ ┓ └ ┕ ┖ ┗ ┘ ┙ ┚ ┛ ├ ┝ ┞ ┟
┠ ┡ ┢ ┣ ┤ ┥ ┦ ┧ ┨ ┩ ┪ ┫ ┬ ┭ ┮ ┯
┰ ┱ ┲ ┳ ┴ ┵ ┶ ┷ ┸ ┹ ┺ ┻ ┼ ┽ ┾ ┿
╀ ╁ ╂ ╃ ╄ ╅ ╆ ╇ ╈ ╉ ╊ ╋ ╌ ╍ ╎ ╏
<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>
{"url":"/fielding","img":"https://avatars0.githubusercontent.com/u/454023?s=460&v=4","uid":454023,"repos":34,"stars":157,"followers":10,"following":15,"pinned":[{"url":"/fielding/dotfiles"},{"url":"/fielding/blox"},{"url":"/fielding/ludum-dare"},{"url":"/fielding/game-of-life"},{"url":"/fielding/minimid"},{"url":"/fielding/trouser-snake"}],"worksfor":"","location":"Fort Smith, Arkansas","fullname":"Fielding Johnston","website":"https://justfielding.com/","avatar":"https://avatars0.githubusercontent.com/u/454023?s=460&v=4","contribs":246,"contrib_matrix":{"2017-02-05":{"fill":"#ebedf0","count":0,"x":"13","y":"0"},"2017-02-06":{"fill":"#ebedf0","count":0,"x":"13","y":"12"},"2017-02-07":{"fill":"#ebedf0","count":0,"x":"13","y":"24"},"2017-02-08":{"fill":"#ebedf0","count":0,"x":"13","y":"36"},"2017-02-09":{"fill":"#ebedf0","count":0,"x":"13","y":"48"},"2017-02-10":{"fill":"#ebedf0","count":0,"x":"13","y":"60"},"2017-02-11":{"fill":"#ebedf0","count":0,"x":"13","y":"72"},"2017-02-12":{"fill":"#ebedf0","count":0,"x"