Skip to content

Instantly share code, notes, and snippets.

@midoooo
midoooo / index.php
Last active August 29, 2015 14:21 — forked from no1k/index.php
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Single Upload Form with PHP</title>
</head>
<body>
<form method="POST" action="upload.php" enctype="multipart/form-data">
<label for="file"> Pick a file : </label>
__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')
@midoooo
midoooo / grid-rtl
Created September 1, 2014 23:37 — forked from anonymous/grid-rtl
/*!
* Bootstrap v3.2.0 Grid, Cleaned and manually minified by Nadir, grab a LTR version at
* https://gist.github.com/anonymous/58b6b2de80e56acf08bc
*/
input,
button,
select,
textarea {
font-family: inherit;
/*
*
* Originally inspired by: http://designedbythomas.co.uk/blog/how-detect-width-web-browser-using-jquery
*
* Original source by https://gist.github.com/highrockmedia/3710930
*
* My contribution: I re-wrote some code it to fire as one function, so you're only editing values in one place.
*
*/
/*
* Inspired by:
* http://designedbythomas.co.uk/blog/how-detect-width-web-browser-using-jquery
*
* This script is ideal for getting specific class depending on device width
* for enhanced theming. Media queries are fine in most cases but sometimes
* you want to target a specific JQuery call based on width. This will work
* for that. Be sure to put it first in your script file. Note that you could
* also target the body class instead of 'html' as well.
* Modify as needed