Skip to content

Instantly share code, notes, and snippets.

View jwaliszko's full-sized avatar

Jarosław Waliszko jwaliszko

View GitHub Profile
@jwaliszko
jwaliszko / ghstat.js
Last active August 29, 2015 14:01
Bookmarklet which displays downloads statistics of github binary releases.
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';
}
@jwaliszko
jwaliszko / DoBOM.cs
Created April 8, 2014 23:45
Injects UTF-8 BOM preamble to files suspected to be UTF-8-encoded.
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>