This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save body-parser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { default as I, List, Map, Range, Repeat } from 'immutable'; | |
// Array literal | |
const losos = [ | |
{ | |
name: 'Panu', | |
age: 27, | |
visible: true, | |
generation: 2, | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Infoa virtuaalimasiinasta | |
========================== | |
Käyttäjä ja salasana | |
---------------------- | |
user, userpassu | |
Vasemman palkin ohjelmat, ylhäältä alas. | |
----------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function kulju1() { | |
}; | |
export function kulju2() { | |
}; | |
export default { | |
kulju1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($, cookieJar) { | |
cookieJar('uuid', function(uuid) { | |
if (!uuid) { | |
return; | |
} | |
$.ajax({ | |
url:'http://52.18.241.27/uuid/' + uuid + ':Adform.json', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookieJar('uuid', function(uuid) { | |
console.log(uuid, 'UUUUID'); | |
}); |