Skip to content

Instantly share code, notes, and snippets.

Avatar

mark pitman maypo

View GitHub Profile
@maypo
maypo / message.jsx
Created Oct 24, 2016
message stateless component
View message.jsx
import React from 'react';
const Message = ({ title, subtitle }) => (
<div className="message-wrapper">
{title ? <div className="title-message">{title}</div> : null}
{subtitle ? <div className="subtitle-message">{subtitle}</div> : null}
</div>
);
Message.propTypes = {
View message-test.js
/* eslint-disable */
import { Meteor } from 'meteor/meteor';
import React from 'react';
import { shallow } from 'enzyme';
import { chai, assert } from 'meteor/practicalmeteor:chai';
import Message from './Message';
describe('Message component', () => {
@maypo
maypo / settings.json
Created Nov 16, 2016
file needed for focallocal development
View settings.json
{
"public": {
"google_api_key": "abcdefghijklmnopqrstuvwxyz",
"google": {
"oauth_key": "abcdefghijklmnopqrstuvwxyz",
"oauth_secret": "abcdefghijklmnopqrstuvwxyz"
},
"meetup": {
"oauth_key": "abcdefghijklmnopqrstuvwxyz",
"oauth_secret": "abcdefghijklmnopqrstuvwxyz"
@maypo
maypo / keybase.md
Created Nov 27, 2016
keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am maypo on github.
  • I am maypo (https://keybase.io/maypo) on keybase.
  • I have a public key ASBXP5v8KO5y_aNbIYq1Qex_Ie6x6AM_26vxTOJ29XLxOgo

To claim this, I am signing this object:

View snippets.cson
'.source.js':
'React es6 class':
'prefix': '_re6c'
'body': """
import React from \'react\';
export default class ${1:XXX} extends React.Component {
constructor(props) {
super(props);
}
View demo-PoA.json
{
"name": "DemoPoA",
"engine": {
"authorityRound": {
"params": {
"gasLimitBoundDivisor": "0x400",
"stepDuration": "5",
"validators" : {
"list": [
"0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e",
View gist:06847734aff21e1439d7390416360d53
localhost ~ # emerge -av dev-lang/scala-bin
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-lang/scala-bin-2.12.4::java-kit USE="-doc" 19,280 KiB
Total: 1 package (1 new), Size of downloads: 19,280 KiB
Would you like to merge these packages? [Yes/No] yes
@maypo
maypo / HelloWorld.scala
Created Jul 1, 2018
good old 'hello world" in scala
View HelloWorld.scala
object HelloWorld {
def main(args: Array[String]) {
println("Hello, world!")
}
}