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
| require 'google/apis/admin_directory_v1' | |
| require 'googleauth' | |
| require 'googleauth/stores/file_token_store' | |
| OOB_URI = 'urn:ietf:wg:oauth:2.0:oob' | |
| APPLICATION_NAME = 'Google Admin Directory API Ruby Quickstart' | |
| CLIENT_SECRETS_PATH = 'client_secret.json' | |
| CREDENTIALS_PATH = File.join(Dir.home, '.credentials', | |
| "admin-directory_v1-ruby-quickstart.yaml") |
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
| require "readline" | |
| CURRENT_INTEREST_RATE=6.97/100 | |
| print "Input home value: " | |
| value = gets.chomp.to_i | |
| print "Input interest rate: " | |
| rate = gets.chomp.to_f/100 |
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 DeviseTurboController < ApplicationController | |
| class Responder < ActionController::Responder | |
| def to_turbo_stream | |
| if @default_response | |
| @default_response.call(options.merge(formats: :html)) | |
| else | |
| controller.render(options.merge(formats: :html)) | |
| end | |
| rescue ActionView::MissingTemplate => error | |
| if get? |
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
| { | |
| "dependencies": { | |
| "postcss": "^8.4.8", | |
| "tailwindcss": "^3.0.23" | |
| }, | |
| "scripts": { | |
| "build:css": "yarn tailwind --postcss -i simple.css -o out.css --minify" | |
| } | |
| } |
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
| version: '2' | |
| services: | |
| cypress: | |
| image: projectcypress/cypress:release-latest | |
| environment: | |
| - MONGO_PORT_27017_TCP_ADDR=mongodb | |
| - MONGO_PORT_27017_TCP_PORT=27017 | |
| ports: | |
| - "80:3000" | |
| links: |
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
| Merging through the pulls | |
| On a recently created branch, | |
| Over the commits we go, | |
| Rebasing all the way; | |
| Bells on Travis-CI ring, | |
| Giving builds the green light, | |
| What fun it is to write and push | |
| A fetching song tonight. | |
| Git Commits, git commits, |