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; | |
namespace RTFM | |
{ | |
class Program | |
{ | |
private struct Mutable | |
{ | |
private int x; | |
public int Mutate() |
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
taskkill /f /im chrome.exe | |
"C:\Program Files (x86)\VideoLAN\VLC\VLC.exe" "%USERPROFILE%\Videos\Rick Astley - Never Gonna Give You Up.mp4" |
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; | |
namespace ProITR.Asur.Isur.Coordinate.Handler.Handlers.MessageHandlers | |
{ | |
public class MessageTypeSwitch | |
{ | |
private object _messageToCast; | |
private Dictionary<Type, Action> _mappedActions = new Dictionary<Type, Action>(); |
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
/** | |
* Count letters in substring. | |
*/ | |
function strInput(str) { | |
var letterMap = {}; | |
var letterArray = []; | |
for(var index = 0; index < str.length; index++){ | |
if(letterMap[str[index]] !== undefined){ |
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.Linq; | |
using System.Threading.Tasks; | |
using System.Web; | |
using System.Web.Mvc; | |
using AngleSharp; | |
using System.Text.RegularExpressions; | |
using AngleSharp.Dom; | |
using AngleSharp.Extensions; |
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
function base64toBlob(b64Data, contentType, sliceSize) { | |
contentType = contentType || ''; | |
sliceSize = sliceSize || 512; | |
var byteCharacters = atob(b64Data); | |
var byteArrays = []; | |
for (var offset = 0; offset < byteCharacters.length; offset += sliceSize) { | |
var slice = byteCharacters.slice(offset, offset + sliceSize); |
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
$.ajax({ | |
url: "http://api.yoursite.com", | |
data: data, | |
type: "POST" | |
}).done(function(result) { | |
var link = document.createElement("a"); | |
document.body.appendChild(link); | |
link.setAttribute("type", "hidden"); | |
link.href = "data:text/plain;base64," + result; | |
link.download = "data.zip"; |