I hereby claim:
- I am marcgg on github.
- I am marcgg (https://keybase.io/marcgg) on keybase.
- I have a public key ASDSHW5G88X7EPK9KNVO354Zm_XExZ6qSKYYOk14-d3_YQo
To claim this, I am signing this object:
var noteValues = { | |
'C0': 16.35, | |
'C#0': 17.32, | |
'Db0': 17.32, | |
'D0': 18.35, | |
'D#0': 19.45, | |
'Eb0': 19.45, | |
'E0': 20.60, | |
'F0': 21.83, | |
'F#0': 23.12, |
# Matches patterns such as: | |
# https://www.facebook.com/my_page_id => my_page_id | |
# http://www.facebook.com/my_page_id => my_page_id | |
# http://www.facebook.com/#!/my_page_id => my_page_id | |
# http://www.facebook.com/pages/Paris-France/Vanity-Url/123456?v=app_555 => 123456 | |
# http://www.facebook.com/pages/Vanity-Url/45678 => 45678 | |
# http://www.facebook.com/#!/page_with_1_number => page_with_1_number | |
# http://www.facebook.com/bounce_page#!/pages/Vanity-Url/45678 => 45678 | |
# http://www.facebook.com/bounce_page#!/my_page_id?v=app_166292090072334 => my_page_id | |
# http://www.facebook.com/my.page.is.great => my.page.is.great |
require 'csv' | |
require 'open-uri' | |
GOOGLE_DOC_ID = "TO_COMPLETE" | |
PATH = "TO_COMPLETE" | |
puts "Downloading translations..." | |
url = "https://docs.google.com/spreadsheets/d/#{GOOGLE_DOC_ID}/gviz/tq?tqx=out:csv" | |
begin |
import SwiftUI | |
let timer = Timer | |
.publish(every: 1, on: .main, in: .common) | |
.autoconnect() | |
struct Clock: View { | |
var counter: Int | |
var countTo: Int | |
I hereby claim:
To claim this, I am signing this object:
{ | |
"AF": "93", | |
"AL": "355", | |
"DZ": "213", | |
"AD": "376", | |
"AO": "244", | |
"AQ": "672", | |
"AR": "54", | |
"AM": "374", | |
"AW": "297", |
class Note | |
def self.add(player_id, x, y) | |
key = "note_#{SecureRandom.hex}" | |
REDIS.set(key, { | |
x: x, y: y, player_id: player_id | |
}.to_json) | |
REDIS.expire(key, 5) | |
broadcast_note(player_id, x, y) | |
REDIS.incr("count_notes") | |
end |
class Player | |
def self.all | |
REDIS.smembers("player_ids").map do |player_id| | |
JSON.parse(REDIS.get("player_#{player_id}")) | |
end | |
end | |
def self.add(player_json) | |
player = JSON.parse(player_json) | |
raise "Player is blank" if player.blank? |
run_template = "rvm use 2.2.3 | |
cd FULL_PATH | |
echo FULL_PATH: STARTED | |
bundle install | |
echo FULL_PATH: DONE BUNDLING | |
rake db:drop RAILS_ENV=test | |
rake db:create RAILS_ENV=test | |
rake db:migrate RAILS_ENV=test | |
echo FULL_PATH: DONE WITH MIGRATIONS | |
bundle exec rspec spec/controllers/students_controller_spec.rb spec/models/exam_spec.rb spec/models/grade_spec.rb spec/models/student_spec.rb > ../rspec_results.log |
class BankAccountController | |
def admin_index | |
@bbans = Bbans.all | |
end | |
def user_index | |
@bbans_user = current_user.bbans.all | |
end |