Skip to content

Instantly share code, notes, and snippets.

@kendfrey
kendfrey / skeet.js
Last active December 11, 2015 07:19
Skeetify stars
var css = '.vote-count-container.stars span.img, .vote-count-container.stars.user-star span.img, .vote-count-container.stars.owner-star span.img, .vote-count-container.stars.owner-star.user-star .img { background-image: url("http://0.gravatar.com/avatar/6d8ebb117e8d83d74ea95fbdd0f87e13?s=16&d=identicon&r=PG"); background-position: 0px 0px; height: 16px; width: 16px; }'; var style = document.createElement('style'); style.textContent = css; document.head.appendChild(style);
@kendfrey
kendfrey / strtoascii.cs
Created April 23, 2012 23:22
String to ASCII
string str = "Hello!";
byte[] ascii = new byte[str.Length];
for (int i = 0; i < ascii.Length; i++)
{
ascii[i] = (byte)str[i];
}
This is a test.
Hello, world!