Skip to content

Instantly share code, notes, and snippets.

View peekpt's full-sized avatar
💭
life.

Paulo Bruckmann peekpt

💭
life.
View GitHub Profile
BEGIN:VCALENDAR
PRODID:-//E-DIARY//E-DIARY 1.0//EN
VERSION:2.0
METHOD:PUBLISH
X-WR-CALNAME:MotoGP
X-Built-On-Cache-Miss:true
BEGIN:VEVENT
LAST-MODIFIED:20251114T111825Z
DTSTAMP:20251114T111825Z
LOCATION:Automotodrom Brno
{
"VCALENDAR": [
{
"PRODID": "-//E-DIARY//E-DIARY 1.0//EN",
"VERSION": "2.0",
"METHOD": "PUBLISH",
"X-WR-CALNAME": "MotoGP",
"X-Built-On-Cache-Miss": "true",
"VEVENT": [
{
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@peekpt
peekpt / blt.dart
Created February 19, 2019 20:46 — forked from SebastianKlaiber/blt.dart
flutter built_value live templates
abstract class $NAME$ implements Built<$NAME$, $NAME$Builder> {
$END$// fields go here}",
$NAME$._();
factory $NAME$([updates($NAME$Builder b)]) = _$$$NAME$;
}
{
"Built Value": {
"prefix": "blt",
"body": [
"abstract class ${1} implements Built<${1}, ${1}Builder> {",
"\t${0:// fields go here}",
"",
"\t${1}._();",
"",
"\tfactory ${1}([updates(${1}Builder b)]) = _$${1};",
@peekpt
peekpt / cool_tile.dart
Created November 14, 2018 14:15
CoolTile for Flutter
import 'package:flutter/material.dart';
import 'dart:math';
class CoolTile extends StatefulWidget {
final String title;
final String subtitle;
final String tag;
final String bottomRightText;
final List<ImageProvider> avatars;
CoolTile({Key key, this.title = '', this.subtitle = '', this.tag = '', this.avatars, this.bottomRightText = ''})
import 'package:flutter/material.dart';
class Login extends StatefulWidget {
@override
_LoginState createState() => _LoginState();
}
class _LoginState extends State<Login> with TickerProviderStateMixin {
final _formKey = GlobalKey<FormState>();
// Import the splash.dart into your main app and use like:
// ex: Splash(iconData:Icons.restaurant, label: 'MY APP',);
import 'package:flutter/material.dart';
class Splash extends StatefulWidget {
final IconData iconData;
final String label;
@peekpt
peekpt / main.dart
Created August 24, 2018 18:25
Flutter Starter Code
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'App Name',
@peekpt
peekpt / Network.cpp
Created February 25, 2016 21:55 — forked from mkroman/Network.cpp
Uncrustify configuration inspired by Google's C++ styleguide.
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#include <iostream>
#include <stdarg.h>
#include <stdio.h>