Skip to content

Instantly share code, notes, and snippets.

{
"com.google.android.gm": "https://mail.google.com/mail/u/0/#search/is%3Aunread",
"com.joaomgcd.autoinput": "http://joaoapps.com/autoinput/",
"com.joaomgcd.autovoice": "http://joaoapps.com/autovoice/",
"com.facebook.lite": "https://www.facebook.com/notifications",
"com.facebook.katana": "https://www.facebook.com/notifications",
"com.google.android.talk": "https://hangouts.google.com/",
"com.whatsapp": "https://web.whatsapp.com/",
"com.google.android.youtube": "https://www.youtube.com/feed/subscriptions",
"com.google.android.apps.plus": "https://plus.google.com/u/0/notifications/all",
$view = new view();
$view->name = 'clone_of_articles';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Clone of Articles';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
@tommyent
tommyent / .zshrc
Created March 20, 2013 03:07 — forked from SlexAxton/.zshrc
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
@tommyent
tommyent / gist:4122758
Created November 21, 2012 03:03
sendy
if (variable_get('sendy_user_register', TRUE )) {
/**
* Implements hook_form_FORM_ID_alter().
* Add newsletter fields to registration form.
*/
function sendy_form_user_register_form_alter(&$form, &$form_state ) {
$form ['sendy_subscribe'] = array(
'#type' => 'checkbox',
'#default_value' => 1,
'#title' => t('I would like to recieve the newsletter'),
@tommyent
tommyent / gist:4046038
Created November 9, 2012 14:36 — forked from ocean90/gist:1544377
Compiling Compass.app on Mac OS X
Tutorial for compiling the Compass.app (http://compass.handlino.com/)
=====================================================================
Java installed?
java -version
Load jRuby (for example JRuby 1.6.5.1 Binary .zip)
http://jruby.org/download
Unzip jRuby to `/usr/local/`
@tommyent
tommyent / gist:3949851
Created October 25, 2012 00:48
Fix Zen/Emmet Double Bracket issue Sublime Text 2
Re: Autocompletes adding extra opening tag
by peruvianidol on Tue Jun 26, 2012 6:03 pm
I was having the same issue. Went into Packages/HTML/html_completions.py (ln 52) and removed the opening bracket from the following lines and it cleared up the issue. Hope this helps!
CODE: SELECT ALL
if op == '.':
snippet = "<{0} class=\"{1}\">$1</{0}>$0".format(tag, arg)
else:
snippet = "<{0} id=\"{1}\">$1</{0}>$0".format(tag, arg)
@tommyent
tommyent / .gitconfig
Created August 18, 2012 04:41 — forked from jfexyz/.gitconfig
Git Config: Rename this file ".gitconfig" and place inside your home directory.
##
# This file should be renamed ".gitconfig" and placed inside your home directory.
##
[user]
name = YOUR_NAME
email = YOUR_EMAIL
[github]
user = YOUR_GITHUB_USERNAME
token = YOUR_GITHUB_TOKEN
@tommyent
tommyent / deploy.sh
Created April 23, 2012 02:07 — forked from khalsah/deploy.sh
Experimental git sync & deploy hooks
#!/bin/sh
LOCAL_BRANCH="master"
LIVE_BRANCH="live"
REMOTE_NAME="deploy"
if [ "$(git symbolic-ref -q HEAD)" != "refs/heads/${LOCAL_BRANCH}" ]; then
echo "Not on ${LOCAL_BRANCH}, not deploying"
exit 1
else