A simple rake task that replicates the rails console for Lotus Framework
I assume that your config/application.rb is the place where you
initialize all Lotus boot config
below is my config/application.rb for your interest
| moduleKeywords = ['included', 'extended', 'prototype'] | |
| class Class | |
| # Rename an instance method | |
| # | |
| # ``` coffeescript | |
| # class User | |
| # @alias "methods", "instance_methods" | |
| # | |
| # ``` |
| # https://github.com/gzigzigzeo/carrierwave-meta | |
| # Integrating CarrierWave with JCrop | |
| # Let implement the behavior like at this demo: deepliquid.com/projects/Jcrop/demos.php?demo=thumbnail | |
| # The uploader: | |
| class CropUploader < SobakaUploader | |
| include CarrierWave::Meta | |
| # Crop source is a source image converted from original which could be bigger than source area (left image in the example). | |
| version :crop_source do |
UPDATED 22.11.2022
It's been two years since the last update, so here's the updated working script as per the comments below.
Thanks to BryanHaley for this.
setInterval(function () {
video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];
video.querySelector('#primary button[aria-label="Action menu"]').click();| #!/bin/sh | |
| # Automatically rotate the screen when the device's orientation changes. | |
| # Use 'xrandr' to get the correct display for the first argument (for example, "eDP-1"), | |
| # and 'xinput' to get the correct input element for your touch screen, if applicable | |
| # (for example, "Wacom HID 486A Finger"). | |
| # | |
| # The script depends on the monitor-sensor program from the iio-sensor-proxy package. | |
| if [ -z "$1" ]; then |