Tags: javascript

ASP.NET/C# image resizer for responsive layouts

I will probably elaborate on this a bit further when I find some more time, but for now, this post is going to be mostly code. What I have here is a relatively simple way to generate images that are resized server-side based on the screen dimensions (note: not window dimensions) of the web browser requesting them. This way, you’re not sending huge images to phones. Pair this with some CSS to scale your images to fit their containers, and you’re cooking with gas! Read More →

jQuery visibility pseudo-selectors

To help me with a project at work, I’ve written two jQuery pseudo-selectors which will help determine if an element is currently in the viewport or if it has been reached during scroll. This can be incredibly powerful if you’re looking to only display certain items (like a “back to top” link) after you’ve reached a certain point on the page, or only while some other element is within the viewport. Read More →

Give-Me-Coins.com Condensed UserScript

Lately, my interest has been piqued by cryptocurrency. After discovering that my ATI card could produce a decent hash rate without seriously spiking my electricity bill, I got specifically interested in Litecoin. Long story short, I joined a Litecoin mining pool (Give-Me-Coins.com) and decided that I could do without a few of the widgets on their dashboard page. Bing-bang-boom, I wrote a UserScript to rearrange things a little bit. Here it is for your consumption. Read More →