The goal is to eliminate Node.js (including jsbundling and cssbundling) as a dependency when using tailwindcss-rails.
The approach involves downloading and bundling DaisyUI once, allowing Tailwind CLI to handle the rest of
The goal is to eliminate Node.js (including jsbundling and cssbundling) as a dependency when using tailwindcss-rails.
The approach involves downloading and bundling DaisyUI once, allowing Tailwind CLI to handle the rest of
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta content="width=device-width, initial-scale=1" name="viewport" /> | |
<meta content="#000000" name="theme-color" /> | |
<meta content="Reveal JS Presentation" name="description" /> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.1.0/reveal.min.css" rel="stylesheet" /> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.1.0/theme/moon.css" id="theme" | |
rel="stylesheet" /> |
# frozen_string_literal: true | |
files_path = `git diff --name-only origin/master..` | |
files_path = files_path.split("\n").select { |f| f.end_with?('.rb') } | |
METHODS = %w( | |
<< | |
.push | |
.gsub! | |
.concat |
version: '2.2' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2 | |
environment: | |
- node.name=elasticsearch | |
- discovery.type=single-node | |
- xpack.security.enabled=false | |
- xpack.monitoring.enabled=false | |
- bootstrap.memory_lock=true |
# Fur Elise | |
# Note by note | |
use_bpm 40 | |
use_synth :piano | |
# Partie 1 >> | |
play :E5, amp: 4 | |
sleep 1/8.0 | |
play :Ds5 |
require_relative 'user' | |
require_relative 'user_serializer' | |
user = User.new('Hello', 'World', '21') | |
puts UserSerializer.new(user).serialize | |
# => {:display_name=>"Hello World", :age=>"21 years old"} |
[alias] | |
s = status | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
uncommit = !git reset --soft HEAD~1 && git s | |
discard-all = !git add . && git reset --hard | |
publish = !git push --set-upstream origin $(git branch-name) | |
chb = !sh -c \"git branch -a | grep $1 | head -n 1 | cut -d/ -f3- | xargs git checkout\" | |
nb = checkout -b | |
c = checkout | |
cm = !git add . && git commit -m |
#!/usr/bin/env ruby | |
file_path = ARGV.first | |
puts '' | |
unless file_path | |
puts 'You must provide a file path' | |
puts ' Ex: ruby add_frozen_string.rb /path/to/file.rb' | |
exit 1 | |
end |
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme | |
index 07546fd..e6dec73 100644 | |
--- a/themes/agnoster.zsh-theme | |
+++ b/themes/agnoster.zsh-theme | |
@@ -80,7 +80,7 @@ prompt_end() { | |
# Context: user@hostname (who am I and where am I) | |
prompt_context() { | |
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then | |
- prompt_segment black default "%(!.%{%F{yellow}%}.)$USER@%m" | |
+ prompt_segment black default "%(!.%{%F{yellow}%}.)$USER:" |
git config --global alias.chb 'chb = !sh -c "git branch -a | grep $1 | head -n 1 | cut -d/ -f3- | xargs git checkout"' | |
git chb 1085 # Example |