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/bash | |
| sudo udisksctl unlock -b /dev/sda3 | |
| sudo mount /dev/mapper/ubuntu--vg-root /mnt | |
| sudo mount /dev/sda2 /mnt/boot | |
| sudo mount /dev/sda1 /mnt/boot/efi | |
| for i in /dev /defpts /proc /sys /run; do sudo mount -B $i /mnt$i; done |
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
| {:user {:plugins [[venantius/ultra "0.5.2"] | |
| [com.jakemccrary/lein-test-refresh "0.23.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
| function subscribeCardListObserver() { | |
| var observer = new MutationObserver(function (mutations) { | |
| mutations.forEach(function (mutation) { | |
| iterable({ collection: mutation.addedNodes }) | |
| .filter(node => isACard(node)) | |
| .findFirst() | |
| .ifPresent(node => updateCounterValue()); | |
| }); | |
| }); | |
| observer.observe(references.components.cards, { childList: 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
| version: "3.2" | |
| services: | |
| server: | |
| image: gocd/gocd-server:v18.1.0 | |
| ports: | |
| - "8153:8153" | |
| - "8154:8154" | |
| restart: on-failure | |
| volumes: | |
| - type: volume |
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 "primos" | |
| var | |
| numero: inteiro | |
| funcao ePrimo (numero: inteiro) : logico | |
| var indice, divisores: inteiro | |
| inicio | |
| divisores <- 1 | |
| indice <- 1 |
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 "calculadora" | |
| // Função : Calculadora com Menu Interativo | |
| // Autor : Miguel Fontes | |
| // Data : 14/05/2017 | |
| var | |
| opcao, numeroItensMenu: inteiro | |
| menu: vetor [0..9] de caractere | |
| operando1, operando2, resultado: real |
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 "com Enquanto" | |
| var | |
| i: real | |
| funcao raiz(x: real): real | |
| retorne (x ^ 0.5) | |
| fimfuncao | |
| procedimento saltarNLinhas(n: inteiro) | |
| var i: inteiro |
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 "calculos" | |
| var resultado: inteiro | |
| funcao soma(x, y: inteiro) : inteiro | |
| retorne x + y | |
| fimfuncao | |
| inicio | |
| resultado <- soma (2, 3) | |
| escreval(resultado) |
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
| module Main where | |
| import Parser | |
| testData1 = "(abcdefgh)" | |
| testData2 = "(asd(bcd)efg)" | |
| testData3 = "asd(asd(bcd)efg)ghe" | |
| testData4 = "asd(asd(bcd)efg)ghe)" | |
| testData5 = "(asd(asd(bcd)efg)ghe" |
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
| lerArquivo = do | |
| conteudo <- readFile "bacon-ipsum.txt" | |
| print (numBacons conteudo) | |
| numBacons = somatorio . map (isBacon . head . words) . lines | |
| isBacon str | |
| | str == "bacon" = 1 | |
| | str == "Bacon" = 1 | |
| | otherwise = 0 |
NewerOlder