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
/** | |
* Bookmarklet code, this will inject a script into what ever page your currently visiting when you click this favorite/bookmark link. | |
* To install, just create a favorite/bookmark, then view the properties of is and change the name to something familiar. | |
* Update the url to the next line, also you will need to modify the src attribute so that it points to the payload script you want to inject. | |
*/ | |
javascript: (function () { var d = document; var h = d.getElementsByTagName('head')[0]; var s = d.createElement("script"); s.setAttribute("type", "text/javascript"); s.setAttribute("src", "http://www.somedomain.com/somescript.js"); h.appendChild(s); })(); |
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
public static class Ipsum { | |
private static Random random; | |
public static Random Random { | |
get { | |
if (random == null) random = new Random(); | |
return random; | |
} | |
} |
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
var factoryItem = ["$q", function ($q) { | |
var factory = {}; | |
var pendingPromises = {}; | |
factory.test = function (identifier) { | |
// Assigns d to the variable that will contain the promise if pending. | |
var d = pendingPromises[identifier]; |
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
StringBuilder queryString = new StringBuilder("SELECT [System.Id]" + | |
" FROM WorkItemLinks " + | |
" WHERE [Source].[System.WorkItemType] = '" + TFS_TIMESHEET_WORK_ITEM_TYPE + "'" + | |
" AND [Source].[System.TeamProject] = '" + TFS_TIMESHEET_PROJECT_KEY + "'" + | |
" AND [Source].[System.Id] = " + id | |
); | |
Query wiQuery = new Query(GetWorkItemStore, queryString.ToString()); | |
WorkItemLinkInfo[] wiTrees = wiQuery.RunLinkQuery(); |
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
if (!String.prototype.format) { | |
String.prototype.format = function () { | |
var n = this; | |
for (var i = 0; i < arguments.length; i++) { | |
var e = new RegExp('\\{' + (i) + '\\}', 'gm'); | |
n = n.replace(e, arguments[i]); | |
} | |
return n; | |
} | |
} |
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
<div class="input-group"> | |
<span class="input-group-addon">Label Name</span> | |
<div class="dropdown input-group" id="DropDownId"> | |
<ul class="dropdown-menu" style="width:100%"> | |
<li><a href="#">Action</a></li> | |
<li><a href="#">Another action</a></li> | |
<li><a href="#">Something else here</a></li> | |
<li role="separator" class="divider"></li> | |
<li><a href="#">Separated link</a></li> | |
</ul> |
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
{"feed":{"author":{"name":{"label":"iTunes Store"}, "uri":{"label":"http://www.apple.com/itunes/"}}, "entry":[ | |
{"im:name":{"label":"Inside Out (2015)"}, "im:image":[ | |
{"label":"http://is4.mzstatic.com/image/thumb/Video69/v4/f8/f4/16/f8f41613-6e2f-6ea3-2125-8eb02d5c029a/pr_source.lsr/60x60bb-85.jpg", "attributes":{"height":"60"}}, | |
{"label":"http://is4.mzstatic.com/image/thumb/Video69/v4/f8/f4/16/f8f41613-6e2f-6ea3-2125-8eb02d5c029a/pr_source.lsr/60x60bb-85.jpg", "attributes":{"height":"60"}}, | |
{"label":"http://is5.mzstatic.com/image/thumb/Video69/v4/f8/f4/16/f8f41613-6e2f-6ea3-2125-8eb02d5c029a/pr_source.lsr/170x170bb-85.jpg", "attributes":{"height":"170"}}], "summary":{"label":"Growing up can be a bumpy road, and it's no exception for Riley, who is uprooted from her Midwest life when her father starts a new job in San Francisco. Like all of us, Riley is guided by her emotions – Joy (Amy Poehler), Fear (Bill Hader), Anger (Lewis Black), Disgust (Mindy Kaling) and Sadness (Phyllis Smith). The emotions live in H |
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
var horizontalHexagonPoints = function (canvas, radius) { | |
var size = { | |
width: radius * 2, | |
height: (radius / 2 * Math.sqrt(3)) * 2 | |
}; | |
var rows = Math.ceil(canvas.height / size.height) + 1; | |
var columns = Math.ceil(canvas.width / (radius / 2 * 3)) + 1; |
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
var extend = function () { | |
if (arguments.length == 0) | |
return {}; | |
if (arguments.length == 1) | |
return arguments[0]; | |
var nResult = {}; | |
for (var i = 0; i < arguments.length; i++) { |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Build.Framework; | |
using Microsoft.Build.Utilities; | |
namespace eo { | |
public class Concatenate : Task { |