| Parameter | YouTube recommends setting |
|---|---|
| -movflags faststart | moov atom at the front of the file (Fast Start) |
| user - имя пользователя | |
| server.timeweb.ru - сервер | |
| 1. На машине ssh-keygen -t rsa | |
| 2. Копируем, можно по FTP или одной из команд | |
| 2.1. ssh-copy-id -i ~/.ssh/id_rsa [email protected] | |
| 2.2. scp ~/.ssh/id_rsa.pub [email protected]:~ | |
| 3. На сервере | |
| [ -d ~/.ssh ] || (mkdir ~/.ssh; chmod 711 ~/.ssh) # создание директории и изменение прав | |
| cat ~/id_rsa.pub >> ~/.ssh/authorized_keys # добавление открытого ключа |
| var faker = require('faker') | |
| var fs = require('fs') | |
| var path = require('path') | |
| for (var i = 0; i < 1000; i++) { | |
| generateMD() | |
| } | |
| function generateMD () { | |
| var fileName = faker.lorem.word() + '-' + faker.lorem.word() |
| name | industry | sector | website | rank | |
|---|---|---|---|---|---|
| Walmart | General Merchandisers | Retailing | http://www.walmart.com | 1 | |
| Exxon Mobil | Petroleum Refining | Energy | http://www.exxonmobil.com | 2 | |
| Chevron | Petroleum Refining | Energy | http://www.chevron.com | 3 | |
| Berkshire Hathaway | Insurance: Property and Casualty (Stock) | Financials | http://www.berkshirehathaway.com | 4 | |
| Apple | Computers, Office Equipment | Technology | http://www.apple.com | 5 | |
| General Motors | Motor Vehicles and Parts | Motor Vehicles & Parts | http://www.gm.com | 6 | |
| Phillips 66 | Petroleum Refining | Energy | http://www.phillips66.com | 7 | |
| General Electric | Diversified Financials | Financials | http://www.ge.com | 8 | |
| Ford Motor | Motor Vehicles and Parts | Motor Vehicles & Parts | http://www.ford.com | 9 |
The real time chart is a resuable Javascript component that accepts real time data. The purpose is to show the arrival time of real time events (or lack thereof), piped to the browser (for example via Websockets). Various attributes of each event can be articulated using size, color and opacity of the object generated for the event.
The component allows multiple asynchronous data streams to be viewed, each in a horizontal band across the SVG. New data streams can be added dynamically (as they are discovered by the caller over time), simply by calling the yDomain method with the new array of data series names. The chart will automatically fit the new data series into the available space in the SVG.
The chart's time domain is moving with the passage of time. That means that any data placed in the chart eventually will age out and leave the chart. Currently, the chart history is capped at five minutes (but can be changed by modifying the comp
The real time chart is a resuable Javascript component that accepts real time data. The chart's time domain is moving with the passage of time, which means that any data placed in the chart eventually will age out and leave the chart. In addition to the main chart, the component also manages a "focus" window with a viewport (d3.brush) that can moved and sized to view an arbitrary portion of the time series data.
The component adheres to the pattern described in Towards Reusable Chart.
The following options are currently supported:
- width and height in pixels (Number)
- border (Boolean)
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "strings" | |
| ) |
| // Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
| $ git ls-files | xargs wc -l |
| # encoding: utf8 1,1 Top# encoding: utf8 | |
| import argparse | |
| from datetime import datetime | |
| import json | |
| from random import randint | |
| import requests | |
| import sys | |
| from time import sleep |
(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.