Skip to content

Instantly share code, notes, and snippets.

View pekkis's full-sized avatar

Mikko Forsström pekkis

View GitHub Profile
import React from 'react';
import { NavItem as OriginalNavItem } from 'react-bootstrap';
import { wrapper } from './wrapper';
export default wrapper(OriginalNavItem);
Infoa virtuaalimasiinasta
==========================
Käyttäjä ja salasana
----------------------
user, userpassu
Vasemman palkin ohjelmat, ylhäältä alas.
-----------------------------------------
sudo su
apt-get install aptitude
aptitude install open-vm-tools git postgresql curl zsh
wget -qO- https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install --yes nodejs
@pekkis
pekkis / client.js
Last active October 21, 2015 12:14
import { createHistory } from 'history';
let history = createHistory();
const routes = (
<Router history={history}>
<Route path="/" component={HelloWorldApp}>
<IndexRoute component={Index} />
<Route path="/hello/:name" component={Greeter}></Route>
</Route>
import { default as I, List, Map, Range, Repeat } from 'immutable';
// Array literal
const losos = [
{
name: 'Panu',
age: 27,
visible: true,
generation: 2,
},
npm install --save body-parser
import { default as React, PropTypes } from 'react';
class Measurement extends React.Component {
static propTypes = {
value: PropTypes.number.isRequired,
unit: PropTypes.string.isRequired
};
render() {
@pekkis
pekkis / koulutus.txt
Last active September 13, 2016 10:19
Kalenterisofta autokorjaamolle
-------------------------------
- Varaus
- Tekijä
- Auto
https://github.com/breerly/factory-girl-php
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\generatedValue(strategy="AUTO")
*/
import React from 'react';
import cx from 'classnames';
import { icons } from '../services/assets';
import styles from './Icon.pcss';
const Icon = props => {
const { name, size, flip, className } = props;
const classes = cx(
styles.icon,
styles.className,