Skip to content

Instantly share code, notes, and snippets.

Ahmed Ali ahmedali5530

Block or report user

Report or block ahmedali5530

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View twain_scanner.html
<div class="uploaded-files"></div>
<div id="imagesContainer" class="row"></div>
<button type="button" id="bSave" class="btn btn-info">Load Images</button>
$('#bSave').click(function(e) {
var images = $('iframe').contents().find('.modal-body').find('img');
if(images.length == 0){
alert('No Images found, please scan some images first.');
return false;
ahmedali5530 / ReflectionExtractor.php
Last active Jun 19, 2019
Update in symfony Symfony\property-info\Extractor\ReflectionExtractor.php
View ReflectionExtractor.php
* This file is part of the Symfony package.
* (c) Fabien Potencier <>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
ahmedali5530 / currency-dropdown-list.html
Created May 31, 2018 — forked from AmrMekkawy/currency-dropdown-list.html
Currency HTML "select" element (dropdown list)
View currency-dropdown-list.html
<select name="">
<option value="USD" selected="selected">United States Dollars</option>
<option value="EUR">Euro</option>
<option value="GBP">United Kingdom Pounds</option>
<option value="DZD">Algeria Dinars</option>
<option value="ARP">Argentina Pesos</option>
<option value="AUD">Australia Dollars</option>
<option value="ATS">Austria Schillings</option>
<option value="BSD">Bahamas Dollars</option>
<option value="BBD">Barbados Dollars</option>
ahmedali5530 / import database from cmd
Created Mar 4, 2017
this code is used to import large mysql files using mysql cmd tool
View import database from cmd
mysql -u username -p database_name < file.sql
ahmedali5530 / ParameterBag.php
Last active Jun 19, 2019
Recursive get() for symfony, ParameterBag modifications
View ParameterBag.php
* Returns a parameter by name, or use : to search in arrays($request->get('form:somefield:anotherfield'))
* $_POST[form][somefield][anotherfield]
* @param string $key The key
* @param mixed $default The default value if the parameter key does not exist
* @return mixed
public function get($key, $default = null)
ahmedali5530 / config.json
Created Mar 16, 2016 — forked from anonymous/config.json
Bootstrap Customizer Config
View config.json
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#673AB7",
"@brand-success": "#4CAF50",
ahmedali5530 / gist:438d4be7b4ada6094b70
Created Nov 25, 2015
Sublime Text 2 - Useful Shortcuts
View gist:438d4be7b4ada6094b70

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.


Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
View Super Simple Ajax File Upload (XHR2)
// Ajax File upload with jQuery and XHR2
// Sean Clark
// xhr2 file upload
// data is optional
$.fn.upload = function(remote,data,successFn,progressFn) {
// if we dont have post data, move it along
if(typeof data != "object") {
progressFn = successFn;
successFn = data;
View currency_list
array (
'ALL' => 'Albania Lek',
'AFN' => 'Afghanistan Afghani',
'ARS' => 'Argentina Peso',
'AWG' => 'Aruba Guilder',
'AUD' => 'Australia Dollar',
'AZN' => 'Azerbaijan New Manat',
'BSD' => 'Bahamas Dollar',
'BBD' => 'Barbados Dollar',
'BDT' => 'Bangladeshi taka',
You can’t perform that action at this time.