ssh-keygen -t rsa
Once you have entered the Gen Key command, you will get a few more questions:
# Change YOUR_TOKEN to your prerender token | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; | |
index index.html; |
// JavaScript `this` examples from http://stackoverflow.com/a/12371105/477168 | |
// The value of this in a function is sometimes called the "context" in which | |
// the function runs. The most important thing to understand is that a function | |
// object does not have a fixed context -- the value of this changes depending | |
// on how the function is called. | |
// If the function is called as a "raw" function (e.g., just do someFunc()), | |
// this will be window (or undefined if the function runs in strict mode). |
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"> | |
<html> | |
<head> | |
<title>${project.name}</title> | |
<style> | |
body table, td, th, p, h1, h2 { | |
margin:0; | |
font:normal normal | |
100% Georgia, Serif; | |
background-color: #ffffff; |
var express = require('express'); | |
var session = require('express-session'); | |
var cookieParser = require('cookie-parser'); | |
var flash = require('connect-flash'); | |
var app = express(); | |
app.use(cookieParser('secret')); | |
app.use(session({cookie: { maxAge: 60000 }})); | |
app.use(flash()); |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install
will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
一,ps和pt转换px:相对长度单位。像素(Pixel)。(PS字体) | |
pt:绝对长度单位。点(Point)。(iOS字体)公式如下:pt=(px/96)*72。二,字体间转换1in = 2.54cm = 25.4 mm = 72pt = 6pc | |
具体换算是: | |
Points Pixels Ems Percent | |
6pt 8px 0.5em 50% | |
7pt 9px 0.55em 55% | |
7.5pt 10px 0.625em 62.5% | |
8pt 11px 0.7em 70% | |
9pt 12px 0.75em 75% | |
10pt 13px 0.8em 80% |