Skip to content

Instantly share code, notes, and snippets.

View Austex's full-sized avatar
🏠
Working from home

Reza Piri Austex

🏠
Working from home
View GitHub Profile
@joho
joho / gist:3735740
Created September 17, 2012 05:40 — forked from rafaelss/gist:3700977
PostgreSQL 9.2 upgrade steps
Steps to install and run PostgreSQL 9.2 using Homebrew (Mac OS X)
(if you aren't using version 9.1.5, change line 6 with the correct version)
1. launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
2. mv /usr/local/var/postgres /usr/local/var/postgres91
3. brew update
4. brew upgrade postgresql
5. initdb /usr/local/var/postgres -E utf8
6. pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres
7. cp /usr/local/Cellar/postgresql/9.2.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
@andrewliebchen
andrewliebchen / gist:4115483
Created November 20, 2012 02:03 — forked from it-is-full-of-stars/gist:4111582
Ruby on Rails for Designers

#Rails

##Creating a Rails project With the command line, navigate to where you want the project folder to be generated (e.g. documents/my_rails_projects/) and type the following to create a project called project_name:

rails new project_name

Navigate to that folder and type the following to create a controller called posts:

@dingyi
dingyi / high-dpi-media.css
Created November 20, 2012 03:22 — forked from marcedwards/high-dpi-media.css
A CSS media query that captures almost all high DPI aware devices.
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs with IE zoomed in */
/* - Android hdpi devices and above */
/* - Android tvdpi devices, including Google Nexus 7 */
@ymkjp
ymkjp / createDocumentFragment.js
Created November 20, 2012 03:51
Performance of DOM
var fragment = document.createDocumentFragment();
for (var i = 0; i < 10; i++) {
var child = document.createElement('div');
// here
fragment.appendChild(child);
}
document.getElementById('parent').appendChild(fragment);
@ryanlindsey
ryanlindsey / bootstrap_vars_sass.css.sass
Created November 20, 2012 04:21
Bootstrap Variables (sass)
//
// Variables
// --------------------------------------------------
// Global values
// --------------------------------------------------
// Grays
@kuno
kuno / source_maps.rb
Created November 20, 2012 05:20 — forked from alexspeller/source_maps.rb
Coffeescript Source Maps in Rails
# config/initializers/source_maps.rb
if Rails.env.development?
require 'open3'
module CoffeeScript
class SourceMapError < StandardError; end;
class << self
def map_dir
@Austex
Austex / gist:4218092
Created December 5, 2012 18:15 — forked from lucasfais/gist:1207002
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
@gbuesing
gbuesing / ml-ruby.md
Last active February 28, 2024 15:13
Resources for Machine Learning in Ruby

UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!

Resources for Machine Learning in Ruby

Gems