Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
import { Controller } from '@hotwired/stimulus' | |
const BANNED_NODES = ['com-1password-button', 'com-1password-menu'] | |
export default class extends Controller { | |
connect () { | |
this.observer = new window.MutationObserver(mutations => { | |
mutations.forEach(mutation => { | |
mutation.addedNodes.forEach(node => { | |
if (BANNED_NODES.includes(node.nodeName.toLowerCase())) { | |
node.remove() |
db/schema.rb merge=railsschema |
require_relative "./linked_list.rb" | |
require_relative "./set.rb" | |
# Here we monkey patched LinkedList to add a method | |
# that allows us to remove vertices in constant time. | |
class LinkedList | |
# Removes the node that is right next | |
# to the specified node. | |
# Complexity O(1). | |
def remove_next prev_node |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000