I hereby claim:
- I am webzorg on github.
- I am dionysus69 (https://keybase.io/dionysus69) on keybase.
- I have a public key whose fingerprint is 41A2 E9FB 01B5 4C5B 78A9 BAC6 A2F1 64FF F2C4 E3BE
To claim this, I am signing this object:
| class User < ApplicationRecord | |
| has_many :wallets | |
| end | |
| class Currency < ApplicationRecord | |
| has_many :wallets | |
| end | |
| class Wallet < ApplicationRecord | |
| belongs_to :currency |
| module ApplicationHelper | |
| def bell_notification_with_conditional_counter | |
| if Notification.unread_count(current_user).zero? | |
| icon("fas", "bell", class: "notification-bell") | |
| else | |
| icon("fas", "bell", class: "notification-bell", data: { count: Notification.unread_count(current_user) }) | |
| end | |
| end | |
| import { Controller } from "stimulus" | |
| export default class extends Controller { | |
| static targets = ["name", "description", "category", "list"] | |
| postSuccess(event) { | |
| // console.log("ajax: success"); | |
| let [data, status, xhr] = event.detail; | |
| this.listTarget.insertAdjacentHTML("afterbegin", xhr.response); | |
| this.nameTarget.value = ""; |
| class Model < ApplicationRecord | |
| has_many :tags | |
| def generate_tag | |
| tag = loop do | |
| tag = (SecureRandom.random_number(9e9) + 1e9).to_i # 9 digit random int | |
| break tag unless Tag.exists?(tag: tag) | |
| end | |
| tags.create(tag: tag) | |
| end |
| სულ შეფასდა 348 ტრანზაქცია | |
| ************************ | |
| რეიტინგი კვირის დღეების მიხედვით: | |
| {"Sunday"=>134, | |
| "Monday"=>35, | |
| "Tuesday"=>48, | |
| "Wednesday"=>233, | |
| "Thursday"=>114, | |
| "Friday"=>243, |
I hereby claim:
To claim this, I am signing this object:
$ gem install grpc grpc-tools googleapis-common-protos