Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| require 'net/http' | |
| # WARNING do not use this; it works but is very limited | |
| def resolve url | |
| res = Net::HTTP.get_response URI(url) | |
| if res.code == '301' then res['location'] | |
| else url.to_s | |
| end | |
| end |
| Module 1, Introduction to Matter, Energy, and Direct Current, introduces the course with a short history | |
| of electricity and electronics and proceeds into the characteristics of matter, energy, and direct current | |
| (dc). It also describes some of the general safety precautions and first-aid procedures that should be | |
| common knowledge for a person working in the field of electricity. Related safety hints are located | |
| throughout the rest of the series, as well. | |
| Module 2, Introduction to Alternating Current and Transformers, is an introduction to alternating current | |
| (ac) and transformers, including basic ac theory and fundamentals of electromagnetism, inductance, | |
| capacitance, impedance, and transformers. |
| class Graph: | |
| def __init__(self): | |
| self.nodes = set() | |
| self.edges = defaultdict(list) | |
| self.distances = {} | |
| def add_node(self, value): | |
| self.nodes.add(value) | |
| def add_edge(self, from_node, to_node, distance): |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
The final result: require() any module on npm in your browser console with browserify
This article is written to explain how the above gif works in the chrome (and other) browser consoles. A quick disclaimer: this whole thing is a huge hack, it shouldn't be used for anything seriously, and there are probably much better ways of accomplishing the same.
Update: There are much better ways of accomplishing the same, and the script has been updated to use a much simpler method pulling directly from browserify-cdn. See this thread for details: mathisonian/requirify#5
| // Usage: | |
| // Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
| // then use as follows: | |
| // | |
| // query(term | [term, term, ...], term | [term, term, ...], ...) | |
| // | |
| // When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
| // | |
| // Term is of the format: | |
| // ((-)text/RegExp) ( '-' means negation ) |
Picking the right architecture = Picking the right battles + Managing trade-offs