Skip to content

Instantly share code, notes, and snippets.

View chinnonsantos's full-sized avatar
💵
Ajudando a construir um banco transparente, completo e com a sua cara.

Chinnon Santos chinnonsantos

💵
Ajudando a construir um banco transparente, completo e com a sua cara.
View GitHub Profile

Disable Device Enrollment Program (DEP) notification on macOS Monterey.md

NB! command-R is replaced with holding the power button on M1 macs.

With full reinstall (recommended)

   a. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

   b. Initial installation will run for approximately 1 hour, and reboot once

fun fizzbuzz(start: Int, end: Int) {
for (k in start..end) {
fun isFizz() = k % 3 == 0
fun isBuzz() = k % 5 == 0
when {
isFizz() && isBuzz() -> println("Fizz Buzz")
isFizz() -> println("Fizz")
isBuzz() -> println("Buzz")
else -> println(k)
fun fizzbuzz(start: Int, end: Int) {
for (k in start..end) {
fun isFizz() = k % 3 == 0
fun isBuzz() = k % 5 == 0
if (isFizz() && isBuzz())
println("Fizz Buzz")
else if (isFizz())
println("Fizz")
else if (isBuzz())
fun fizzbuzz(start: Int, end: Int): Unit {
fun isFizz(k: Int): Boolean = k % 3 == 0
fun isBuzz(k: Int): Boolean = k % 5 == 0
for (k in start..end) {
if (isFizz(k) && isBuzz(k))
println("Fizz Buzz")
else if (isFizz(k))
println("Fizz")
else if (isBuzz(k))
fun fizzbuzz(start: Int, end: Int): Unit {
for (k in start..end) {
if (k % 3 == 0 && k % 5 == 0)
println("Fizz Buzz")
else if (k % 3 == 0)
println("Fizz")
else if (k % 5 == 0)
println("Buzz")
else
println(k)
sudo apt update
sudo apt install openjdk-13-jre-headless
java --version
@chinnonsantos
chinnonsantos / test.clj
Created April 25, 2019 00:19
Greetings in Clojure
(defn greetings [name]
(str "Hello " name "!"))
(greetings "Clojure")
@chinnonsantos
chinnonsantos / settings.json
Last active April 24, 2019 20:20
Configuring Extensions for Clojure
{
"clojureVSCode.formatOnSave": true,
"clojureVSCode.autoStartNRepl": false,
"clojure.toolsJar": "/home/chinnonsantos/.lein/self-installs/leiningen-2.9.1-standalone.jar",
"clojure.leinPath": "/usr/local/bin/lein"
}
lein repl
"Hello Clojure!"
quit