Title: Prelaunch Protocol
Author: Allen A. Bargi
Date: June 17, 2010
Version: 1.0.0
Copyright: 2010 Allen A. Bargi.
This work is licensed under a Creative Commons License.
http://creativecommons.org/licenses/by-sa/2.5/
CSS: http://github.com/aziz/parsmark/raw/master/stylesheets/mmd.css
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
:+1: | |
:-1: | |
:100: | |
:1234: | |
:8ball: | |
:a: | |
:ab: | |
:abc: | |
:abcd: | |
:accept: |
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
# Run rake db:size to get a print of your database size in bytes. | |
# Run rake db:tables:size to get the sizes for individual tables | |
# Works for MySQL and PostgreSQL. Not tested elsewhere. | |
namespace :db do | |
desc 'Print data size for entire database' | |
task :size => :environment do | |
database_name = ActiveRecord::Base.connection.instance_variable_get("@config")[:database] | |
adapter = ActiveRecord::Base.connection.adapter_name.downcase |
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
# Newbie Programmer | |
def factorial(x) | |
if x == 0 | |
return 1 | |
else | |
return x * factorial(x - 1) | |
end | |
end | |
puts factorial(6) | |
puts factorial(0) |
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
# --prefix=/usr --add-module=/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.9/ext/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --http-log-path=/var/log/nginx/access_log --error-log-path=/var/log/nginx/error_log --with-http_ssl_module --with-http_geoip_module --with-http_realip_module --with-http_addition_module --with-http_stub_status_module --with-http_flv_module --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --add-module=/home/aziz/nginx-modules/http_push_module --add-module=/home/aziz/nginx-modules/upload_progress_module --add-module=/home/aziz/nginx-modules/zip_module --add-module=/home/aziz/nginx-modules/memc_module --add-module=/home/aziz/nginx-modules/mp4_stream_module | |
# --with-http_ssl_module | |
# --with-http_geoip_module | |
# --with-http_realip_module | |
# --with-http_addition_module | |
# --with-http_stub_status_module | |
# --with-http_flv_module | |
# --add-module=/ht |
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
brew install -v --HEAD https://raw.githubusercontent.com/rs/homebrew/gls/Library/Formula/gls.rb | |
/usr/bin/curl -fLA Homebrew 0.9.5 (Ruby 2.0.0-645; OS X 10.11) https://raw.githubusercontent.com/rs/homebrew/gls/Library/Formula/gls.rb -o /Library/Caches/Homebrew/Formula/gls.rb | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 480 100 480 0 0 1595 0 --:--:-- --:--:-- --:--:-- 1594 | |
Warning: You are using OS X 10.11. | |
We do not provide support for this pre-release version. | |
You may encounter build failures or other breakage. | |
==> Downloading https://github.com/rs/gls/archive/master.zip | |
Already downloaded: /Library/Caches/Homebrew/gls-HEAD.zip |
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
brew install -v --HEAD https://raw.githubusercontent.com/rs/homebrew/gls/Library/Formula/gls.rb | |
/usr/bin/curl -fLA Homebrew 0.9.5 (Ruby 2.0.0-645; OS X 10.11) https://raw.githubusercontent.com/rs/homebrew/gls/Library/Formula/gls.rb -o /Library/Caches/Homebrew/Formula/gls.rb | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 480 100 480 0 0 534 0 --:--:-- --:--:-- --:--:-- 534 | |
Warning: You are using OS X 10.11. | |
We do not provide support for this pre-release version. | |
You may encounter build failures or other breakage. | |
==> Downloading https://github.com/rs/gls/archive/master.zip | |
Already downloaded: /Library/Caches/Homebrew/gls-HEAD.zip |
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
# The following initializer provides an :alias => "my_route_name" option to restful routes in your | |
# route.rb. This simply makes the same route also available under a different …_path / …_url helpers. | |
# For example, | |
# map.resources :notes, :alias => :snippets | |
# Gives you | |
# notes_path, notes_url, new_note_path... #as always |
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
fa: | |
errors: | |
messages: | |
not_found: "یافت نشد" | |
already_confirmed: "قبلا تایید شده است" | |
not_locked: "قفل نشده است" | |
not_saved: | |
one: "۱ خطا جلوی ذخیره %{resource} را گرفت:" | |
other: "%{count} خطا جلوی ذخیره این %{resource} را گرفت:" |
OlderNewer