Skip to content

Instantly share code, notes, and snippets.

@felixrieseberg
felixrieseberg / test.js
Created October 3, 2016 20:12
Array spread vs for loop
const perfy = require('perfy')
function zoomLevelToFactor(level = 0) {
// The original size is 0 and each increment above or below
// represents zooming 20% larger or smaller to default limits
// of 300% and 50% of original size, respectively.
if (!level || typeof level !== 'number' || level === 0) return 1;
let operator = level < 0 ? -1 : 1;
let result = 1;
Configuration:
Desktop Converter Location: undefined
Expanded Base Image: undefined
Publisher: undefined
Dev Certificate: C:\Users\felix\Code\slack-winssb\resources\win\winstore.pfx
Windows Kit Location: C:\Program Files (x86)\Windows Kits\10\bin\x64
Starting Conversion...
electron-windows-store Using pre-appx folder: C:\Users\felix\AppData\Local\Temp\Slack-win32-x64-appx\pre-appx +18ms
electron-windows-store Using app from: C:\Users\felix\AppData\Local\Temp\Slack-win32-x64-appx\pre-appx\app +1ms
@felixrieseberg
felixrieseberg / gist:008665bc134757cdf33f9a4231b16ce9
Created July 11, 2017 23:48 — 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:
@felixrieseberg
felixrieseberg / gist:b1c1c4c8cfcc379a2712811f3f09a0a9
Created February 2, 2018 20:28
TypeScripConf: How Slack Learned to Stop Worrying & Trust the Compiler
At Slack, we use one JavaScript code base to build a multi-threaded desktop application, routinely interacting with native code. Managing large JavaScript codebases is challenging — we need a guarantee that the individual pieces fit together. In the desktop world, a small mistake is likely to result in an application crash.
To that end, we adopted TypeScript (a statically typed superset of JavaScript) and quickly learned to stop worrying and love the compiler.
In this talk, Felix will give a detailed account of porting a large code base from ES6, explain why exactly [TypeScript is so popular](https://stackoverflow.com/insights/survey/2017/#technology-most-loved-dreaded-and-wanted-languages), what the downsides are, and how you would slowly adopt it in your development.
@felixrieseberg
felixrieseberg / index.html
Created June 8, 2018 07:54
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 June 8, 2018 08:11
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 June 8, 2018 11:05
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 June 8, 2018 11:13
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 June 8, 2018 11:58
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 June 8, 2018 11:58
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>,