Skip to content

Instantly share code, notes, and snippets.

View MohamedAlaa's full-sized avatar

Mohamed A. Hassan MohamedAlaa

View GitHub Profile
@MohamedAlaa
MohamedAlaa / 0_reuse_code.js
Created November 16, 2015 05:34
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@MohamedAlaa
MohamedAlaa / Breezi-cPanel-News-Update.html
Created October 25, 2012 21:37 — forked from anonymous/Breezi cPanel News Update
Breezi cPanel Plugin News Announcement
<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 / nvd3.scss
Last active August 29, 2015 14:01
nvd3 Scatter hide the lines in the x and y Axis
.nv-scatterChart {
.nv-distributionX line.nv-distx[y1="0"],
.nv-distributionY line.nv-disty[x2="8"]
{
display: none;
}
}
(function($) {
function parseImagesFromCSS(doc) {
var i, j,
rule,
image,
pattern = /url\((.*)\)/,
properties = ['background-image', '-webkit-border-image'],
images = {};
if (doc.styleSheets) {
#!/usr/bin/env ruby
require 'cinch' # gem install cinch --no-ri --no-rdoc
require 'askwiki' # gem install askwiki --no-ri --no-rdoc
bot = Cinch::Bot.new do
configure do |c|
c.server = "irc.freenode.org"
c.nick = "Ask_wikipedia"
c.channels = ["#cinch-bots"]
@MohamedAlaa
MohamedAlaa / problem_2.rb
Last active August 29, 2015 13:55
Egyptian Geeks - Project Euler Problem 2
#! /usr/bin/env ruby
first = 0
second = 1
i = 0
sum = 0
limit = 4000000
while i <= limit
i = first + second