Skip to content

Instantly share code, notes, and snippets.

Mohamed A. Hassan MohamedAlaa

Block or report user

Report or block MohamedAlaa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MohamedAlaa
MohamedAlaa / problem_2.rb
Last active Aug 29, 2015
Egyptian Geeks - Project Euler Problem 2
View problem_2.rb
#! /usr/bin/env ruby
first = 0
second = 1
i = 0
sum = 0
limit = 4000000
while i <= limit
i = first + second
View markets.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ajax-form.js
jQuery(function($) {
$('form[data-async]').live('submit', function(event) {
var $form = $(this);
var $target = $($form.attr('data-target'));
$.ajax({
type: $form.attr('method'),
url: $form.attr('action'),
data: $form.serialize(),
@MohamedAlaa
MohamedAlaa / Breezi-cPanel-News-Update.html
Created Oct 25, 2012 — forked from anonymous/Breezi cPanel News Update
Breezi cPanel Plugin News Announcement
View Breezi-cPanel-News-Update.html
<strong>NEW: Breezi Website Builder!</strong></br></br>Click <i>Breezi Website Builder</i> under <i>Software/Services</i> to try the most flexible yet easy-to-use site builder, with automatic mobile website optimization – <u>FREE!</u></br></br>
<img title="Scroll down & click Breezi Website Builder" src="http://breezi.com/wp-content/uploads/2012/10/plugin-cta-graphic.png"/>
@MohamedAlaa
MohamedAlaa / git
Created Jul 12, 2012
Git Conventions
View git
// run once per project
git remote add upstream [ssh repo]
// before pull request
git fetch upstream
// merge remote with local
git merge upstream/master
// install hub
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
You can’t perform that action at this time.