Skip to content

Instantly share code, notes, and snippets.

Avatar

Felix Rieseberg felixrieseberg

View GitHub Profile
@felixrieseberg
felixrieseberg / test.js
Created Oct 3, 2016
Array spread vs for loop
View test.js
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;
View gist:8fd1e8d46f0e8bae88f267f569547b2e
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 Jul 11, 2017 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:008665bc134757cdf33f9a4231b16ce9

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 Feb 2, 2018
TypeScripConf: How Slack Learned to Stop Worrying & Trust the Compiler
View gist:b1c1c4c8cfcc379a2712811f3f09a0a9
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 Jun 8, 2018
Electron Fiddle Gist
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>,
@felixrieseberg
felixrieseberg / index.html
Created Jun 8, 2018
Electron Fiddle Gist
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>,
@felixrieseberg
felixrieseberg / index.html
Created Jun 8, 2018
Electron Fiddle Gist
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>,
@felixrieseberg
felixrieseberg / index.html
Created Jun 8, 2018
Electron Fiddle Gist
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>,
@felixrieseberg
felixrieseberg / index.html
Created Jun 8, 2018
Electron Fiddle Gist
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>,
@felixrieseberg
felixrieseberg / index.html
Created Jun 8, 2018
Electron Fiddle Gist
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>,