- Delete the line with sqlite and replace it with:
gem 'pg'
*vimtips.txt* For Vim version 7.3. | |
------------------------------------------------------------------------------ | |
" new items marked [N] , corrected items marked [C] | |
" *best-searching* | |
/joe/e : cursor set to End of match | |
3/joe/e+1 : find 3rd joe cursor set to End of match plus 1 [C] | |
/joe/s-2 : cursor set to Start of match minus 2 | |
/joe/+3 : find joe move cursor 3 lines down | |
/^joe.*fred.*bill/ : find joe AND fred AND Bill (Joe at start of line) | |
/^[A-J]/ : search for lines beginning with one or more A-J |
::-webkit-scrollbar { | |
-webkit-appearance: none; | |
width: 7px; | |
} | |
::-webkit-scrollbar-thumb { | |
border-radius: 4px; | |
background-color: rgba(0, 0, 0, .5); | |
-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5); | |
} |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
<!DOCTYPE html> | |
<html lang="en" class="no-js"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Unique page title - My Site</title> | |
<script type="module"> | |
document.documentElement.classList.remove('no-js'); |
# lib/tasks/db_pull.rake | |
# via https://martinschurig.com/posts/2015/02/pulling-production-database-to-local-machine-rails-task/ | |
namespace :db do | |
desc 'Pull production db to development' | |
task :pull => [:dump, :restore] | |
task :dump do | |
dumpfile = "#{Rails.root}/tmp/latest.dump" | |
puts 'PG_DUMP on production database...' | |
production = Rails.application.config.database_configuration['production'] |
def check_array_for_sum?(array, sum) | |
!!array.combination(2).detect { |a, b| a + b == sum } | |
end | |
sum = 8 | |
array = [1, 2, 4, 9] | |
check_array_for_sum?(array, sum) # returns false | |
array = [1, 2, 4, 4] |
Updated : 01Aug16 N Marks New C Corrected/Changed
> zsh -f # start a "clean" version of zsh (without your startup files) print $ZSH_VERSION [Tips Home](http://www.zzapper.co.uk/)
ag -l "search string" | xargs sed -i '' -e 's/from/to/g' |