Skip to content

Instantly share code, notes, and snippets.

View lbarqueira's full-sized avatar

Luis Barqueira lbarqueira

View GitHub Profile
@lbarqueira
lbarqueira / assault_variations.R
Last active January 5, 2024 22:31
OECD Assault Deaths 1960-2020
## OECD Assault Deaths - LUIS BARQUEIRA
# Reference: https://kieranhealy.org/blog/archives/2023/03/30/assault-deaths-in-the-oecd-1960-2020/
# originated the gist: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
# originated my blog post: https://lbarqueira.github.io/2023/03/29/assault-deaths-oecd.html
library(tidyverse)
library(here)
library(showtext)
## Loading Google fonts (https://fonts.google.com/)
@lbarqueira
lbarqueira / exe_6_read_lines_of_text.c
Created March 18, 2022 12:54
C programming exercise: Read lines of text and show the largest
/*
Ler linhas de texto e mostrar a maior
*/
/*
Ler um conjunto de linhas de texto e escrever a mais comprida (linhas terminam com '\n' ou EOF)
*/
/* ----> slide 30/37 aula 05 <------- */
import 'package:flutter/material.dart';
void main() {
runApp(new DogApp());
}
class DogApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Putting it all together',
home: Scaffold(
body: MyWidget(),
),
@lbarqueira
lbarqueira / 30_days_of_flutter_codelab_basic_layout_concepts_3.dart
Created February 8, 2021 18:50
Flutter layout codelab, where you learn how to build a Flutter UI without downloading and installing Flutter or Dart! Row, Column, Text, Icon, Image
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Tutorial',
home: Scaffold(
body: Container(
decoration: BoxDecoration(color: Colors.cyan),
@lbarqueira
lbarqueira / 30_days_of_flutter_codelab_basic_layout_concepts_2.dart
Last active February 8, 2021 17:01
Flutter layout codelab, where you learn how to build a Flutter UI without downloading and installing Flutter or Dart! Row, Column, SizedBox, Spacer
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Tutorial',
home: Scaffold(
body: Container(
decoration: BoxDecoration(color: Colors.cyan),
@lbarqueira
lbarqueira / 30_days_of_flutter_codelab_basic_layout_concepts.dart
Created February 8, 2021 13:18
Flutter layout codelab, where you learn how to build a Flutter UI without downloading and installing Flutter or Dart! Row, Column, Flexible
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Tutorial',
home: Scaffold(
body: Container(
decoration: BoxDecoration(color: Colors.cyan),
@lbarqueira
lbarqueira / 30_days_of_flutter_handling_gestures.dart
Created February 8, 2021 10:58
Handling gestures - https://flutter.dev/docs/development/ui/widgets-intro#handling-gestures - Most applications include some form of user interaction with the system. The first step in building an interactive application is to detect input gestures.
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Tutorial',
home: TutorialHome(),
),
);
@lbarqueira
lbarqueira / 30_days_of_flutter_material_components.dart
Last active February 8, 2021 10:16
Using Material Components - https://flutter.dev/docs/development/ui/widgets-intro#using-material-components - Flutter provides a number of widgets that help you build apps that follow Material Design. A Material app starts with the MaterialApp widget, which builds a number of useful widgets at the root of your app.
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Tutorial',
home: TutorialHome(),
),
);
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
title: 'My app', // used by the OS task switcher
home: SafeArea(
child: MyScaffold(),
),