- Add initializer to
config/application.rb
- Add new class to
app/models/spree/calculators/[class_name].rb
- Add logic to class file
Class must have the following methods:
def self.description
"Custom FlexiRate"
end
for s in $(conda env list | grep mlflow | awk '{ print $1}'); | |
do | |
conda remove -y --all --name $s; | |
done |
" vim-bootstrap | |
"***************************************************************************** | |
"" Vim-PLug core | |
"***************************************************************************** | |
let vimplug_exists=expand('~/.vim/autoload/plug.vim') | |
let g:vim_bootstrap_langs = "javascript,python" | |
let g:vim_bootstrap_editor = "vim" " nvim or vim |
Verifying my Blockstack ID is secured with the address 1Ehzs5BkVwcEqKZQffCqL7t84FToa2p4fB https://explorer.blockstack.org/address/1Ehzs5BkVwcEqKZQffCqL7t84FToa2p4fB |
config/application.rb
app/models/spree/calculators/[class_name].rb
Class must have the following methods:
def self.description
"Custom FlexiRate"
end
var switch_a = new five.Switch(8); | |
var switch_b = new five.Switch(9); | |
var is_on_a = false; | |
var is_on_b = false; | |
switch_a.on("open", function() { | |
is_on_a = true; | |
shouldDoStuff(); | |
}); | |
switch_a.on("close", function() { |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NSString *imageName = [NSString stringWithFormat:@"profile%i%i.jpg", self.no/10, self.no%10]; | |
UIImage *image = [UIImage imageNamed:imageName]; | |
UIImageView *profileImage = [[UIImageView alloc] initWithImage:image]; | |
profileImage.frame = CGRectMake(0, 0, 55,55); | |
[profileImage setContentMode:UIViewContentModeScaleAspectFill]; | |
// make new layer to contain shadow and masked image | |
CALayer* containerLayer = [CALayer layer]; | |
containerLayer.shadowColor = [UIColor blackColor].CGColor; |
# Place all the behaviors and hooks related to the matching controller here. | |
# All this logic will automatically be available in application.js. | |
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ | |
# Pusher.log = (message) -> | |
# if window.console and window.console.log | |
# window.console.log(message); | |
` | |
Pusher.log = function(message) { | |
if (window.console && window.console.log) { |
def new | |
@appointment = Appointment.new | |
if params[:booking_id] then | |
@booking = Booking.find_by(params[:booking_id]) | |
@appointment.date = @booking.date | |
end | |
respond_to do |format| | |
format.html # new.html.erb | |
format.json { render json: @appointment } |