Skip to content

Instantly share code, notes, and snippets.

View scripting's full-sized avatar

Dave Winer scripting

View GitHub Profile
@scripting
scripting / example.js
Last active March 17, 2017 20:53
Create a new window with an icon in Electron on Linux
app.on ("ready", function () {
var nativeIcon = NativeImage.createFromPath (__dirname + "/" + "pork.png");
mainWindow = new BrowserWindow ({
width: 1100,
height: 1000,
icon: nativeIcon
});
mainWindow.loadURL('file://' + __dirname + '/index.html');
});
@scripting
scripting / slickhelloworld.html
Last active January 1, 2017 22:46
A simple Hello World app for the slick.js package
<html>
<head>
<title>Hello World for Slick</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- A simple hello world app for https://github.com/kenwheeler/slick -->
<script src="http://fargo.io/code/jquery-1.9.1.min.js"></script>
<link href="http://fargo.io/code/ubuntuFont.css" rel="stylesheet" type="text/css">
@scripting
scripting / gist:a60b16e36edf01de43b8d8e74aa4d87e
Created September 28, 2016 13:49
A config.json file for nodeStorage that stores the files on an external hard disk called Broadway in s folder named 1999
{
"myPort": 1999,
"websocketPort": 2000,
"myDomain": "1999.bigbloat.io:1999",
"where": {
"flUseLocalFilesystem": true,
"publicPath": "/Volumes/Broadway/1999/",
"privatePath": "privateFiles/"
},
"twitterConsumerKey": "anm3unkb1mof7isav0bkxigby",
@scripting
scripting / chatlog1.json
Last active September 27, 2016 18:29
The chatlog.json file for last night's "second-screen" experiment at screen2.io.
{
"idNextPost": 318,
"messages": [
{
"text": "<p>Please reload the page now if you have it loaded. Thanks! <img title='blush' alt='blush' class='emoji' src='http://fargo.io/code/emojify/images/emoji/blush.png' align='absmiddle' /></p>",
"authorname": "Dave Winer",
"screenname": "davewiner",
"urlIcon": "http://pbs.twimg.com/profile_images/716686126254321664/v3citfg4_normal.jpg",
"when": "2016-09-26T22:20:41.657Z",
"id": 0
{
"authorName": "Dave Winer",
"authorWebsite": "http://scripting.com/",
"ctStartups": 3,
"minSecsBetwAutoSaves": 1,
"savedTextArea": "<p><br></p>",
"flAutoSave": true,
"textFont": "Ubuntu",
"textFontSize": 18,
"textLineHeight": 24,
{
"authorName": "Dave Winer",
"authorWebsite": "http://scripting.com/",
"ctStartups": 3,
"minSecsBetwAutoSaves": 1,
"savedTextArea": "<p><br></p>",
"flAutoSave": true,
"textFont": "Ubuntu",
"textFontSize": 18,
"textLineHeight": 24,
@scripting
scripting / config.json
Last active September 17, 2016 13:28
Example config.json for the urlHomePageIntroText feature in 1999.io.
{
"myPort": 1999,
"websocketPort": 2000,
"myDomain": "1999.bigbloat.io:1999",
"where": {
"flUseLocalFilesystem": true,
"publicPath": "publicFiles/",
"privatePath": "privateFiles/"
},
"homePage": {
@scripting
scripting / config.json
Last active August 14, 2016 13:22
A config.json for 1999.io server that specifies an Editors menu with one item in it.
{
"myPort": 1999,
"websocketPort": 2000,
"myDomain": "1999.bigbloat.io:1999",
"where": {
"flUseLocalFilesystem": true,
"publicPath": "publicFiles/",
"privatePath": "privateFiles/"
},
"homePage": {
@scripting
scripting / config.json
Last active August 11, 2016 22:37
A nodeStorage config.json set up to store public and private data on Amazon S3.
{
"myPort": 1999,
"websocketPort": 2000,
"myDomain": "1999.bullmancuso.io:1999",
"where": {
"flUseLocalFilesystem": false,
"publicPath": "bullmancuso.io/1999/publicFiles/",
"privatePath": "mancusousers/1999/privateFiles/"
},
"twitterConsumerKey": "anm3unkb1mof7isav0bkxigby",
{
"myPort": 1999,
"websocketPort": 2000,
"myDomain": "1999.bigbloat.io:1999",
"where": {
"flUseLocalFilesystem": true,
"publicPath": "publicFiles/",
"privatePath": "privateFiles/"
},
"homePage": {