import Timer | |
import Signal exposing (Address,Mailbox,mailbox) | |
import Html exposing (div, button, text, Html) | |
import Html.Events exposing (onClick) | |
import Task exposing (Task,andThen) | |
import Http | |
import Time exposing (every,second) |
from functools import partial | |
def placeholderify(form=None, fields=None): | |
""" | |
A decorator for Django forms that sets a `placeholder` attribute to all | |
fields. Each field's label is used as a placeholder. | |
Use it like so: | |
I'm be using DreamCompute as my OpenStack provider, but there are dozens to choose from. I assume you already have Ansible and the OpenStack CLI tools installed.
With the proliferation of OpenStack public clouds offering free and intro tiers, it's becoming very easy to effectively run a simple application for free or nearly free. Also with the emergence of Ansible, you don't need to learn and deploy complicated tools to do configuration management.
Branch A has commits (X,Y) that also need to be in Branch B. The cherry-pick operations should be done in the same chronological order that the commits appear in Branch A.
cherry-pick
does support a range of commits, but if you have merge commits in that range, it gets really complicated
git checkout branch-B
git cherry-pick X
git cherry-pick Y
Rich Hickey • 3 years ago
Sorry, I have to disagree with the entire premise here.
A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.
Mastery comes from a combination of at least several of the following:
The video opens with a regular Haskell
source file in haskell-mode
. We start off by adding headings that
break the file into meaningful chunks. A section heading is indicated
by an asterisk following Haskell single-line comment characters,
i.e. -- *
. These are top-level headings, sub-headings are indicated
by adding more asterisks.
These section markers are given meaning by
from selenium import webdriver | |
from features.apps.portal import Portal | |
class Browser(object): | |
driver = webdriver.Chrome() | |
driver.implicitly_wait(15) | |
def close(context): | |
context.driver.close() |
Terminal Commands: | |
One webcam: | |
ffmpeg -f alsa -ac 2 -i hw:1,0 -f v4l2 -s 1280x720 -r 10 -i /dev/video1 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -r 25 -g 20 -b:v 2500k -codec:a libmp3lame -ar 44100 -threads 6 -b:a 11025 -bufsize 512k -f flv rtmp://a.rtmp.youtube.com/live2/YOURSTREAMNAMEHERE | |
Two webcam overlay: | |
ffmpeg -f alsa -ac 2 -i hw:1,0 -f v4l2 -s 1280x720 -r 10 -i /dev/video1 -f v4l2 -s 320x240 -r 10 -i /dev/video0 -filter_complex "[1:v]setpts=PTS-STARTPTS[bg]; [2:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=shortest=1 [out]" -map "[out]" -map 0:a -vcodec libx264 -pix_fmt yuv420p -preset veryfast -r 25 -g 20 -b:v 2500k -codec:a libmp3lame -ar 44100 -threads 6 -b:a 11025 -bufsize 512k -f flv rtmp://a.rtmp.youtube.com/live2/YOURSTREAMNAMEHERE |