Skip to content

Instantly share code, notes, and snippets.

View yorch's full-sized avatar

Jorge Barnaby yorch

  • SentinelOne
  • Miami, FL
View GitHub Profile
@yorch
yorch / rename_to_exiftime.py
Last active October 7, 2015 10:57
Rename JPEG files according to EXIF-date using PIL
## {{{ http://code.activestate.com/recipes/578219/ (r2)
# -*- coding: Windows-1251 -*-
'''
rename_to_exiftime.py
Rename JPEG files according to EXIF-date using PIL
If global variable CREATE_HARDLINK is set, script creates Windows (XP) batch file
for creating hardlink version of source files
@yorch
yorch / .gitignore
Created July 17, 2012 16:09
.gitignore for ASP.Net MVC
###################
# http://stackoverflow.com/questions/639647/git-and-asp-mvc
###################
#
###################
# compiled source #
###################
*.com
*.class
*.dll
@yorch
yorch / gist:2891402
Created June 7, 2012 20:37
Variable Size Background (jQuery)
(function() {
// Background image variable size (keeping aspect ratio fixed)
// Based on http://jonathanstark.com/blog/2011/01/03/variable-size-background-image/
// By Jorge Barnaby (jorge {dot} barnaby {at} gmail) - Jun 2012
// Background image
var imgPath = 'assets/background.jpg'; // Path of the image to be used as background
var origW = 1920; // Original width of the image
var origH = 1080; // Original height of the image
var ratio = origW / origH;