start new:
tmux
start new with session name:
tmux new -s myname
CC = g++ | |
CFLAGS = -g -Wall | |
SRCS = HelloWorld.cpp | |
PROG = HelloWorld | |
OPENCV = `pkg-config opencv --cflags --libs` | |
LIBS = $(OPENCV) | |
$(PROG):$(SRCS) | |
$(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(LIBS) |
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
/* | |
Usage (I however think that the code is self explanatory) | |
<ReactComment text={` | |
Very long comment with html link | |
<a href="https://gist.github.com/alexeychikk/bfe72a072a9a962f2da900b6151e4aae">Star me :)</a> | |
`} /> | |
*/ | |
import React, {Component, PropTypes} from 'react'; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<div id="secretInfo" style="display: none;">secret info</div> | |
<button type="button" id="btnCopy">Copy hidden info</button> |
import React from 'react'; | |
import { RichUtils, Modifier, EditorState, SelectionState } from 'draft-js'; | |
function isURL(text) { | |
return text.startsWith('http://'); // insert your favorite library here | |
} | |
/* | |
Function you can call from your toolbar or "link button" to manually linkify | |
the selected text with an "explicit" flag that prevents autolinking from | |
changing the URL if the user changes the link text. |
You have to do 2 things in order to allow your container to access your host's postgresql database
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf