Skip to content

Instantly share code, notes, and snippets.

🙃
¡Hola!

Oleg Solomka legomushroom

🙃
¡Hola!
Block or report user

Report or block legomushroom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View JS surprises
// ---------------------------------------------------------------------------------------------------------------------------
```javascript
function foo () {
console.log(a);
}
var a = 2;
function bar () {
View rotary encoder [COM-09117]
/*
(Copy and paste)
Rotary encoder decoding using two interrupt lines.
Most Arduino boards have two external interrupts,
numbers 0 (on digital pin 2) and 1 (on digital pin 3).
Program sketch is for SparkFun Rotary Encoder sku: COM-09117
Connect the middle pin of the three to ground.
View gist:e9c02c864a42bf5a8a0f91d2e0590dba
export const promiseState = async (p: Promise<any>): Promise<string> => {
const t = {};
return await Promise.race([p, t]).then(
(v) => {
return (v === t)
? 'pending'
: 'fulfilled';
},
() => 'rejected');
};
View Paste Screenshot Demo.md

Paste Screenshot Demo

Paste screenshots from your clipboard into the gist:

  • From context menu: Paste Screenshot command.
  • From command palette: GistPad: Paste Screenshot command.
  • With a shortcut: super + shift + v.

image

View PY0101EN-2-1-Tuples.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View index.css
@import url("https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600,700|Source+Sans+Pro:400,600,700&display=swap");
body {
background: #ddeefc;
font-family: "Source Sans Pro", sans-serif;
font-size: 16px;
}
* {
box-sizing: border-box;
}
@legomushroom
legomushroom / SSL-certs-OSX.md
Created Jan 8, 2020 — forked from croxton/SSL-certs-OSX.md
Generate ssl certificates with Subject Alt Names
View SSL-certs-OSX.md

Generate ssl certificates with Subject Alt Names on OSX

Open ssl.conf in a text editor.

Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.

DNS.1   = my-project.dev

Additional FQDNs can be added if required:

@legomushroom
legomushroom / index.html
Last active Jan 25, 2020
React w/TypeScript
View index.html
<div id="app"></div>
View index.html
<div id="app">
<h1>{{ header }}</h1>
<p>Feel free to edit the HTML, JavaScript and CSS in this playground. The preview will update in real-time, so that
you can visually explore your ideas.</p>
<button @click="sayHi">Say Hi! <span class="fa fa-heart" /></button>
</div>
You can’t perform that action at this time.