View load.js
function load(URL){ var scr, script
;(scr = document.createElement('script')).src = URL
;(script = document.getElementsByTagName('script')[0]).parentNode.insertBefore(scr, script)
View SheetMixinDemo.html
<!doctype html>
<meta charset=utf-8>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<div id="SheetsDemoRoot"></div>
View Google Sheets Duration
* Copyright 2017 Thomas Aylott
* MIT License
function showError(message){
var ui = SpreadsheetApp.getUi();
View 2016-03-22 Standalone Prototype with Babel and React v15rc2.html
<!doctype html>
<meta charset=utf-8>
<style>html{font-family:Helvetica Neue,Helvetica,sans-serif;}</style>
<div id=RenderTarget>
<script type="text/babel">
View dabblet.css
* The first commented line is your dabblet’s title
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
View async-callstack-hack.js
* Created by Thomas Aylott on 2014-08-29
* Copyright 2014 Facebook, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
View index.js
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 500
canvas.height = 500
var context = canvas.getContext("2d")
View MyAwesomeNSUserNotificationCenterDelegate.js
var $ = require('NodObjC');
module.exports = function(props){
var NSUserNotificationCenterDelegate = $.NSObject.extend('NSUserNotificationCenterDelegate');
NSUserNotificationCenterDelegate.addMethod('init', { retval: '@', args: ['@', ':'] }, function(self) {
$.NSUserNotificationCenter('defaultUserNotificationCenter')('setDelegate', self);
return self;
View FramerLayer.NoFlo.js
1. Go to
2. Open or create a project
3. Create a new component
4. Paste all this code into the *Implementation* section
5. Switch back to the graph editor
6. Search for this component
* Note: You can't skip this part! There's a bug in the noflo-ui that makes it impossible to insert a component without searching first. This is beta software.
7. Insert an instance of this component
8. Press the play button in the *Preview* section on the right side of the graph editor UI
View gist:10484353
tell application "Google Chrome"
set theUrl to ""
if (count every window) = 0 then
make new window
end if
set found to false
set theTabIndex to -1