Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh root@123.123.123.123
Add ssh fingerprint and enter password provided in email
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done |
" snippets | |
Plug 'SirVer/ultisnips' | |
Plug 'atefth/ruby-on-rails-snippets-vs-code' | |
Plug 'abusaidm/html-snippets' | |
Plug 'wvffle/vimterm' | |
Plug 'mtdl9/vim-log-highlighting' | |
Plug 'vim-ruby/vim-ruby' | |
Plug 'joker1007/vim-ruby-heredoc-syntax' | |
Plug 'chase/vim-ansible-yaml' |
/* eslint-disable jsx-a11y/accessible-emoji */ | |
import React, { Suspense, useState } from "react"; | |
import { unstable_scheduleCallback } from "scheduler"; | |
import { unstable_createResource as createResource } from "react-cache"; | |
import { | |
Combobox, | |
ComboboxInput, | |
ComboboxList, | |
ComboboxOption, | |
ComboboxOptionText |
I've used Cucumber quite a bit on my last job. It's an excellent tool, and I believe readable tests are the way to the future. But I could never get around to write effective scenarios, or maintain the boatload of text that the suite becomes once you get to a point where you have decent coverage. On top of that, it didn't seem to take much for the suite to become really slow as tests were added.
A while ago I've seen a gist by Lachie Cox where he shows how to use RSpec and Capybara to do front-end tests. That sounded perfect for me. I love RSpec, I can write my own matchers when I need them with little code, and it reads damn nicely.
So for my Rails Rumble 2010 project, as usual, I rolled a Sinatra app and figured I should give the idea a shot. Below are my findings.
original_solution.files.each do |original_file| | |
f = original_file.dup | |
f.remote_name_url = original_file.name.url | |
new_solution.files << f | |
end |
class Group | |
module Error | |
class Standard < StandardError; end | |
class AlreadyAMember < Standard; end | |
class NotPermittedToJoin < Standard; end | |
end | |
def join user | |
raise Error::NotPermittedToJoin unless self.permitted?(user) | |
raise Error::AlreadyAMember if self.member?(user) |
class Group | |
module Error | |
class Standard < StandardError; end | |
class AlreadyAMember < Standard | |
def message | |
"You are already a member of this group." | |
end | |
end |
Installing Ruby Enterprise Edition, Apache, MySQL, and Passenger for deploying Rails 3.0 applications.
Get a Linode, and set it up with Ubuntu 10.04 LTS so that you have till April 2013 to get updates. Once the Linode is formatted, boot it and continue on.
Set up an 'A' record in your DNS, pointing to the IP of your Linode. I'm using demo.napcs.com
here.