create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| module HashConverter | |
| class << self | |
| def to_underscore hash | |
| convert hash, :underscore | |
| end | |
| def to_camel_case hash | |
| convert hash, :camelize, :lower | |
| end | |
| def convert obj, *method | |
| case obj |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| require "rspec/core/formatters/base_text_formatter" | |
| class ProgressWithNames < RSpec::Core::Formatters::BaseTextFormatter | |
| def example_passed(example) | |
| super(example) | |
| output.print green(".") | |
| end | |
| def example_pending(example) | |
| super(example) |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
| {% load cms_tags sekizai_tags %} | |
| <!doctype html> | |
| <head> | |
| <title>{{ request.current_page.get_title }}</title> | |
| {% render_block "css" %} | |
| </head> | |
| <body> | |
| {% cms_toolbar %} | |
| {% placeholder "main" %} |
The squeeky-clean way with homebrew and pip/virtualenv.
$ easy_install pip
$ pip install virtualenvwrapper mercurial
$ brew install gfortran && brew install pyqt
# Have a nice long coffee break -- compiling Qt took 67 minutes on my
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| Taken from http://stackoverflow.com/questions/244243/how-to-reset-postgres-primary-key-sequence-when-it-falls-out-of-sync. | |
| --drop function IF EXISTS reset_sequence (text,text) RESTRICT; | |
| CREATE OR REPLACE FUNCTION "reset_sequence" (tablename text,columnname text) RETURNS bigint --"pg_catalog"."void" | |
| AS | |
| $body$ | |
| DECLARE seqname character varying; | |
| c integer; | |
| BEGIN | |
| select tablename || '_' || columnname || '_seq' into seqname; |
| <html> | |
| <head> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| $(document).ready(function() { | |
| $('#button').click(function() { | |
| FOO.trigger('buttonPushed', {bar:32}); |
| # -*- coding: utf-8 -*- | |
| import os | |
| gettext = lambda s: s | |
| PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) | |
| DEBUG = True | |
| TEMPLATE_DEBUG = DEBUG |