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
<html> | |
<body> | |
<script id="worker" type="text/worker"> | |
onmessage = function(e) { postMessage('worker: ' + e.data); } | |
</script> | |
<script type="text/ecmascript"> | |
var blob = new Blob([ | |
document.querySelector('#worker').textContent |
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
<svg width="500" height="500" style="background-color:orange;" version="1.1" xmlns="http://www.w3.org/2000/svg"> | |
<defs> | |
<filter id="dropShadowStack"> | |
<feGaussianBlur stdDeviation="3"/> | |
<feOffset dx="3" dy="3" result="offsetblur"/> | |
<feFlood flood-color="#720"/> | |
<feComposite in2="offsetblur" operator="in"/> | |
<feMerge> | |
<feMergeNode/> | |
<feMergeNode in="SourceGraphic"/> |
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
{"BackgroundColor":"#000"} |
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
// CGGeometry+Additions.h | |
// Copyright (c) 2012 Tobias Reiss (MIT License) | |
#import <CoreGraphics/CGGeometry.h> | |
CG_INLINE CGRect CGRectScale(CGRect rect, CGFloat mult) { | |
CGPoint origin = rect.origin; | |
CGSize size = rect.size; | |
return CGRectMake(origin.x * mult, origin.y * mult, size.width * mult, size.height * mult); | |
} |
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
// UIImage+Additions.h | |
// Copyright (c) 2012 Tobias Reiss (MIT License) | |
#import <UIKit/UIKit.h> | |
@interface UIImage (Additions) | |
+ (UIImage *)deviceAgnosticImageNamed:(NSString *)name; | |
- (UIImage *)deviceAgnosticImageFromRect:(CGRect)frame; |
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
// NSArray+Additions.h | |
// Copyright (c) 2012 Tobias Reiss (MIT License) | |
#import <Foundation/Foundation.h> | |
@interface NSArray (Additions) | |
+ (id)arrayWithObject:(id)object count:(NSUInteger)cnt; | |
@end |
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
// class+constructor | |
var Lib = function() { | |
// instance variable | |
this.aVariable = 0; | |
// instance method | |
this.changeVariable = function(value) { | |
this.aVariable = value; | |
return this; | |
}; | |
} |
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
// AVAudioPlayer+SpriteCategory.h | |
// Copyright (C) 2012 Tobias Reiss (MIT License) | |
#import <AVFoundation/AVFoundation.h> | |
@interface AVAudioPlayer (SpriteCategory) | |
- (void) playAt:(NSTimeInterval)aStartTime duration:(NSTimeInterval)aDuration; | |
- (void) playAt:(NSTimeInterval)aStartTime duration:(NSTimeInterval)aDuration completion:(void (^)(void))completionBlock; | |
- (void) completionCleanup:(NSTimer*)aTimer; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<svg style="border:1px solid #000;" width="240" height="200"> | |
<defs> | |
<symbol id="imageRef"> | |
<image xlink:href="http://www.howtocleanstuff.net/wp-content/uploads/boat.jpg" width="100%" height="100%" /> | |
</symbol> | |
<filter id="filterRef" height="10" width="10" x="-5" y="-5"> | |
<feGaussianBlur stdDeviation="1"></feGaussianBlur> | |
</filter> | |
</defs> | |
<!-- reuse image reference and apply a blur filter //--> |