For making your own jittergrams
Two files as input:
./jitter.sh file_01.jpg file_02.jpg
/* | |
NOTE!!!! | |
The most updated version of this code is here: | |
https://github.com/scottjehl/iOS-Orientationchange-Fix |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Responsive Design Testing</title> | |
<style> | |
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
.wrapper { width: 6000px; } | |
.frame { float: left; } | |
h2 { margin: 0 0 5px 0; } |
/* This code was written by Sergejs Kovrovs and has been placed in the public domain. */ | |
import QtQuick 2.0 | |
MouseArea { | |
property point origin | |
property bool ready: false | |
signal move(int x, int y) | |
signal swipe(string direction) |
import sublime, sublime_plugin, re | |
DEBUG_ENABLED = False | |
PRINT_CONTEXT = False | |
# Toggle between single-line or multi-line formatted css statement | |
# | |
# Add the following line to Preferences > Key Bindings - User | |
# { "keys": ["ctrl+shift+j"], "command": "toggle_single_line_css" } | |
# |
server: | |
@@jekyll --server | |
render: | |
@@echo "Building the site..." | |
@@jekyll --no-future | |
minify: | |
@@echo "Minifying the CSS..." | |
@@java -jar _build/yuicompressor.jar --verbose --type css -o _site/path/to/style.css _site/path/to/style.css |
$sprites: sprite-map("sprites/*.png"); | |
$sprites-retina: sprite-map("sprites-retina/*.png"); | |
@mixin sprite-background($name) { | |
background-image: sprite-url($sprites); | |
background-position: sprite-position($sprites, $name); | |
background-repeat: no-repeat; | |
display: block; | |
height: image-height(sprite-file($sprites, $name)); | |
width: image-width(sprite-file($sprites, $name)); |
# Workflow from https://github.com/necolas/dotfiles | |
# Add the new submodule | |
git submodule add git://example.com/remote/path/to/repo.git vim/bundle/one-submodule | |
# Initialize the submodule | |
git submodule init | |
# Clone the submodule | |
git submodule update | |
# Stage the changes | |
git add vim/bundle/one-submodule |
class AppRouter extends Backbone.Router | |
routes: | |
'users/:user': user | |
user: (user) -> | |
console.log 'navigated to user:', user | |
router = new AppRouter | |
Backbone.history.start { pushState: true } |
/** | |
* Display your window width - useful for responsive web design | |
* @author: Rutger Laurman | |
*/ | |
// Ready? | |
$(function(){ | |
// Create debug element | |
$("body").append("<div style='position:fixed;top:0;left:0;border:1px solid #999;background:#eee;' id='viewportwidth'></div>"); |