Install svg-inline-loader for webpack :
npm install svg-inline-loader --save-dev
Add it to your loaders in module.loaders
section of webpack.config.js
:
{
test: /\.svg$/,
loader: 'svg-inline-loader'
import React, { Component, PropTypes, createElement } from 'react' | |
import { findDOMNode } from 'react-dom' | |
// usage: | |
// import { ScrollSpy, Link } = './wherever-this-file-is' | |
// | |
// <ScrollSpy> | |
// <Link ref={c => this._firstLink = c} section="1">Section 1</Link> | |
// <Link section="2">Section 2</Link> | |
// <Link section="3">Section 3</Link> |
#-*- mode: nginx; mode: flyspell-prog; mode: autopair; ispell-local-dictionary: "american" -*- | |
## Define a zone for limiting the number of simultaneous | |
## connections nginx accepts. 1m means 32000 simultaneous | |
## sessions. We need to define for each server the limit_conn | |
## value refering to this or other zones. | |
## ** This syntax requires nginx version >= | |
## ** 1.1.8. Cf. http://nginx.org/en/CHANGES. If using an older | |
## ** version then use the limit_zone directive below | |
## ** instead. Comment out this | |
## ** one if not using nginx version >= 1.1.8. |
Install svg-inline-loader for webpack :
npm install svg-inline-loader --save-dev
Add it to your loaders in module.loaders
section of webpack.config.js
:
{
test: /\.svg$/,
loader: 'svg-inline-loader'
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config
file by running the command sudo vi /etc/ssh/sshd_config
and do the following
Port
to 2222 (or any other port above 1000)PasswordAuthentication
to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart
function groupBy(list, props) { | |
return list.reduce((a, b) => { | |
(a[b[props]] = a[b[props]] || []).push(b); | |
return a; | |
}, {}); | |
} | |
// Usage. | |
groupBy([{ | |
id: 1, |
(ns hello-react-blessed.core | |
(:require | |
[cljs.nodejs :as nodejs] | |
[reagent.core :as reagent] | |
[re-frame.core :as rf] | |
[blessed :as blessed] ; or use neo-blessed | |
["react-blessed" :as rb] | |
[ws])) | |
(defonce logger (reagent/atom [])) |