Homebrew Formula patching old ImageMagick release 6.7.7-10
$ brew install https://gist.github.com/borisnadion/29f835ef036b404ddaef/raw/2aacfe38abba9d38dc0fe8da03a7ebe73df1490a/imagemagick.rb| addEventListener('fetch', event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }) | |
| /** | |
| * When we receive a request, fetch it from our S3 bucket | |
| * | |
| * For example, a request for: | |
| * https://mydomain.com/images/castle01.jpg | |
| * will be fetched from: |
| require 'rubygems' | |
| gem 'json' | |
| require 'json' | |
| require 'pathname' | |
| require 'open-uri' | |
| # changeme, must NOT have ending slash | |
| URL = "https://www.example.com" | |
| def save_file(url, path) |
| from keras.layers.core import Layer | |
| from keras import initializers, regularizers, constraints | |
| from keras import backend as K | |
| class Attention(Layer): | |
| def __init__(self, | |
| kernel_regularizer=None, bias_regularizer=None, | |
| kernel_constraint=None, bias_constraint=None, | |
| use_bias=True, **kwargs): | |
| """ |
| keep |
| module ActiveRelationExtensions | |
| def find_each_with_order(options = {}) | |
| find_in_batches_with_order(options) do |records| | |
| records.each { |record| yield record } | |
| end | |
| end | |
| # NOTE: any limit() on the query is overridden with the batch size | |
| def find_in_batches_with_order(options = {}) |
| #!/bin/bash | |
| # This script does the following: | |
| # 1/ capture and download the latest backup | |
| # 2/ load it to your local database | |
| # 3/ run your app and open Safari | |
| # Just replace any uppercase string with your own data | |
| # |