| Shortcut | Description | - | Shortcut | Description |
|---|---|---|---|---|
| :w | save file | - | :e + file path | open or edit file |
| :q | quit file | - | ||
| v | visual mode |
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
| ruby '2.7.1' | |
| gem 'rails', github: 'rails/rails' | |
| gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
| # Action Text | |
| gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
| gem 'okra', github: 'basecamp/okra' | |
| # Drivers |
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
| function cpf | |
| set CPF (curl -X POST -w "\n" -d "acao=gerar_cpf" -d "pontuacao=S" -s https://www.4devs.com.br/ferramentas_online.php) | |
| if type -q pbcopy | |
| echo $CPF | pbcopy; | |
| echo "$CPF copied to clipboard" | |
| else if type -q xclip | |
| echo $CPF | xclip -selection clipboard; | |
| echo "$CPF copied to clipboard" | |
| else | |
| echo $CPF |
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
| image: ruby:2.5.1 | |
| cache: | |
| key: "$CI_COMMIT_REF_NAME" | |
| untracked: true | |
| variables: | |
| POSTGRES_DB: dbname | |
| POSTGRES_USER: dbuser | |
| POSTGRES_PASSWORD: dbpass |
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
| #!/usr/bin/env ruby | |
| require 'net/http' | |
| require 'json' | |
| class Cloudflare | |
| def initialize(email, key) | |
| @email = email | |
| @key = key | |
| end |
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
| <template> | |
| <router-view></router-view> | |
| </template> | |
| <script> | |
| export default { | |
| name: 'App' | |
| } | |
| </script> |
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
| 'use strict' | |
| import Vue from 'vue' | |
| import axios from 'axios' | |
| // Full config: https://github.com/axios/axios#request-config | |
| // axios.defaults.baseURL = process.env.baseURL || process.env.apiUrl || ''; | |
| // axios.defaults.headers.common['Authorization'] = AUTH_TOKEN; | |
| // axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; |
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
| const tailwindcss = require('tailwindcss') | |
| const autoprefixer = require('autoprefixer') | |
| const purgecss = require('@fullhuman/postcss-purgecss') | |
| module.exports = { | |
| plugins: [ | |
| tailwindcss('./tailwind.js'), | |
| autoprefixer({ | |
| add: true, | |
| grid: true |
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
| <script type='text/x-handlebars' data-template-name='components/latest-topic-list-item'> | |
| <table> | |
| <tbody> | |
| <tr data-topic-id={{topic.id}} class="{{if topic.archived 'archived'}}"> | |
| <td class="main-link"> | |
| <tr> | |
| {{raw "topic-status" topic=topic}} | |
| {{topic-link topic}} | |
| {{#if topic.featured_link}} |
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
| resources :courses, except: :show do | |
| resources :chapters, except: :show do | |
| resources :lessons, except: :show do | |
| resources :attachments, except: :show | |
| end | |
| end | |
| end |
NewerOlder