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
| #+TITLE: Algoritmos - Lista 7 | |
| * Questão 1 | |
| Faça um programa que peça para o usuário pensar em número de 1 a 4 e depois pergunte se o número é maior que 2 (S-Sim ou N-Não), e caso seja maior que 2, pergunte se ele é maior que 3, ou caso não seja maior que 2, pergunte se é maior que 1. Ao final o programa deve mostrar o número que o usuário pensou. | |
| #+BEGIN_SRC C | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main() |
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 'package) | |
| (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) | |
| (not (gnutls-available-p)))) | |
| (proto (if no-ssl "http" "https"))) | |
| ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired | |
| (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t) | |
| ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t) | |
| (when (< emacs-major-version 24) | |
| ;; For important compatibility libraries like cl-lib | |
| (add-to-list 'package-archives (cons "gnu" (concat proto "://elpa.gnu.org/packages/"))))) |
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
| #+OPTIONS: toc:1 | |
| #+OPTIONS: num:1 | |
| #+OPTIONS: html-postamble:nil | |
| #+STARTUP: overview | |
| #+AUTHOR: Davi Ramos | |
| #+latex_header: \hypersetup{colorlinks=true,linkcolor=blue} | |
| * Inkscape Keyboard Shortcuts :toc_2_gh: | |
| - [[#how-to-read-this][How to read this]] | |
| - [[#movements][Movements]] |
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
| rofi usage: | |
| rofi [-options ...] | |
| Command line only options: | |
| -no-config Do not load configuration, use default values. | |
| -v,-version Print the version number and exit. | |
| -dmenu Start in dmenu mode. | |
| -display [string] X server to contact. | |
| ${DISPLAY} | |
| -h,-help This help message. |
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
| # -*- mode: org; fill-column: 65; -*- | |
| #+STARTUP: showall | |
| #+TITLE: A História do Linux | |
| #+OPTIONS: toc:nil | |
| #+OPTIONS: num:nil | |
| * History of Linux | |
| ** The creation of Linux | |
| In 1991, while studying computer science at University of Helsinki, |
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
| * Listas de C | |
| ** Lista 01 | |
| *** DONE Questão 1 | |
| Faça um algoritmo que irá calcular quantos litros de combustível serão | |
| gastos em uma viagem. A distância da viagem e a média de consumo do | |
| carro serão lidas de uma entrada que será feita (digitados). | |
| *Variáveis*: |
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
| //////////////////////////////////////////////////////////////////////////////////// | |
| //////////////////////////////////////////////////////////////////////////////////// | |
| Algoritmo "01. Triângulos" | |
| var | |
| l: vetor [1..3] de real | |
| i: inteiro | |
| inicio |
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
| Algoritmo "Triângulos" | |
| var | |
| l: vetor [1..3] de real | |
| i: inteiro | |
| inicio | |
| escreval("---------------------------------------") | |
| escreval("Lados de um Triângulo") |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
| <head> | |
| <!-- 2018-09-27 Thu 19:07 --> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>Emacs Init File</title> | |
| <meta name="generator" content="Org 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
| ! {{{ swap contrl with alt | |
| ! clear control | |
| ! clear mod1 | |
| ! keycode 37 = Alt_L Meta_L | |
| ! keycode 37 = F2 | |
| ! keycode 64 = Control_L | |
| ! keycode 64 = |