Skip to content

Instantly share code, notes, and snippets.

View callebdev's full-sized avatar
📱
building experiences

Calleb Joel Miquissene callebdev

📱
building experiences
View GitHub Profile
@callebdev
callebdev / snakegame.html
Created December 4, 2018 07:01
Many WEB DEVELOPMENT beginners struggle writing the snake game code. The game consists on guiding a snake to eat its food, avoid the snake's head touching any part of its own body . As much as the snake eats the food, it gets bigger. The code is easy and it is not big. Here I will share the game code for who wants to learn more about the code. I…
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
html, body {
height: 100%;
margin: 0;
}
body {
@callebdev
callebdev / person.js
Last active May 6, 2020 14:25
This is a json file for an article that I'm writing
type Pessoa {
id: ID!
nome: String
anoDeNascimento: String
peso: Float
altura: Float
genero: String
corDosOlhos: String
}
@callebdev
callebdev / query.js
Created May 6, 2020 14:28
This is a query to a GraphQL API
query {
pessoa(id:"7"){
nome
genero
anoDeNascimento
}
}
@callebdev
callebdev / response.json
Created May 6, 2020 14:31
JSON response from a query
{
"data": {
"pessoa": {
"nome": "Calleb Miquissene",
"genero": "Masculino"
"anoDeNascimento: "2000"
}
}
}
@callebdev
callebdev / querrMoz.js
Created May 6, 2020 14:41
Another Query
query{
country(code:"MZ"){
name
capital
currency
continent{
name
}
languages{
name
@callebdev
callebdev / build.gradle
Created September 6, 2021 20:25
Dependencia do Jetpack Compose Navigation
dependencies {
implementation "androidx.navigation:navigation-compose:2.4.0-alpha08"
}
val navController = rememberNavController()
@callebdev
callebdev / NavHost.kt
Last active September 26, 2021 00:40
@Composable
fun NavigationGraph() {
val navController = rememberNavController()
NavHost(
navController = navController,
startDestination = "firstScreen"
) {
@Composable
fun FirstScreen(navController: NavController) {
Column(
modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(
text = "Go to Second Screen",
color = Color.Black,
@Composable
fun SecondScreen(navController: NavController) {
Column(
modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(
text = "Go to First Screen",
color = Color.Black,