With FFMPEG
ffmpeg -r 24 -start_number 6885 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4 -crf 18 -preset slow
With FFMPEG
ffmpeg -r 24 -start_number 6885 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4 -crf 18 -preset slow
# Inside a controller | |
mail = Premailer::Rails::Hook.new(NewsMailer.news(@newsletter, params[:email])) | |
mail.perform | |
mail.message.html_part.body.decoded # Gives plain inlined HTML |
<?xml version="1.0" encoding="UTF-8"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<!-- Main instance --> | |
<xs:element name="contact"> | |
<xs:complexType> | |
<xs:choice maxOccurs="unbounded"> | |
<!-- Title, firstname, lastname --> | |
<xs:element name="title" type="titleType"/> | |
<xs:element name="firstname" type="xs:string"/> |
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- | |
To change this license header, choose License Headers in Project Properties. | |
To change this template file, choose Tools | Templates | |
and open the template in the editor. | |
--> | |
<xs:schema version="1.0" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
elementFormDefault="qualified"> |
package me.slashfix.angular.rest; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
import javax.persistence.EntityManager; | |
import javax.persistence.NoResultException; | |
import javax.persistence.Query; | |
/** |
rsync version 3.1.2
rsync -a --progress --stats --human-readable -e "ssh -T -c arcfour -o Compression=no -x" <source> <destination>
https://gist.github.com/KartikTalwar/4393116
Install opencv3 with brew
brew tap homebrew/science
brew install opencv3
Be sure to have pkg-config, otherwise install it:
brew install pkg-config
be sure to have pkg-config var set correctly
gem build blabla.gemspec
gem push blabla.gem
npm
require 'date' | |
# Actually doesn't matter WHAT you choose as the epoch, it | |
# won't change the algorithm. Just don't change it after you | |
# have cached computed scores. Choose something before your first | |
# post to avoid annoying negative numbers. Choose something close | |
# to your first post to keep the numbers smaller. This is, I think, | |
# reddit's own epoch. | |
$our_epoch = Time.local(2005, 12, 8, 7, 46, 43).to_time |