Skip to content

Instantly share code, notes, and snippets.

View pekkis's full-sized avatar

Mikko Forsström pekkis

View GitHub Profile
npm install --save body-parser
import { default as I, List, Map, Range, Repeat } from 'immutable';
// Array literal
const losos = [
{
name: 'Panu',
age: 27,
visible: true,
generation: 2,
},
@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>
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
Infoa virtuaalimasiinasta
==========================
Käyttäjä ja salasana
----------------------
user, userpassu
Vasemman palkin ohjelmat, ylhäältä alas.
-----------------------------------------
import React from 'react';
import { NavItem as OriginalNavItem } from 'react-bootstrap';
import { wrapper } from './wrapper';
export default wrapper(OriginalNavItem);
export function kulju1() {
};
export function kulju2() {
};
export default {
kulju1,
import { createAction } from 'redux-actions';
import api from '../api';
import { Seq, Range, List, Set } from 'immutable';
import { fetchPersons } from './PersonActions';
export const RECEIVE_MOVIES = 'MOVIE_RECEIVE_MOVIES';
export const SET_CURRENT_MOVIE = 'MOVIE_SET_CURRENT_MOVIE';
export const receiveMovies = createAction(
RECEIVE_MOVIES
(function($, cookieJar) {
cookieJar('uuid', function(uuid) {
if (!uuid) {
return;
}
$.ajax({
url:'http://52.18.241.27/uuid/' + uuid + ':Adform.json',
@pekkis
pekkis / lussi.js
Last active August 26, 2015 08:53
cookieJar('uuid', function(uuid) {
console.log(uuid, 'UUUUID');
});