Skip to content

Instantly share code, notes, and snippets.

View ronnyhartenstein's full-sized avatar

Ronny Hartenstein ronnyhartenstein

View GitHub Profile
@ronnyhartenstein
ronnyhartenstein / index.ios.js
Last active July 17, 2023 10:14
React Navigation: Parallel Navigators in React Native in a nutshell
import React from 'react'
import { AppRegistry } from 'react-native'
import setup from './setup'
AppRegistry.registerComponent('ReactNavigationTest', setup)

Last updated: 2015-08-11

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

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

@ronnyhartenstein
ronnyhartenstein / timelapse.md
Last active December 23, 2016 20:38 — forked from MorrisJobke/timelapse.md
Creating a timelapse out of an images series

Creating a timelapse out of an images series

Bring them into a common naming format (ordered by date):

jhead -n%Y-%m-%d.%H-%M-%S *.JPG

Create a timelapse video out of those images:

@ronnyhartenstein
ronnyhartenstein / im_find_snippet.sh
Last active December 7, 2015 08:53
ImageMagick: find files which can contain spaces (!!) and convert them with xargs instead of -exec -- with bash regexp of the target file
# Inspiration:
# http://www.imagemagick.org/discourse-server/viewtopic.php?t=22974
# http://stackoverflow.com/questions/13043344/search-and-replace-in-bash-using-regular-expressions
# http://www.imagemagick.org/script/command-line-options.php
# stay in target dir
find . -type f -name "*.tif" -print0 | xargs -0 -n1 bash -c 'convert "$0" "${0/.tif/}.jpg"'
# flatten to some other target dir
find . -type f -name "*.tif" -print0 | xargs -0 -n1 bash -c 'convert "$0" jpg/"$(basename "$0" .tif).jpg"'
@ronnyhartenstein
ronnyhartenstein / Gruntfile.js
Last active August 29, 2015 14:19
OXID Bootstrap Responsive: Gruntfile.js
module.exports = function(grunt) {
var path = require('path');
// Zeitmessung ausgeben
require('time-grunt')(grunt);
// automatischen Laden der Grunt-Modulconfigs
require('load-grunt-config')(grunt, {
data: {
pkg: grunt.file.readJSON('package.json')
@ronnyhartenstein
ronnyhartenstein / categorytree.tpl
Created March 6, 2015 20:51
OXID Bootstrap Responsive: meinshop/tpl/widget/categorytree.tpl
[{if $oxcmp_categories }]
[{assign var="categories" value=$oxcmp_categories->getClickRoot() }]
[{assign var="act" value=$oxcmp_categories->getClickCat() }]
[{if $categories }]
[{assign var="deepLevel" value=$oView->getDeepLevel()}]
<div class="list-group">
[{defun name="tree" categories=$categories}]
[{assign var="deepLevel" value=$deepLevel+1}]
[{assign var="oContentCat" value=$oView->getContentCategory() }]
[{foreach from=$categories item=_cat}]
@ronnyhartenstein
ronnyhartenstein / _navigation.scss
Last active August 29, 2015 14:16
OXID Bootstrap Responsive: widget/_navigation.scss
@charset "UTF-8";
/**
* Navigation
*
* @version $Id$
*/
header {
background-color: #fafafa ;
padding-top: 10px;
@ronnyhartenstein
ronnyhartenstein / _checkout.scss
Created March 6, 2015 20:48
OXID Bootstrap Responsive: css/page/_checkout.scss
@charset "UTF-8";
/**
* Bestellprozess
*
* @version $Id$
*/
.lineBox {
background: url("../../img/line-innershadow.png") no-repeat scroll 0 0 transparent;
border-width: 0px;
@ronnyhartenstein
ronnyhartenstein / _form.scss
Created March 6, 2015 20:44
OXID Bootstrap Responsive: css/layout/_form.scss
@charset "UTF-8";
/**
* Buttons
*
* @version $Id$
*/
.textbox, input[type="text"] {
height: auto;
}
@ronnyhartenstein
ronnyhartenstein / meinshop.scss
Last active August 29, 2015 14:16
OXID Bootstrap Responsive: out/meinshop/src/css/meinshop.scss
// Azure Theme als Basis laden
@import 'vendor/azure_reset';
@import 'vendor/azure_oxid';
// Bootstrap: Buttons, Forms
// für Erweiterung der OXID-Standard-Komponenten
// bower_components/bootstrap-sass/assets/stylesheets ..
@import 'bootstrap/variables';
@import 'bootstrap/mixins/buttons';