Skip to content

Instantly share code, notes, and snippets.

View pehtoorismies's full-sized avatar
💭
not much

Antti Tuomaala pehtoorismies

💭
not much
View GitHub Profile
{
"data": {
"ipa20": {
"title": "Uusi IPA 20kpl alustava kysely",
"date": "2021-02-28T21:00:00.000Z",
"participants": [
{
"nickname": "jake"
},
{
apiVersion: v1
kind: Pod
metadata:
name: test-pd
spec:
containers:
- image: busybox
command: ["sleep", "9999999"]
name: test-container
volumeMounts:
import React from 'react';
import { node } from 'prop-types';
import styled from 'styled-components';
import { DefaultFlex } from '../Common';
const PropTypes = {
page: node.isRequired,
};
const DefaultProps = {};
const Wrapper = styled(DefaultFlex)`
import React from 'react';
import { compose, withProps, withState } from 'recompose';
import GameTutorial from '../../components/GameTutorial';
import page1 from '../../components/GameTutorial/Page1';
import page2 from '../../components/GameTutorial/Page2';
const page1Props = props => ({
back: () => props.history.push('/descriptions/1/'),
content: {
title: 'How to play',
import React from 'react';
import { Grid, Image } from 'semantic-ui-react';
import styled from 'styled-components';
import ReactMarkdown from 'react-markdown';
import ShortCodesPlugin from 'remark-shortcodes';
import EmojiPlugin from 'remark-emoji';
const PropTypes = {};
const DefaultProps = {};
@pehtoorismies
pehtoorismies / OnboardingPage3.js
Created February 23, 2018 07:21
Without attributes
import { func, shape, number } from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import hexToRgba from 'hex-rgba';
import { Button } from '../Elements';
import NarratorBox from './NarratorBox';
import withDimensions from '../../hoc/withDimensions';
import Background from './Background';
import Boat from './Boat';
import Character from './Character';
const R = require('ramda');
const G = require('generatorics');
const DATA = [
{id: 'kotter_1', cost: 6},
{id: 'kotter_2', cost: 3},
{id: 'kotter_3', cost: 4},
{id: 'kotter_4', cost: 3},
{id: 'kotter_5', cost: 2},
{id: 'kotter_6', cost: 5},
const R = require('ramda');
const G = require('generatorics');
const DATA = [
{id: 'kotter_1', cost: 6},
{id: 'kotter_2', cost: 3},
{id: 'kotter_3', cost: 4},
{id: 'kotter_4', cost: 3},
{id: 'kotter_5', cost: 2},
{id: 'kotter_6', cost: 5},
@pehtoorismies
pehtoorismies / Recursion
Created November 9, 2017 15:05
Test find permutations
const R = require('ramda');
const G = require('generatorics');
const data = [
{id: 1, cost: 4},
{id: 2, cost: 2},
{id: 3, cost: 4},
{id: 4, cost: 5},
{id: 5, cost: 7},
{id: 6, cost: 8},
@pehtoorismies
pehtoorismies / ga.js
Created October 13, 2017 06:09
new ga
// actions/auth.js
export const receivedLogin = (response) => {
if (response instanceof Error) {
return {
type: ActionTypes.AUTH_LOGIN_FAIL,
};
}
// side effect
const token = getToken(response);
const userId = getUserId(response);