bear/python-twitter 3124
A Python wrapper around the Twitter API.
jonathan-s/django-sockpuppet 175
Build reactive applications with the django tooling you already know and love.
manage multi-use community houses: members, guests, events.
Web apps from CLI scripts
An approval app that lets you moderate user-generated content for example.
jonathan-s/django-must-watch 1
Must-watch videos about Django (or about Python as applied to Django)
Actix web is a small, pragmatic, and extremely fast rust web framework.
My corner on the internet
A curated list of awesome things related to Django
startedpascallemazurier/openastro-dev
started time in 36 minutes
startedanthonywritescode/explains
started time in 2 hours
startedadamchainz/django-version-checks
started time in 3 hours
startedml-tooling/best-of-web-python
started time in 3 hours
pull request commenthopsoft/cable_ready
More than just an awesome name.
comment created time in 7 hours
pull request commenthopsoft/cable_ready
there are important exceptions
I completely understand, which is why there's a proviso to violate the best practice for scenarios that don't map cleanly.
Having said that, I'm not sure graft
fully communicates what's happening in that operation. Namely, that you're moving an existing element from one parent to another. Perhaps something like reparent
more effectively communicates what's actually happening... granted it's not quite as punchy of a name.
comment created time in 7 hours
issue commentrustwasm/wasm-bindgen
`web_sys::window` throws a `ReferenceError` in Web Workers, while it's likely meant to return `None`
I also am testing on Firefox 84.0.2.
I apologize. I thought I had seen web_sys::window()
return None
inside Firefox but Crash on Chrome. But when I tried to create a minimal example of that just now, I could not. I am getting the same results as you (crashes on Firefox also.)
Here is a small example that reproduces this issue: https://github.com/dhandy2013/web-sys-issue-2272
comment created time in 7 hours
pull request commenthopsoft/cable_ready
That makes great sense, but there are important exceptions - I'm talking about graft
.
https://indepth.dev/posts/1161/here-is-why-appendchild-moves-a-dom-node-between-parents
First, I hold up this article as evidence that most devs have no idea that they can use appendChild
to graft an element and keep their Stimulus controllers intact. The primary use case in 2021 is not the same as it was when it was added to the API in the 90s.
Second, naming it append_child
isn't great because it's not attempting to be a true wrapper for that function; appendChild
has functionality for creating elements with supplied HTML and we don't even try to do that.
Third, I honestly believe that graft
is both instructive and marketable. It's also shorter. 😸
comment created time in 8 hours
startedMariatta/sphinx-intro
started time in 8 hours
startedranman/make-a-demo
started time in 8 hours
startedbdougie/supabase
started time in 8 hours
startedsilviolleite/django-pwa
started time in 8 hours
issue commentrustwasm/wasm-bindgen
Add an alternative to Result<T, JsValue> for the wasm32-wasi target
FYI as this issue is recent, I'm just learning and wanted to use WASI in the browser with WasmerJS, and have managed to make use of wasm-bindgen to simplify handling of bindings.
Reading the above I wonder what will and won't work with this approach. I've been collecting examples using wasm-bindgen to probe the limits but there aren't many out there. The ones I found in the wasm-bindgen book are incomplete and I'm not sure if my failure to get them working is my lack of understanding or because the issues mentioned above (e.g. see this issue).
Pointers to more examples welcome, and if you are interested in using WasmerJS with wasm-bindgen, or have comments that will help me understand the usefulness of this approach let me know. The demo project is: https://github.com/happybeing/svelte-wasi-with-rust
comment created time in 10 hours
pull request commenthopsoft/cable_ready
Thank you for all of these proposals for new operations. I love it.
One convention that CableReady has adhered to "fairly well" that I'd like to formalize into a best practice is to ensure that operation names match as closely to the formal DOM API specification as possible. For example, if we use scrollIntoView
in the internals, then the CR method should be scroll_into_view
etc... I think that this naming convention provides the library with a few advantages.
- Immediate grokability for people already familiar with the DOM
- Principle of least surprise as to what the operation does and how it behaves
- Retains maximum flexibility for extending the library with more operations (the hard work of naming things has generally been done for us)
comment created time in 11 hours
push eventhopsoft/cable_ready
commit sha d358306ab546bf4e6357627c41d40402ee5f0bc3
Global config, simplify threading, custom operations (#96) * Global config, simplify threading, custom operations * Remove unused artifact * Remove redundant require * GitBook: [master] one page modified * Support chaining and rip deprecations out * GitBook: [master] one page modified * multiple selector element operations (#92) * `select_all` option added to all operations which support a `selector` * `cancel` option added to almost all operations, intended to be set in a `before-` event callback * substantial reorganization of `cable_ready.js` to match the order in the docs * Bump nokogiri from 1.10.10 to 1.11.1 Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.10.10 to 1.11.1. - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md) - [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.10.10...v1.11.1) Signed-off-by: dependabot[bot] <support@github.com> * Add `append`, `prepend` and `replace` operations (#90) * Disable chaining after broadcast Co-authored-by: leastbad <hello@leastbad.com> Co-authored-by: leastbad <38150464+leastbad@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marco Roth <marco.roth@intergga.ch>
push time in 11 hours
PR merged hopsoft/cable_ready
- Move configuration to main namespace
- Use process wide singleton for config
- Use thread singleton for
Channels
- Eliminates the cyclical dependency between
Channel
andChannels
- Tightens security around broadcast contexts
- Addresses multi-threaded broadcast race conditions
- ⚠️ Will likely force a major version bump
CableReady::Config.instance # returns a singleton (state shared by all threads)
CableReady::Channels.instance # returns a thread local singleton (no shared state)
Custom operations can be added like so (at any time of the application lifecycle):
CableReady.configure do |config|
config.add_operation_name :custom_magic
end
See the full example of how to use custom operations.
Note that StimulusReflex users will need to wait for https://github.com/hopsoft/stimulus_reflex/pull/421 before they can use custom operations via the cable_ready
helper method in their reflexes.
pr closed time in 11 hours
issue commentrustwasm/wasm-bindgen
`web_sys::window` throws a `ReferenceError` in Web Workers, while it's likely meant to return `None`
@dhandy2013 I've just tested in Firefox 84.0.2 and still get an exception. maybe that's something on your side?
comment created time in 16 hours
pull request commenthopsoft/cable_ready
I was wondering if
scroll_to
would fit better in this context.
Maybe.
I have this idea that I would release a tutorial for a scroll_to
custom operation that would support a lot more stuff:
- you can jump to a specific y pixel distance from the top
- you can control the scroll speed
- you can provide an easing function to the scroll
- you can provide a top-offset to respect top navigation bars when scrolling up
comment created time in a day
pull request commenthopsoft/cable_ready
Introduce `@cable_ready/polyfills` and sync javascript changes from stimulus_reflex
Is https://adodson.com/notification.js/ a possible solution for Notification?
comment created time in a day
pull request commenthopsoft/cable_ready
Awesome! I had the same idea on my todo list 😉
I was wondering if scroll_to
would fit better in this context.
comment created time in a day
PR opened hopsoft/cable_ready
The PR came to me in a dream.
The graft
operation makes it possible to transplant one or several elements from their initial location in the DOM hierarchy and append them to a new parent
container element. This is exciting because you can perform this action and not lose the internal state of any Stimulus controllers on the target element or its children.
The operation is cancelable and acceptsparent
and focus_selector
keys. parent
is a CSS query that matches a single DOM element; if no element is returned, the operation is aborted.
pr created time in a day
PR opened hopsoft/cable_ready
This PR proposes to add an operation which wraps https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
pr created time in a day
startedmafintosh/autoname
started time in a day
created repositorymafintosh/autoname
Auto naming of objects for easier debugging
created time in a day
startedrqlite/rqlite
started time in a day
issue commentrustwasm/wasm-bindgen
`web_sys::window` throws a `ReferenceError` in Web Workers, while it's likely meant to return `None`
Additional information: web_sys::window()
properly returns None
in a worker thread on FireFox. It only crashes for me when running on the Chrome browser. So there is a browser compatibility issue here - the Window
global is defined in JavaScript on Firefox when running a Web Worker, but on Chrome/Chromium it apparently is undefined.
comment created time in a day
startednetsec-ethz/scionlab
started time in a day