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
export PS1="\[\e[1;1m\]\w % " | |
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
export PATH="/opt/local/bin:/opt/local/sbin:$PATH" | |
# Setting PATH for Python 2.7 | |
# The orginal version is saved in .bash_profile.pysave | |
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" | |
export PATH | |
export PATH=$PATH::/usr/local/mongodb/bin | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" |
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
var sys = require('sys'), | |
http = require('http'), | |
ws = require("./vendor/ws"), | |
arrays = require('./vendor/arrays'); | |
var headers = {}; | |
headers['Host'] = "search.twitter.com"; | |
var clients = []; |
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
export PATH="/Users/amr/.rvm/gems/ruby-1.9.2-p0@rails2/bin:/Users/amr/.rvm/gems/ruby-1.9.2-p0@global/bin:/Users/amr/.rvm/rubies/ruby-1.9.2-p0/bin:/Users/amr/.rvm/bin:$PATH" | |
RUBY_VERSION='ruby-1.9.2-p0' | |
export RUBY_VERSION | |
GEM_HOME='/Users/amr/.rvm/gems/ruby-1.9.2-p0@rails2' | |
export GEM_HOME | |
GEM_PATH='/Users/amr/.rvm/gems/ruby-1.9.2-p0@rails2:/Users/amr/.rvm/gems/ruby-1.9.2-p0@global' | |
export GEM_PATH | |
BUNDLE_PATH='/Users/amr/.rvm/gems/ruby-1.9.2-p0@rails2' | |
export BUNDLE_PATH | |
MY_RUBY_HOME='/Users/amr/.rvm/rubies/ruby-1.9.2-p0' |
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
~ % rvm --trace use default | |
--trace use default | |
rvm 1.0.1 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/] | |
+ [[ -z '' ]] | |
+ [[ ! -z ruby-1.9.2-p0 ]] | |
+ rvm_action=use | |
+ [[ ! -z '' ]] | |
+ [[ ! -z '' ]] |
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
<div id='asset-bucket' style='display: none'> | |
<div id='assets-container'> | |
<div id='asset-tabs'> | |
<strong>`attachment_tab' default partial not found!</strong><strong>`upload_tab' default partial not found!</strong><a class='asset-tab here' href='#'> | |
Bucket | |
</a> | |
<strong>`search_tab' default partial not found!</strong></div> | |
<div id='assets'> | |
<div class='pane' id='bucket'> | |
<p> |
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
node.js:63 | |
throw e; | |
^ | |
Error: Cannot find module './../../../lib/node/.npm/express/1.0.0rc3/package/bin/express' | |
at loadModule (node.js:475:15) | |
at require (node.js:611:14) | |
at Object.<anonymous> (/usr/local/share/npm/bin/express:8:18) | |
at Module._compile (node.js:662:23) | |
at Module._loadScriptSync (node.js:669:10) | |
at Module.loadSync (node.js:538:12) |
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
(function($) { | |
var Post, app; | |
Post = Model("post", { | |
persistence: Model.REST("/posts") | |
}); | |
app = $.sammy(function() { | |
this.element_selector = '#body'; | |
this.get('#!/', function(context) { | |
var posts; | |
posts = Post.all(); |
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
cd A | |
git remote add test ../B && git fetch test | |
git merge test/master | |
git push (if you use a remote repo.) | |
git remote add rails https://github.com/rails/rails.git; git fetch rails; git merge rails/master; git push |
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
%h2 | |
Edit #{resource_name.to_s.humanize} | |
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| | |
= devise_error_messages! | |
%p | |
= f.label :full_name | |
%br | |
= f.text_field :full_name | |
%p | |
= f.label :username |
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
# coding: utf-8 | |
class Animal | |
def initialize(اسم) | |
@اسم = اسم | |
end | |
def اكتب_اسم_الحيوان | |
puts @اسم |