- Install python
- Install pip
- Install virtualenv
- Install virtualenvwrapper
- Install
git
(server) through DSM Package Manager - Install
perl
through DSM Package Manager - Install
exiftool
through CPHub (https://www.cphub.net/?id=40&pid=609) - Clone elodie from Github (https://github.com/jmathai/elodie)
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
import React from 'react'; | |
import { render } from 'react-dom'; | |
import Root from './components/root.jsx'; | |
import { silentSwap } from './lib/atom'; | |
import { fromJS } from 'immutable'; | |
import './stores/ui'; | |
const initialState = { | |
ui: { |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
var path = require('path'); | |
var gulp = require('gulp'); | |
var through2 = require('through2'); | |
var File = require('vinyl'); | |
function generate_two_text_files_from_one_json(){ | |
'use strict'; | |
return through2.obj(function(file, enc, next){ | |
var mydata = JSON.parse(file.contents.toString('utf8')); |
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element
or the /deep/
path selector.
video::webkit-media-controls-timeline {
background-color: lime;
}
video /deep/ input[type=range] {
Last updated: 2017-03-18
exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .
###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs
(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.
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |