This is a (long) list of short examples I have published. They are related to C++, Qt, or WebKit in one way or another. For more serious code, check out my projects.
The source code is available from these two repositories:
Note: some of the examples might be outdated.
Comments? Feedback? Send it!
Graphics
- Simple ray casting
- Superfast shadow blur
- Fast image downscaling
- Dreamy Bloom effect
- Magnifying glass
- Night-mode
- HSV color pie
- Efficient ARGB32 half-scaling
- Quake-style underwater effect
- Parallax sliding
- Genie effect
- Maps capture
- List chunks inside PNG
- Image colorizer via composition
WebKit
- Snap-scrolling
- Color inversion
- Transparent WebView
- Links proximity
- SVG rasterizer
- Weather applet/scraper
- Selector with jQuery
- Maps with magnifier
- Snap web page to image
- Variable-zoom page capture
- Google with visual preview
- Custom web view with panning
- CSS3 morphing clock
JavaScript
- Box of marbles
- JS editing widget
- Command-line jslint
- Command-line jsbeautify
- Command-line CoffeeScript
- jsbeautify and Qt Script
- Monster Evolution with V8
- Monster Evolution with JSC
- Monster Evolution and Qt Script
- Simple bar chart
Network
- HTTP proxy server (in 100 lines)
- Filtering proxy
- Capture requests/replies
- Adding Google Suggest support
- Remote URL drag-and-drop
Sensor
- Accelerometer viewer
- Gravity and bouncing ball
- Box of marbles
Widgets
- Kinetic scrolling everywhere
- Flick charm for flickable scroll
- Parallax homescreen
- Moving via dragging
- Custom timeline S-curve
- Palette viewer
Demos
- Inter-device marble transfer
- Flight track info
- Minimalistic weather tool
- Digital flipping clock
- Morphing clock