Skip to content

Instantly share code, notes, and snippets.

View EslaMx7's full-sized avatar
🏠
Working from home

Eslam Hamouda EslaMx7

🏠
Working from home
View GitHub Profile
@EslaMx7
EslaMx7 / index.haml
Created July 8, 2013 15:23
A CodePen by Hakim El Hattab. Cloudy Spiral CSS animation - Started building a loading indicator but ended up with this... thing.
.wrapper
- (1..62).each do
%i
%a{:href => "#black", :id => "black"}
@EslaMx7
EslaMx7 / index.html
Created July 8, 2013 15:27
A CodePen by Robert. Windows 8 style slider - On Hover move the <aside> (perhaps not the best element for this) to display the image hidden beneath it.
<div class="productShell">
<div class="productBox color-blue">
<aside><h4>Text Name Here</h4></aside>
<img src="http://placehold.it/240x240" />
</div>
<div class="productBox small color-green">
<aside><h4>Text Name Here</h4></aside>
<img src="http://placehold.it/240x240" />
</div>
@EslaMx7
EslaMx7 / ProjectEuler.P2.cs
Last active December 26, 2018 06:16
Project Euler Problem 2 Solution with C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsolesTests
{
class Program
{
@EslaMx7
EslaMx7 / ProjectEuler.P3.cs
Created February 7, 2014 12:14
Project Euler Problem 3 Solution with C#
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsolesTests
{
class Program
{
static void Main(string[] args)
{
@EslaMx7
EslaMx7 / ProjectEuler.P1.cs
Created February 7, 2014 12:26
Project Euler Problem 1 Solution with C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsolesTests
{
class Program
{
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>

XSS-game by Google

Welcome, recruit! Cross-site scripting (XSS) bugs are one of the most common and dangerous types of vulnerabilities in Web applications. These nasty buggers can allow your enemies to steal or modify user data in your apps and you must learn to dispatch them, pronto!

At Google, we know very well how important these bugs are. In fact, Google is so serious about finding and fixing XSS issues that we are paying mercenaries up to $7,500 for dangerous XSS bugs discovered in our most sensitive products.

In this training program, you will learn to find and exploit XSS bugs. You'll use this knowledge to confuse and infuriate your adversaries by preventing such bugs from happening in your applications.

There will be cake at the end of the test.

@EslaMx7
EslaMx7 / Resume FireFox Broken Downloads.py
Last active November 20, 2015 12:08
a small Python script to modify the URL of paused downloading file in FireFox, this is very useful while downloading big file from a server that giving you a very limited time for your IP, you just need to pause the current download and update the file URL with the new one with this script then restart the browser to see the changes and resume y…
__author__ = 'Eslam Hamouda | eslamx.com'
import configparser
import os.path
import json
import io
# get the required files paths to access Firefox AppData
win_user_profile = os.getenv('USERPROFILE')
@EslaMx7
EslaMx7 / 0.md
Created June 20, 2017 21:25 — forked from max-mapper/0.md
JS hoisting by example

JavaScript function hoisting by example

Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.

To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js

Notes on hoisting

(I may be using incorrect terms below, please forgive me)

@EslaMx7
EslaMx7 / run.csx
Created January 30, 2018 21:51 — forked from dev-kperera/run.csx
Azure Functions with SharePoint Online CSOM C#
#r "Microsoft.SharePoint.Client.Runtime.dll"
#r "Microsoft.SharePoint.Client.dll"
using System;
using System.Security;
using System.Configuration;
using Microsoft.SharePoint.Client;
public static void Run(TimerInfo myTimer, TraceWriter log)
{