Skip to content

Instantly share code, notes, and snippets.

Adeel Ejaz adeelejaz

Block or report user

Report or block adeelejaz

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
adeelejaz / downloader.rb
Last active Aug 29, 2015
How to download a bunch of files in Rails and save them?
View downloader.rb
require 'open-uri'
arr = ['', '']
arr.each do |url|
open(url.split('/').last, 'wb') do |file|
file << open(url).read
adeelejaz / jquery.browser.js
Last active Jan 9, 2018
jQuery $.browser as a separate file in case you do not want to include the full migration file
View jquery.browser.js
(function( jQuery, window, undefined ) {
"use strict";
var matched, browser;
jQuery.uaMatch = function( ua ) {
ua = ua.toLowerCase();
var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
You can’t perform that action at this time.