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
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
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
/** | |
* 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
{[ | |
"Acme Corp.", | |
"Aperture Science", | |
"Armacham", | |
"Bartok Science", | |
"Benthic Petroleum", | |
"Biffco Enterprises", | |
"Big Kahuna Burger", | |
"Black Mesa", | |
"Blue Sunv", |
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 Newtonsoft.Json; | |
using System.Collections.Generic; | |
using System.Net.Http; | |
using System.Text; | |
namespace discordWebHook | |
{ | |
class Program | |
{ | |
private static HttpClient client; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>FileInput -> Image -> Canvas -> Bytes</title> | |
</head> |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Tic Tac Toe</title> | |
<style> | |
button { | |
font-size: 40px; | |
height: 100px; | |
width: 100px; |
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
const files = [ | |
"path/1/pages/home.html", | |
"path/1/pages/about.html", | |
"path/1/pages/settings.html", | |
"path/1/pages/contact.html", | |
"path/1/assets/images/background.jpeg", | |
"path/1/assets/images/logo.png", | |
"path/1/assets/images/arrow-left.png", | |
"path/1/assets/images/arrow-right.png", |