Skip to content

Instantly share code, notes, and snippets.

const Note = props => <div>{props.note}</div>;
const SimpleNote = props => (
<div
style={{ color: props.selectedNoteIndex === props.index ? 'red' : 'blue' }}
>
<Note note={props.note} />
</div>
);
import * as React from 'react';
const Note = props => (
<div style={{ color: props.selected ? 'red' : 'blue' }}>{props.note}</div>
);
const notes = [];
const selectedNoteIndex = 1;
notes.map((note, index) => (
@psamim
psamim / example1.jsx
Last active February 9, 2018 14:21
Example 1
import * as React from 'react';
const Note = props => (
<div
style={{ color: props.selectedNoteIndex === props.index ? 'red' : 'blue' }}
>
{props.note}
</div>
);
Verifying my Blockstack ID is secured with the address 1J1LfA6bicnnv593DhVag4FaUzd8r1uxiu https://explorer.blockstack.org/address/1J1LfA6bicnnv593DhVag4FaUzd8r1uxiu
CREATE GIST

Directory Layout

.
├── /components/                # Shared or generic UI components
│   ├── /Button/                # Button component
│   ├── /Layout/                # Website layout component
│   ├── /Link  /                # Link component to be used insted of <a>
│   └── /...                    # etc.
├── /core/                      # Core framework
/* eslint-disable max-len */
/**
* Build config for development process that uses Hot-Module-Replacement
* https://webpack.github.io/docs/hot-module-replacement-with-webpack.html
*/
import webpack from 'webpack';
import validate, { Joi } from 'webpack-validator';
import merge from 'webpack-merge';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
@psamim
psamim / file.svg
Created February 8, 2017 08:06
file.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
! "Enabled modi" Set from: XResources
rofi.modi: run
! "Window opacity" Set from: XResources
rofi.opacity: 93
! "Window width" Set from: Default
! rofi.width: 50
! "Number of lines" Set from: XResources
rofi.lines: 8
! "Number of columns" Set from: Default
! rofi.columns: 1

Keybase proof

I hereby claim:

  • I am psamim on github.
  • I am psamim (https://keybase.io/psamim) on keybase.
  • I have a public key whose fingerprint is 140D 35F2 49CA AF6A 0643 DB8D 8EE8 CF0F 66FF 44A5

To claim this, I am signing this object:

library("openxlsx")
library("rpart")
library("rpart.plot")
## setwd("/home/samim/workspace/danial")
# Load the data
wb <- read.xlsx("data.xlsx")