This file contains 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
javascript: (function() { | |
window['releasesResponse'] = function(result) { | |
var body = ''; | |
for (var i = 0; i < result.data.length; i++) { | |
var assets = result.data[i].assets; | |
if (assets.length > 0) { | |
body += result.data[i].name + ':\n'; | |
for (var j = 0; j < assets.length; j++) { | |
body += assets[j].name + ' - ' + assets[j].download_count + ' downloads\n'; | |
} |
This file contains 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; | |
namespace doBOM | |
{ | |
/// <summary> | |
/// Console tool which injects UTF-8 BOM preamble to files suspected to be UTF-8-encoded. | |
/// </summary> |