- Install Stylebot or another CSS extension
- Paste CSS
- Enjoy highlighted turbo-frames, forms, and changed elements on the page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
organization_id = 1 | |
o = Organization.find(organization_id) | |
i = Integration.create( | |
organization: o, | |
name: "Integration Test Github", | |
integration_type: "git_hostings_github", | |
configuration: { | |
integration_wizard: { | |
organization: "NetsoftHoldings" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <turbo-stream action="reload" target="frame-id"></turbo-stream> | |
StreamActions.reload = function () { | |
document.getElementById(this.getAttribute("target"))?.reload() | |
} |
When replacing Stimulus with Alpine there are some things we need to consider. I propose to follow rails conventions as close as possible.
- Naming of files. Snake case, same file name. In Stimulus everything ends in
_controller
btw.
legos/
select.rb
select.html.slim
select.js
graph
TrackingTime --> ManualTime
TrackingTime --> AutomaticTime
TrackingTime --> MobileTime
graph
T(TrackingTime)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am firedev on github. | |
* I am firedev (https://keybase.io/firedev) on keybase. | |
* I have a public key ASAx0EdMDYGlPGXQUvWIvi76fKLc6n5oeYeFyPAhfqlB3Ao | |
To claim this, I am signing this object: |
With the introduction of the function type() it is now possible to know the type of the variable.
So I tried to find a way to implement a simple class system and I think I found a way
First we need a function to copy tables
function copy(o)
local c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- https://twitter.com/lucatron_/status/1252171663883423745 | |
-- https://gist.github.com/lucatronica/5d1b2bdceced5d5f1315b8e2f252146e | |
for i=1,8 do pal(i,({8,11,10,140,14,12,7})[i],1)end | |
::_::cls() | |
?"#pico8♥",0,0,8 | |
for i=0,2 do | |
k=.25+i/60+cos(t()/8)/5 | |
for y=0,5,.25 do | |
for x=0,30,.25 do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const asyncWrap = (promise) => ( | |
promise.then(res => [res]).catch(err => [undefined, err]) | |
) | |
const func = async () => { | |
const [result, error] = await asynced( doStuff()) ) | |
} |
NewerOlder