I hereby claim:
- I am fanderzon on github.
- I am fanderzon (https://keybase.io/fanderzon) on keybase.
- I have a public key whose fingerprint is D686 1C84 4F03 5EE1 517E C0F7 C70A CCB3 0705 BCA2
To claim this, I am signing this object:
const React = require('react'); | |
const render = require('react-dom/server').renderToString; | |
const express = require('express'); | |
const app = express(); | |
const data = { | |
title: 'Hello world', | |
todoItems: [ | |
'Fetch data', | |
'Create element', |
I hereby claim:
To claim this, I am signing this object:
#[macro_use] extern crate nickel; | |
extern crate nickel_mustache; | |
extern crate rustc_serialize; | |
use std::sync::{Arc, Mutex}; | |
mod todo; | |
use todo::{ Todo }; | |
use nickel_mustache::Render; | |
use nickel::{Nickel, HttpRouter}; |
#[derive(Debug)] | |
struct Point { | |
x: i32, | |
y: i32, | |
} | |
impl Point { | |
pub fn get_x_plus_one(&mut self) -> i32 { | |
self.x = self.x + 1; | |
self.x |
function instructionsReducer(prev, next) { | |
return prev + (next === '(' ? 1 : -1); | |
} | |
function floorMapper(state, instruction) { | |
state.floor += instruction === '(' ? 1 : -1; | |
return Number(state.floor); | |
} | |
function findBasementInstruction(instructions) { |