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
| name: cap-so-docker | |
| services: | |
| cap-web: | |
| container_name: cap-web | |
| image: ghcr.io/capsoftware/cap-web:latest | |
| restart: unless-stopped | |
| environment: | |
| DATABASE_URL: 'mysql://root:CHANGE_ME@db:3306/capso?ssl={"rejectUnauthorized":false}' | |
| WEB_URL: http://localhost:3000 |
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 { confetti } from "@tsparticles/confetti"; | |
| const ConfettiHook = { | |
| mounted() { | |
| randomInRange = function (min, max) { | |
| return Math.random() * (max - min) + min; | |
| }; | |
| const duration = 5 * 1000, | |
| animationEnd = Date.now() + duration, | |
| defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 0 }; |
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
| Metrics/LineLength: | |
| Max: 120 | |
| AllCops: | |
| TargetRubyVersion: 2.2 | |
| # Too short methods lead to extraction of single-use methods, which can make | |
| # the code easier to read (by naming things), but can also clutter the class | |
| Metrics/MethodLength: | |
| Max: 20 | |
| Metrics/ClassLength: |
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
| #!/bin/sh -e | |
| # upstart-job | |
| # Put file into /etc/init.d | |
| # Service available as sudo service {filename} start | |
| # Make sure you chmod +x file | |
| # To add service to auto start -> sudo update-rc.d {filename} defaults | |
| echo "starting unicorn after reboot" | |
| exec sudo -u ubuntu bash -c "cd /home/ubuntu/apps/app_name/prod/current && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/ubuntu/apps/app_name/prod/current/config/unicorn/production.rb -E production -D" |
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
| (1..100).to_a.each do |num| | |
| str = "" | |
| numb = num | |
| if num % 3 == 0 | |
| str += "fuzz" | |
| numb = '' | |
| end | |
| if num % 5 == 0 |
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
| package main | |
| import ( | |
| "github.com/veandco/go-sdl2/sdl" | |
| "github.com/veandco/go-sdl2/sdl_image" | |
| "fmt" | |
| ) | |
| const( | |
| SCREEN_WIDTH int = 1440 |
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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| "strconv" | |
| ) |