Skip to content

Instantly share code, notes, and snippets.

View Dev1an's full-sized avatar

Damiaan Dufaux Dev1an

View GitHub Profile
source /opt/ros/indigo/setup.bash
ffmpeg -y -r 30 -f image2pipe -vcodec ppm -i ./scene.ppm -vcodec libx264 -pix_fmt yuv420p -f mov -preset fast -crf 2 -threads 0 ./scene.mov
meteor mongo domain.com --url
mongodump -u username -p password --host production-db-c1.meteor.io --port 27017 -d database
@Dev1an
Dev1an / Easy NSLayoutConstraints.swift
Last active February 19, 2018 23:17
An easy way to create layout constraints with some custom swift operators.
//
// ConstraintOperators.swift
//
// Created by Damiaan Dufaux on 10/12/15.
// Copyright © 2015 Damiaan Dufaux. All rights reserved.
//
import Foundation
import UIKit
@Dev1an
Dev1an / Timestamps in radix 36.md
Last active November 21, 2015 13:15
This gist shows you how to encode the current time into raidx 36 strings using Javascript

##Encoding current time

  (new Date).getTime().toString(36)

##Decoding milliseconds in radix into a date

  new Date(parseInt("radixDate", 36))
@Dev1an
Dev1an / addedFiles.sh
Created October 5, 2015 08:12
Show a list of files that were added in the latest commit
git diff @{1} --name-only --diff-filter=A