- Instant visual output.
- Fast startup time, fast execution.
- Sensible errors, with code locations.
- Easy to set up and get working.
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
// https://github.com/WebKit/webkit/blob/master/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h | |
@interface WKWebView (WKPrivate) | |
@property (nonatomic, setter=_setAllowsRemoteInspection:) BOOL _allowsRemoteInspection; | |
@property (copy, setter=_setCustomUserAgent:) NSString *_customUserAgent; | |
@end | |
@interface WKPreferences (WKPrivate) | |
@property (nonatomic, setter=_setCompositingBordersVisible:) BOOL _compositingBordersVisible; | |
@property (nonatomic, setter=_setCompositingRepaintCountersVisible:) BOOL _compositingRepaintCountersVisible; | |
@property (nonatomic, setter=_setTiledScrollingIndicatorVisible:) BOOL _tiledScrollingIndicatorVisible; |
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
import * as React from "react" | |
import { Frame, Stack } from "framer" | |
function capitalize(name) { | |
// Capitalizes a word: feed -> Feed | |
return name.charAt(0).toUpperCase() + name.slice(1) | |
} | |
function Button({ title, active, onTap }) { | |
const opacity = active ? 1 : 0.35 |
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
import * as React from "react"; | |
export class Keyboard extends React.Component { | |
state = { key: null }; | |
onChange = event => { | |
this.setState({ key: event.target.value }); | |
}; | |
render() { |
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
Framer.Device.Devices["my-device"] = | |
name: "My Device" | |
deviceType: "mobile" | |
deviceImage: "my-device.png" | |
deviceImageWidth: 472 | |
deviceImageHeight: 806 | |
screenWidth: 320 | |
screenHeight: 400 | |
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> | |
<video controls autoplay muted> | |
<source id="mp4" src="http://grochtdreis.de/fuer-jsfiddle/video/sintel_trailer-480.mp4" type="video/mp4"> | |
</video> | |
</body> | |
</html> |
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
var myCanvasView = new View({ | |
x:100, y:100, | |
width:200, height:200 | |
}) | |
// Add a nice background color so we see it | |
myCanvasView.style.backgroundColor = "rgba(255,0,0,.5)" | |
// This is the tricky bit, we create a canvas element (so we have a reference to it) and insert it into the view |
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
gulp.task "version", (callback) -> | |
async.series [ | |
(cb) -> command("git rev-parse --abbrev-ref HEAD", cb) # branch | |
(cb) -> command("git describe --always --dirty", cb) # hash | |
(cb) -> command("git rev-list --count HEAD", cb) # build | |
], (err, results) -> | |
info = | |
branch: results[0] |
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
- A graph of your wallet net worth over time | |
- An unrealized gains table listing your bitcoin buy prices and the current worth | |
- Reserve "buckets" in your wallet that can only be touched with a special code | |
- 3rd party access codes that can only access specific buckets in your wallet |