- Create an application definition statement.
- Reduce your app's feature set to just the essentials.
- In the UI, display only the most important items.
- Showcase content.
- Place secondary options in separate screen or popover.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Plantilla para documentos XeTeX | |
\documentclass[10pt]{report} | |
% LAYOUT | |
\usepackage[a4paper]{geometry} | |
%% Márgenes | |
\geometry{ | |
includeheadfoot, | |
twoside, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Very simple autoloader class | |
* | |
* This class loads another classes following the Zend naming convention: | |
* - Class name: Foo_Bar | |
* - File name: Foo/Bar.php | |
* | |
* Example of use: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function render($template, $params = array(), $directory = 'templates') { | |
// make sure that the template has the desired params | |
extract($params); | |
// catch the template content | |
ob_start(); | |
include($directory . '/' . $template . '.php'); // you have the correct include_path, right? | |
$applied_template = ob_get_contents(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem list | cut -d" " -f1 | xargs gem uninstall -aIx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
# config/server/unicorn.rb | |
require 'fileutils' | |
# required data | |
env = ENV['RACK_ENV'] | |
app_dir = File.expand_path('../../..', __FILE__) | |
app_key = 'app' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -e "s/old_pattern/new_pattern/g;" -pi.save $(ack -f path/to/files) | |
# NOTE: this will create *.save files. Remove them with: rm -f **/*.save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# borrowed from: http://log.iany.me/post/16812080563/git-rm-deleted-files | |
git ls-files -d | xargs git rm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Do not commit files with the flag: NOCOMMIT | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# passman - GPL3 - nibble <develsec.org> 2009 | |
# Minimal password manager | |
# link: http://nibble.develsec.org/hg/toys/file/ddaf55c59fc7/passman | |
PASSFILE=~/.passmandb | |
TMPFILE=~/.passmandb.$$ | |
trap "shred -fuz ${TMPFILE}" 0 2 15 && | |
umask 177 && |
OlderNewer