Skip to content

Instantly share code, notes, and snippets.

View MajorTom3K1M's full-sized avatar
🎯
Focusing

MajorTom MajorTom3K1M

🎯
Focusing
View GitHub Profile
@markbrouch
markbrouch / resources.md
Last active March 28, 2023 00:24
The Doctor Will See You Now: Machine Learning for Telehealth - JSConf Budapest 2022 - Resources
@pablen
pablen / PubSub.js
Created January 13, 2018 21:16
React PubSub pattern
import React, { Component } from 'react';
import PubSub from 'pubsub-js';
class App extends Component {
state = { show: true };
render() {
return (
<div className="App">
<button onClick={() => this.setState(state => ({ show: !state.show }))}>
{this.state.show ? 'Hide panel' : 'Show panel'}
@DmitrySoshnikov
DmitrySoshnikov / dfs-bfs-non-recursive.js
Created October 19, 2015 05:40
Non-recursive DFS and BFS algorithms
/**
* Depth-first and Breadth-first graph traversals.
*
* In this diff we implement non-recursive algorithms for DFS,
* and BFS maintaining an explicit stack and a queue.
*
* by Dmitry Soshnikov <[email protected]>
* MIT Style license
*/