Skip to content

Instantly share code, notes, and snippets.

View ramytamer's full-sized avatar
🤔
🤷‍♂️

Ramy Tamer ramytamer

🤔
🤷‍♂️
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Home Feed</title>
<link rel="stylesheet" href="http://alexse.com/views/home/index.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/foundation/5.4.5/css/foundation.min.css">
#include <stdio.h>
#include <stdlib.h>
#define LENGTH 10
struct node
{
int priority;
int time;
@ramytamer
ramytamer / outline
Last active August 29, 2015 14:18
Web Development Sessions
Session 1:
Introduction To Web Development
HTML basics
PHP basics
Javascript basics
Session 2:
Database basics with MySQL
Web Development With PHP
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@ramytamer
ramytamer / 0_reuse_code.js
Last active August 29, 2015 14:19
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
@ramytamer
ramytamer / atef.php
Last active August 29, 2015 14:19
atef
<html>
<head>
</head>
<body>
<form action="" method="post">
<input type="text" name="atef" placeholder="Your response">
<button type="submit">Ok</button>
<html>
<head>
</head>
<body>
<form action="" method="post">
<input type="text" name="response" placeholder="Your response">
<input type="submit" value="OK">
<?php namespace App\Http\Requests;
use App\Http\Requests\Request;
class NewAssignmentRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
@ramytamer
ramytamer / index.php
Last active August 29, 2015 14:19
quizer-index
<!DOCTYPE html>
<html>
<head>
<title>Feed</title>
<!-- Bootstrap CSS -->
<link href="//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/yeti/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
</head>
@ramytamer
ramytamer / register.php
Last active August 29, 2015 14:19
register
<?php
require_once 'app.php';
$app = new App;
if ( isset($_POST['name'], $_POST['email'], $_POST['password']) ) {
$name = $_POST['name'];
$email = $_POST['email'];
$password = $_POST['password'];