Skip to content

Instantly share code, notes, and snippets.

@sorin-davidoi
sorin-davidoi / cyanogenmod-exif-fix.cpp
Last active August 29, 2015 14:05
CyanogenMod DateTime Exif fix for "1970:01:01 02:00:00"
/**
* This is a fix for a bug in CyanogenMod (I think) that causes the DateTime Exif tag
* in photos taken with the camera to be set to "1970:01:01 02:00:00" while the corect
* date is stored in DateTimeOriginal. This causes problems for photo manipulation programs
* like Digikam.
*
* The fix consists in overriding the DateTime tag with the content of DateTimeOriginal if
* the DateTime tag is equal to "1970:01:01 02:00:00".
*
* Compile with: g++ -o cyanogenmod-exif-fix cyanogenmod-exif-fix.cpp -l exiv2
@sorin-davidoi
sorin-davidoi / image-rename
Last active December 20, 2015 18:48
Simply script to batch rename photos based on EXIF date and time so that sorting them alphabetically by name sorts the by the time they were taken.
#!/usr/bin/ruby
# Sorin Davidoi (sorin.davidoi@gmail.com)
require 'optparse'
require 'exifr'
options, files, conflicts = { }, { }, [ ]
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Webpack Bundle Analyzer</title>
<!-- viewer.js -->
<script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Webpack Bundle Analyzer</title>
<!-- viewer.js -->
<script>
@sorin-davidoi
sorin-davidoi / index.html
Created July 14, 2017 16:31
Bundle view after force shaking emojione
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Webpack Bundle Analyzer</title>
<!-- viewer.js -->
<script>
@sorin-davidoi
sorin-davidoi / index.html
Created July 28, 2017 12:27
Mastodon React 16
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Webpack Bundle Analyzer</title>
<!-- viewer.js -->
<script>