Skip to content

Instantly share code, notes, and snippets.

View 6km's full-sized avatar

Mohammed Taha 6km

View GitHub Profile
@NicholasLYang
NicholasLYang / index.html
Created January 27, 2020 23:42
Electron Rounded Corners Repro
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<style>
.main-window {
border-radius: 20px;
background-color: white;
height: 100vh;
margin-bottom: 100px
@MPThLee
MPThLee / enableDiscordExperiments.js
Last active October 17, 2025 02:32
This code doesn't work anymore. I just decided to remove this code. You can check working code on comments.
/**
* !!!! This code doesn't work anymore !!!!
*
* - You can check working code on comments. I won't update this code anymore.
*
* Also, I just decided to remove this code. You can check revisions for old code.
* Since this code was made for discord client that almost 5 years ago, It seems like doesn't work anymore.
* I don't want people keep arguing in the comments, i decided to remove this code.
*
* Note: This code is now fulfilled with Javascript comments. This code won't work even if you pasted to console. doesn't do anything.
@simeg
simeg / npm-package-canvas-fix.md
Last active August 17, 2022 13:40
How to install canvas package

For OS X 10.12

If you get this error when installing the npm package canvas

$ npm install canvas

npm WARN gentlyRm not removing /Users/simon/repos/mac-setup/node_modules/.bin/rimraf as it wasn't installed by /Users/simon/repos/mac-setup/node_modules/rimraf

> canvas@1.6.6 install /Users/simon/repos/mac-setup/node_modules/canvas
> node-gyp rebuild
@antishok
antishok / auth-popup-callback.html
Last active May 20, 2023 09:23
passport popup login
<!doctype html>
<html>
<head><title>Log-In</title></head>
<script>
if (window.opener) {
window.opener.postMessage("popup-done", "*");
setTimeout(function() { window.close() }, 0);
}
</script>
</head>