Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@felixrieseberg
felixrieseberg / index.html
Created September 25, 2018 01:03
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>BrowserView Demo</title>
</head>
<body>
<h1>BrowserView Demo</h1>
<button>Toggle BrowserView</button>
@felixrieseberg
felixrieseberg / index.html
Created September 12, 2018 07:18
Electron Fiddle Gist
<!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>,
@felixrieseberg
felixrieseberg / index.html
Created September 5, 2018 16:35
Electron Fiddle Gist
<!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>,
# Configure Windows
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Update-ExecutionPolicy Unrestricted
## Git
cinst -y git.install
cinst -y poshgit
# Restart PowerShell / CMDer before moving on - or run
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
EMOJI=(💩 🐦 🚀 🐞 🎨 🍕 🐭 👽 ☕️ 🔬 💀 🐷 🐼 🐶 🐸 🐧 🐳 🍔 🍣 🍻 🔮 💰 💎 💾 💜 🍪 🌞 🌍 🐌 🐓 🍄 )
function random_emoji {
echo -n "$EMOJI[$RANDOM%$#EMOJI+1]"
}
function get_pwd(){
git_root=$PWD
@felixrieseberg
felixrieseberg / index.html
Created August 22, 2018 17:35
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<button onclick="window.postMessage('beep', '*')">Beep!</button>
</body>
@felixrieseberg
felixrieseberg / index.html
Created August 22, 2018 03:09
Electron Fiddle Gist
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hi</title>
</head>
<body>
<video></video>
<script>
require('./renderer.js')
</script>
@felixrieseberg
felixrieseberg / index.html
Created August 22, 2018 02:28
Electron Fiddle Gist
<!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>,
@felixrieseberg
felixrieseberg / index.html
Created August 22, 2018 02:27
Electron Fiddle Gist
<!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>,
@felixrieseberg
felixrieseberg / index.html
Created August 15, 2018 01:20
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
</head>