Skip to content

Instantly share code, notes, and snippets.

View amrnt's full-sized avatar

Amr Tamimi amrnt

View GitHub Profile
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"
var sys = require('sys'),
http = require('http'),
ws = require("./vendor/ws"),
arrays = require('./vendor/arrays');
var headers = {};
headers['Host'] = "search.twitter.com";
var clients = [];
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'
~ % 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 '' ]]
<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>
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)
(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();
@amrnt
amrnt / fetchAndMerge
Created November 3, 2010 21:13
fetching and merging to repos
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
%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
# coding: utf-8
class Animal
def initialize(اسم)
@اسم = اسم
end
def اكتب_اسم_الحيوان
puts @اسم