Skip to content

Instantly share code, notes, and snippets.

function ydntt(o){
var out = document.getElementById('results'),
cpy = document.getElementById('copy'),
html = '',
disp = '',
n,i,j;
for(i=0,j=o.length;i<j;i++){
n = o[i].n.replace('}','</a>');
n = n.replace('{','<a href="'+o[i].u+'">');
html+='<li>'+n+'</li>';
#!/bin/bash -e
#
# Copyright 2014 Tony Burns
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@osmestad
osmestad / main.js
Created January 18, 2022 13:22
Electron Fiddle Gist
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
const path = require('path')
function createWindow () {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {