Edit: This list is now maintained in the rust-anthology repo.
| use_debug false | |
| use_bpm 130 | |
| # Our mixer! | |
| master = (ramp *range(0, 1, 0.01)) | |
| kick_volume = 1 | |
| bass_volume = 1 | |
| revbass_volume = 1 | |
| snare_volume = 0.5 | |
| hats_volume = 0.5 |
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
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #! /usr/bin/env python | |
| """{escher} -- one-file key-value storage. | |
| What? | |
| This is a toy application to manage persistent key-value string data. | |
| The file {escher} is *both* the application and its data. | |
| When you run any of the commands below, the file will be executed and, | |
| after data change, it will rewrite itself with updated data. | |
| You can copy the file with whatever name to create multiple datasets. |
| diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c | |
| index 26678c7..a646513 100644 | |
| --- a/Modules/_sqlite/connection.c | |
| +++ b/Modules/_sqlite/connection.c | |
| @@ -549,7 +549,7 @@ void _pysqlite_set_result(sqlite3_context* context, PyObject* py_val) | |
| } else if (py_val == Py_None) { | |
| sqlite3_result_null(context); | |
| } else if (PyInt_Check(py_val)) { | |
| - sqlite3_result_int64(context, (sqlite3_int64)PyInt_AsLong(py_val)); | |
| + sqlite3_result_int64(context, (sqlite_int64)PyInt_AsLong(py_val)); |
