One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading; | |
public sealed class Logger | |
{ | |
[Flags] | |
public enum Targets | |
{ |
Here’s how to update your fork directly from GitHub (as shown in the video above): | |
1 Open your fork repository on GitHub. | |
2 Click on Pull Requests. | |
3 Click on New Pull Request. By default, GitHub will compare the original with your fork, and there shouldn’t be nothing to compare if you didn’t make any changes. | |
4 Click on switching the base (if no changes were made in the fork) or click Edit and switch the base manually. Now GitHub will compare your fork with the original, and you should see all the latest changes. | |
5 Click on Create to create a pull request for this comparison and assign a predictable name to your pull request (e.g., Update from original). | |
6 Click on Send pull request. | |
7 Scroll down and click Merge pull request and finally Confirm merge (If your fork didn’t have any changes, you will be able to merge it automatically). |
$("a[href^='http']").each(function() { | |
$(this).css({ | |
background: "url(http://www.google.com/s2/u/0/favicons?domain=" + this.hostname + | |
") left center no-repeat", | |
"padding-left": "20px" | |
}); | |
}); |
jQuery(document).ready(function() { | |
jQuery("article a[href*='//']:not([href*='" + document.location.hostname + "']):not(:has(*))").each(function() { | |
jQuery(this).css({ | |
background: "url(http://www.google.com/s2/favicons?domain=" + this.hostname + ") left center no-repeat", | |
"padding-left": "22px" | |
}); | |
}); | |
}); |
// callback is optional, since jQuery has promises | |
function getFile(theURL, type, callback) | |
{ | |
/* | |
* Original jQuery.ajax mid - CROSS DOMAIN AJAX | |
* @author James Padolsey (http://james.padolsey.com) | |
* @updated 12-JAN-10 | |
* @info http://james.padolsey.com/javascript/cross-domain-requests-with-jquery/ | |
* source: https://raw.github.com/padolsey/jquery.fn/master/cross-domain-ajax/jquery.xdomainajax.js | |
* |
/** | |
* Simple jQuery plugin for iframe element . | |
* | |
* Note: The parent doc and iframe's embed doc must be in the same origin , | |
* Domains, protocols and ports must match. | |
* | |
* reference: | |
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Same_origin_policy_for_JavaScript | |
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe | |
* |
Here is the list of most commonly used jQuery API functions:
/** | |
* version1: convert online image | |
* @param {String} url | |
* @param {Function} callback | |
* @param {String} [outputFormat='image/png'] | |
* @author HaNdTriX | |
* @example | |
convertImgToBase64('http://goo.gl/AOxHAL', function(base64Img){ | |
console.log('IMAGE:',base64Img); | |
}) |
// Setup CSRF safety for AJAX: | |
$.ajaxPrefilter(function(options, originalOptions, jqXHR) { | |
if (options.type.toUpperCase() === "POST") { | |
// We need to add the verificationToken to all POSTs | |
var token = $("input[name^=__RequestVerificationToken]").first(); | |
if (!token.length) return; | |
var tokenName = token.attr("name"); | |