Summarizing the instructions of the pass tool (as seen on its website).
Execute: $ sudo apt install pass
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>React Debugging Demo</title> | |
| <script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script> | |
| <script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script> | |
| <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
| <style> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Vanilla JS Debugging Demo</title> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; |
| import { useState } from 'react'; | |
| import { Trash2, Plus, Check } from 'lucide-react'; | |
| export default function TodoApp() { | |
| const [todos, setTodos] = useState([]); | |
| const [input, setInput] = useState(''); | |
| const addTodo = () => { | |
| if (input.trim()) { | |
| setTodos([...todos, { id: Date.now(), text: input, completed: false }]); |
| import { useEffect, useMemo, useRef, useState } from "react"; | |
| // Single-file React To‑Do app | |
| // Features: add, edit, complete, delete, filter (All/Active/Completed), | |
| // clear completed, reorder via drag, and localStorage persistence. | |
| // Works out of the box in a Vite React template by replacing App.jsx. | |
| const STORAGE_KEY = "todoapp.v1.items"; | |
| function uid() { |
Summarizing the instructions of the pass tool (as seen on its website).
Execute: $ sudo apt install pass
| source 'https://rubygems.org' | |
| gem 'sinatra' | |
| gem 'sinatra-contrib' |
| Resque.queues.each do |q| | |
| begin | |
| # Resque.remove_queue_with_cleanup(q) | |
| ResqueSolo::Queue.cleanup(q) | |
| rescue => e | |
| puts("#{e} for queue #{q}") | |
| end | |
| end |
| Resque.reset_delayed_queue |
| class Product | |
| include Mongoid::Document | |
| include Mongoid::Timestamps | |
| field :description, :type => String | |
| field :price_pence, :type => Integer, :default => 0 | |
| field :currency_iso, :type => String, :default => Money.default_currency.iso_code | |
| validates_presence_of :description |