Fast/efficient approach:
-- execute("UPDATE posts SET comments_count = (SELECT count(1) FROM comments WHERE comments.post_id = posts.id)")
-> 1.3197s
Slow/naïve approach:
// change the port number to whatever is needed. | |
iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 3000 -j ACCEPT |
[class^='select2'] { | |
border-radius: 0px !important; | |
} |
add_alert | |
airplay | |
alarm_off | |
alarm_on | |
album | |
android | |
announcement | |
aspect_ratio | |
assessment | |
assignment |
Fast/efficient approach:
-- execute("UPDATE posts SET comments_count = (SELECT count(1) FROM comments WHERE comments.post_id = posts.id)")
-> 1.3197s
Slow/naïve approach:
# spec/support/capybara.rb | |
require 'capybara/rails' | |
require 'capybara/rspec' | |
# port and url to webpack server | |
WEB_TEST_PORT = '5005'.freeze | |
WEB_TEST_URL = "http://localhost:#{WEB_TEST_PORT}".freeze | |
def capybara_wait_for_webpack_server | |
10.times.each do |_| |
PPL Code | Description | |
---|---|---|
AAA | Anatara | |
ABG | Acoustic Bass Guitar | |
ACC | Accordion | |
ACH | Atchere | |
ACM | Accompanist | |
ACR | Alto Crumhorn | |
ACT | Actor | |
ADF | Adufe | |
AEO | Aeolian Harp |
I hereby claim:
To claim this, I am signing this object:
root# apt-get update | |
root# apt-get upgrade | |
// dependencies for Ruby | |
root# apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev \ | |
libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev \ | |
libpcre3-dev unzip | |
// Node.js v7 | |
root# curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - |
Verifying my Blockstack ID is secured with the address 1Kqnw28bNRjXz5LZEJk3w76jQdxzDp2bQR https://explorer.blockstack.org/address/1Kqnw28bNRjXz5LZEJk3w76jQdxzDp2bQR |
# This is a list of Royalty rates from Spotify grouped by Country of reporting. | |
# Your numbers may be different. | |
# It was run against 1239553 database records against a total of 1375245 streams | |
# The figures are in GBP and after an average distributor cut - So roughly what a Label would recieve. | |
# You are free to reference these figures, just please attribute them to Cromon Ltd | |
{ | |
"Albania"=>"0.00029955", | |
"Algeria"=>"0.00039421", |