Skip to content

Instantly share code, notes, and snippets.

@pkarl
pkarl / README.md
Last active August 29, 2015 13:56
ffmpeg + ImageMagick + python stuffs

So here's what I did. I don't know if it's anywhere NEAR what you're getting at, but I think it's neato. Thanks for the source images :)

I created a bunch of interstitial 50% blended frames, and at higher rates (like 24fps) I see a difference!

Here's what I did:

  1. dumped all the images to a dir
  2. wrote a python script (attached)
  3. created an /output dir
  4. ran the python script, which copies source images + generates blended images using ImageMagick CLI junk
@chriseppstein
chriseppstein / _minified_filenaming.md
Last active November 26, 2019 07:40
compiling a minified version of css. This configures your compass project to emit files in minified form when compiling for production.
$ compass compile --environment production && compass compile

Afterwards you will have both the minified and non-minified versions in your output folder. Note that compass clean will not clean up your minified files.

@abackstrom
abackstrom / gist:4611843
Last active December 11, 2015 14:08
post-commit hook for @mikesusz
#!/bin/sh
# curl https://gist.github.com/raw/4611843/gistfile1.sh > .git/hooks/post-commit && chmod +x .git/hooks/post-commit
git diff-tree -p HEAD^ | grep livereload 2>&1 >/dev/null
if [ $? -eq 0 ] ; then
echo -e "\e[0;31m!!! Don't commit livereload stuff. --amend that commit.\e[0m"
fi

Breaking into Web Development

I work as an analyst contractor, these days my roles are often a mixture of development and management. I have been asked by a countless number of people what they need to do to get the jobs I’m offered – and it’s simpler than most expect. The market for talented developers in the United Kingdom (and in many talent-lite communities around the world) is such that anyone who merely knows what they are doing has a very good chance of getting a job. Even a job contracting (which ordinarily has senior-level requirements).

To become a web developer with a good salary and employment expectations you need skills. Below I’ll provide a plan to get you towards the top of the largest market: PHP Web Development. Advanced knowledge of everything on this list would immediately make you one of the best, so just strive to have an exposure if not a comprehensive understanding (though the *starred points are essential). To learn these technologies you should use several in combination on on

@5eleven
5eleven / Capistrano.Mysql
Created July 26, 2012 01:19
Capistrano task to pull MySQL production data to develoment database
# Fetches the production database on the server contents into the development
# database
#
# Assumes you have dbuser, dbhost, dbpassword, and application defined somewhere in your
# task. Modify as needed - database.yml is used for importing data, just not for exporting.
#
# Only supports MySQL.
desc "Load production data into development database"
task :fetch_remote_db, :roles => :db, :only => { :primary => true } do
require 'yaml'
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@tbranyen
tbranyen / starrydraw.js
Created April 25, 2011 14:13
Starrydraw canvas particle stuffs
window.StarryDraw = function(self) {
var elem,
context,
size,
skip,
data,
// Particle
particles,