This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat > setup-claude-telemetry.sh << 'ENDSCRIPT' | |
| #!/usr/bin/env bash | |
| # | |
| # Claude Code Telemetry → Grafana Cloud Setup | |
| # Fixed version - no variable scoping issues | |
| set -euo pipefail | |
| if [ -t 1 ]; then | |
| R=$'\033[0;31m'; G=$'\033[0;32m'; Y=$'\033[1;33m'; B=$'\033[0;34m'; N=$'\033[0m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Proposed Solution | |
| ### **Problem** :- _cant find the path **@import "rails_admin/src/rails_admin/styles/base"; | |
| - because import work with js you have to install the npm pakage of rails_admin , | |
| - **For pro quick solve** :- | |
| > look for my gem url and package.json | |
| 1. **Ensure Proper Gem Installation**: | |
| - Add the Rails Admin gem to your Gemfile: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Book | |
| DEV_CALL=["first","last","second"] | |
| require 'net/http' | |
| include ActiveModel::Model | |
| attr_accessor :user_token, :books | |
| BASE_URL = "http://127.0.0.1:3000/api/books/".freeze | |
| def self.user(auth_token) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| background: #f6f5f7; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| flex-direction: column; | |
| font-family: 'Montserrat', sans-serif; | |
| height: 100vh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="container" id="container" data-controller="auth-form"> | |
| <div class="form-container sign-up-container"> | |
| <form action="#" name="register"> | |
| <h1>Create Account</h1> | |
| <div class="social-container hidden"> | |
| <a href="#" class="social"><i class="fab fa-facebook-f"></i></a> | |
| <a href="#" class="social"><i class="fab fa-google-plus-g"></i></a> | |
| <a href="#" class="social"><i class="fab fa-linkedin-in"></i></a> | |
| </div> | |
| <span>or use your email for registration</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Controller } from '@hotwired/stimulus'; | |
| export default class extends Controller { | |
| static targets = ["name", "email", "password"]; | |
| connect() { | |
| const signUpButton = this.element.querySelector('#signUp'); | |
| const signInButton = this.element.querySelector('#signIn'); | |
| signUpButton.addEventListener('click', () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| const Chatbox = () => { | |
| return ( | |
| <div className="flex flex-col h-screen"> | |
| <div className="flex items-center justify-between bg-purple-500 px-4 py-2"> | |
| <h1 className="text-white font-bold text-lg">Chatbox</h1> | |
| <button className="text-white"> | |
| <i className="fas fa-times"></i> | |
| </button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tkinter as tk | |
| window = tk.Tk() | |
| window.title('Todo App') | |
| # Create a text entry widget | |
| entry = tk.Entry(window) | |
| entry.pack() | |
| # Create a button to add tasks |