Skip to content

Instantly share code, notes, and snippets.

#2 0x00007fffecf985d0 in ui::Accelerator::Accelerator(ui::KeyboardCode, int, ui::Accelerator::KeyState, base::TimeTicks) (this=0x7fffffff7dc0, key_code=ui::VKEY_Q, modifiers=4, key_state=ui::Accelerator::KeyState::PRESSED, time_stamp=...)
at ../../ui/base/accelerators/accelerator.cc:52
#3 0x0000000000d44fda in accelerator_util::StringToAccelerator(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, ui::Accelerator*) (shortcut=..., accelerator=0x7fffffff8280)
at ../../electron/atom/browser/ui/accelerator_util.cc:66
#4 0x0000000000dea4fe in mate::Converter<ui::Accelerator, void>::FromV8(v8::Isolate*, v8::Local<v8::Value>, ui::Accelerator*) (isolate=0x15419fc7b020, val=..., out=0x7fffffff8280) at ../../electron/atom/common/native_mate_converters/accelerator_converter.cc:20
#5 0x0000000000de0e1d in mate::ConvertFromV8<ui::Accelerator>(v8::Isolate*, v8::Local<v8::Value>, ui::Accelerator*) (isolate=0x15419fc7b020, input=..., result=0x7fffffff8280) at ../../elect
@ckerr
ckerr / gist:41f8e7c8add833074c8142ed4858da99
Created July 2, 2019 19:00
throwaway script to update apps links from http to https. Migrates the link iff the migration doesn't cause the link to break. Note: written quickly to just get the job done
#!/usr/bin/env node
const fetch = require('node-fetch')
const fsPromises = require('fs').promises
const isUrl = require('is-url')
const path = require('path')
const process = require('process')
const readdirp = require('readdirp')
const yaml = require('yamljs')
const { URL } = require('url')
@ckerr
ckerr / gist:2813640b6f0ac955d8c383fbd41c5206
Created August 15, 2019 04:49 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
@ckerr
ckerr / _e
Created October 14, 2019 17:35
zsh tab completion for https://github.com/electron/build-tools
#compdef e
# if using oh-my-zsh, install in ~/.oh-my-zsh/completions/
declare -a __e_options=()
function __e_get_cmd_options() {
local -a options=()
"$@" --help | \
awk '/^Options:/{flag=1;next}/^$/{flag=0}flag' | \
sed 's/ /;/g' | cut -f2 -d';' | \
diff --git a/atom/app/atom_main_delegate.cc b/atom/app/atom_main_delegate.cc
index e1318eb6d..537667389 100644
--- a/atom/app/atom_main_delegate.cc
+++ b/atom/app/atom_main_delegate.cc
@@ -25,6 +25,7 @@
#include "base/logging.h"
#include "base/mac/bundle_locations.h"
#include "base/path_service.h"
+#include "base/strings/string_number_conversions.h"
#include "chrome/common/chrome_paths.h"
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
(() => {
const byId = id => document.getElementById(id)
const post = name => window.electron.ipcRenderer.send(name)
window.onload = () => {
const btnCreate = byId('create')
byId('heap-snapshot').onclick = () => { post('heap-snapshot') }