Instantly share code, notes, and snippets.

🏳️‍🌈
Hackin' on :electron:, keepin' things as gay as possible

Michelle Tilley BinaryMuse

View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<webview src="https://electronjs.org/" style="width: 100%; height: 100vh">
</body>
</html>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<webview id="foo" src="https://googlechrome.github.io/samples/web-bluetooth/device-info.html?allDevices=true" style="display:inline-flex; width:640px; height:480px"></webview>
<script>
// You can also require other files to run in this process
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<div>
View genesis_public_key
048e49afdacdaeabec1d74cd9a2bf9021acf8f8c232d709ac7f78a40dcff3dc9060ff2e84b8e7465fa11b94ddd0b5f572c4e5b15073c42205077bc25a4025777b6 jordemort
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
body, html {
padding: 0;
margin: 0;
width: 100%;
View README.md

bump-package-dep

Automatically sets and commits appropriate versions of package dependencies for Atom based on current package.json values.

Example

Here, Atom is bundling tree-view v0.215.3, but we have v0.216.0 as the current version in tree-view's package.json:

$ jq '.packageDependencies."tree-view"' package.json
View index.js
const etch = require('etch')
function toHTMLElement(vdom) {
const component = {
update() { /* noop */ },
render () { return vdom }
}
etch.initialize(component)
return component.element
View appEntryPoint.js
import React from "react";
import ReactDOM from "react-dom";
import configureStore from "./store/configureStore";
const store = configureStore();
const rootEl = document.getElementById("root");
View index.js
var h = require('virtual-dom/h')
var diff = require('virtual-dom/diff')
var patch = require('virtual-dom/patch')
var createElement = require('virtual-dom/create-element')
function TimerWidget (amount) {
this.amount = amount
}