- Copy the script (scroll below) into $HOME directory on your linux or mac.
- Run the command below within any git repository.
bash ~/howlong.sh| # Stimulus.js rules for Cursor | |
| ## Always register new stimulus controllers index.js | |
| * When adding new stimulus controllers, always register the controller in @index.js | |
| ## Adding/modifying html markup via stimulus controllers | |
| Prefer not to add hardcoded html markup to stimulus controllers. |
| import jwt from '@tsndr/cloudflare-worker-jwt' | |
| // Add following config to wrangler.toml | |
| // | |
| // r2_buckets = [ | |
| // { binding = "STORAGE_BUCKET", bucket_name = "your_bucket_name" } | |
| // ] | |
| // | |
| // Also requires download_jwt_secret in the worker env |
| import AppKit | |
| import SwiftUI | |
| // Delete this line if not using a playground | |
| import PlaygroundSupport | |
| struct ContentView: View { | |
| var body: some View { | |
| // if spacing is not set to zero, there will be a gap after the first row |
Add this to the .irbrc file in the rails app directory.
rails_env = "🤗"
if ENV['RAILS_ENV'] == 'production'
rails_env = "🥶"
elsif ENV['RAILS_ENV'] == 'staging'
rails_env = "🧘"
end| # to undo a git push | |
| git push -f origin HEAD^:master | |
| # to get to previous commit (preserves working tree) | |
| git reset --soft HEAD | |
| # to get back to previous commit (you'll lose working tree) | |
| git reset --hard HEAD^ |
| import Combine | |
| import Foundation | |
| import PlaygroundSupport | |
| PlaygroundPage.current.needsIndefiniteExecution = true | |
| var publisher = PassthroughSubject<Int, Error>() | |
| let cancellable = publisher | |
| .flatMap { Just($0).setFailureType(to: Error.self) } | |
| .handleEvents( |
I hereby claim:
To claim this, I am signing this object:
| # I'm using Riak v2.0pre7 (latest tagged release from the github repo) | |
| $ cat etc/advanced.config | |
| %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
| %% ex: ft=erlang ts=4 sw=4 et | |
| [ | |
| {riak_kv, [ | |
| {add_paths, ["/Users/akashmanohar/projects/rinket/_build/shared/lib/firebrick/ebin"]} | |
| ]} | |
| ] |
| # My markup looks like this | |
| # | |
| # <div class="activities"> | |
| # <div class="activities-inner-wrapper"> | |
| # <div class="activity">something here</div> | |
| # <div class="activity">another thing here</div> | |
| # <div class="activity">Wowowowowwo</div> | |
| # </div> | |
| # </div> | |
| # |