This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from subprocess import PIPE, Popen | |
from threading import Thread | |
try: | |
from Queue import Queue, Empty | |
except ImportError: | |
from queue import Queue, Empty # python 3.x | |
ON_POSIX = 'posix' in sys.builtin_module_names |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* right click on an entry in the network log, select Copy All as Har | |
* type in console: x = [paste] | |
* paste the following JS code into the console | |
* copy the output, paste into a file | |
* then wget -i [that file] | |
*/ | |
(function(logObj, mime) { | |
var results = []; | |
logObj.log.entries.forEach(function (entry) { | |
if (mime && entry.response.content.mimeType !== mime) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* NOTES: This is my personal collection which I plan to try and keep */ | |
/* up to date. There are a lot of snippets around the web but seem to */ | |
/* rarely be a whole collection to choose from. */ | |
/* ALL INPUT AND FEEDBACK WELCOME! */ | |
/* iPad Mini - 1024x768, 163ppi. http://www.apple.com/ipad-mini/specs/ */ | |
/* iPhone 5 - 1136x640, 326 ppi. http://www.apple.com/iphone/specs.html */ | |
/* iPad '4' - 2048x1536, 264 ppi. http://www.apple.com/ipad/specs/ */ | |
/* iPhone 4 - Actual: 960x640, Logical: 480x320. http://www.iphoneresolution.com/ */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.SharePoint; | |
namespace slnNamespace | |
{ | |
/// <summary> | |
/// An enumeration of the different operators. | |
/// </summary> | |
/// <remarks> |