32 Matching Annotations
- Aug 2022
-
stackoverflow.com stackoverflow.com
-
It's a great way to test various limits. When you think about this even more, it's a little mind-bending, as we're trying to impose a global clock ("who is the most up to date") on a system that inherently doesn't have a global clock. When we scale time down to nanoseconds, this affects us in the real world of today: a light-nanosecond is not very far.
-
- Mar 2022
-
github.com github.com
-
Define table structure (columns and indexes) inside your ActiveRecord models like you can do in migrations. Also similar to DataMapper inline schema syntax.
-
- May 2021
-
www.campaignmonitor.com www.campaignmonitor.com
-
We haven’t covered this yet, but HEY has another consent-based feature they call the Speakeasy code. When used in the subject line of an email, this code grants the email access straight to the Imbox.
-
-
hashnode.com hashnode.com
-
that garbage has ZERO damned business in an e-mail which is why a great many places use HTML only e-mail as a trigger for spam detection! (if you send multipart as both text/html and text/plain, you're fine)
-
- Apr 2021
-
github.com github.com
-
This gem uses a Rack middleware to clear the store object after every request, but that doesn't translate well to background processing with Sidekiq. A companion library, request_store-sidekiq creates a Sidekiq middleware that will ensure the store is cleared after each job is processed, for security and consistency with how this is done in Rack.
-
- Mar 2021
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
data[:users, :[], :name] = 'Matz' # :[] is next index, 0 in this case
Tags
Annotators
URL
-
-
github.com github.com
-
# Parallel Ruby universes ("Rubyverses") - A proposed interface for # parallel, "semi-private" method or method-and-data spaces via # "closely associated" objects.
-
-
en.wikipedia.org en.wikipedia.org
-
Using words with different meanings can help clarify, or can cause real confusion.
-
-
piao-tech.blogspot.com piao-tech.blogspot.com
-
All I needed to do was configure my bash so it will always start vim in server mode if it is not already and to always use the --remote-tab switch when opening files.
-
-
valme.io valme.io
Tags
Annotators
URL
-
-
news.ycombinator.com news.ycombinator.com
-
One thing that would be useful to this debate an analysis of a language ecosystem where there are only "macropackages" and see if the same function shows up over and over again across packages.
-
-
github.com github.com
-
Uber::Option implements the pattern of taking an option, such as a proc, instance method name, or static value, and evaluate it at runtime without knowing the option's implementation.
-
- Feb 2021
-
trailblazer.to trailblazer.to
-
The Track() function will snap the output to the next task that is “magnetic to” the track’s semantic.
-
-
github.com github.com
-
Record filters allow you to require an instance of a particular class (or one of its subclasses) or a value that can be used to locate an instance of the object. If the value does not match, it will call find on the class of the record. This is particularly useful when working with ActiveRecord objects.
-
- Jan 2021
-
-
The CardLayout creates a store in context and the Card creates a standardized div container and registers it to the store so that the CardLayout has access to that DOM element. Then in afterUpdate you can move the DOM elements into columns and Svelte will not try to put them back where they go. It's a bit messy but it works.
-
I think that maybe instead of using the prefixed $$ globals, a more "natural" solution could look something like this: import { slots, props, parent } from '@component';
-
-
css-tricks.com css-tricks.com
-
To explain further what exactly I’m building, the animated background is a pure code equivalent to the old music video, but runs as long as the full length of the album, though without any event triggers to tie it to the music (the animation runs continuously for the full amount of time that the uninterrupted album lasts, but does not pause or jump to a different location in the animation). It’s also extremely slow animation
-
- Dec 2020
-
github.com github.com
-
With this change, we can re-run preload when the session store changes, e.g. as a result of something like this in a nav bar:
-
-
-
Say I have a separate API server that provides content for a Sapper route. I could just query that API in my route's preload function, but if the content changes rarely, I don't want to incur that cost for every page load and would much rather cache responses from the API on the Sapper side.
-
-
github.com github.com
-
With the caveat that hero worship can be gross, distorting, and unhelpful to everyone involved, Svelte author Rich Harris (@rich_harris on Twitter) is one of my favorite open source developers. In the JS community he’s well-known among tool authors for spreading interesting ideas. He’s the creator of many open source projects including Rollup, the bundler of choice for many libraries including React and Vue.
-
- Oct 2020
-
github.com github.com
-
JSX remains dominant syntax for React. Still, pretty cool. And inspiration for svelte-hyperscript probably?
-
-
gist.github.com gist.github.com
- Sep 2020
-
github.com github.com
-
The @const indicates that the value is read-only (i.e. it cannot be assigned to or mutated in an expression such as an event handler), and communicates, through its similarity to const in JavaScript, that it only applies to the current scope (i.e. the current block or element).
-
- Jul 2020
-
github.com github.com
Tags
Annotators
URL
-
- May 2020
-
stackoverflow.com stackoverflow.com
-
which ssh-agent || (apt-get update -y && apt-get install openssh-client git -y)
inline install if needed
-
-
gitlab.com gitlab.com
-
Where I track capacity, appetite, & commitments. A place where I can stay organized while also allowing transparency for my teams & anyone else who is interested in what I’m currently focused on.
"My Plate"
-