Skip to content

Instantly share code, notes, and snippets.

View robinthomas's full-sized avatar

Robin Thomas robinthomas

View GitHub Profile
@kaigouthro
kaigouthro / Pine_Script_5_Mini_Reference.md
Last active September 25, 2025 15:27
A minimal reference to pine script v5

Pine Script Mini-Reference

This document provides a concise reference for Pine Script, a programming language specifically designed for trading strategies and indicators within TradingView.

Operators

Arithmetic Operators

Operator Description
@lprichar
lprichar / LeesStoreDbContextModelCreatingExtensions.cs
Created December 6, 2020 16:31
Auto Entity Model Adding During DB Context Creation via Reflection for ABP.IO
var allDbSets = typeof(LeesStoreDbContext).GetProperties()
.Where(p => p.PropertyType.Name == "DbSet`1")
.Select(p => new
{
Type = p.PropertyType.GetGenericArguments()[0],
p.Name
})
.Where(p => p.Name != nameof(LeesStoreDbContext.Users));
foreach (var property in allDbSets)
import 'package:flutter/material.dart';
import 'create_connection.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter App',
import 'package:flutter/material.dart';
class AnimatedIconExample extends StatefulWidget {
@override
_AnimatedIconExampleState createState() => _AnimatedIconExampleState();
}
class _AnimatedIconExampleState extends State<AnimatedIconExample>
with SingleTickerProviderStateMixin {
PageController pageController = PageController();
// MIT License
//
// Copyright (c) 2019 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
import 'package:flutter/material.dart';
class Login extends StatefulWidget {
@override
_LoginState createState() => _LoginState();
}
class _LoginState extends State<Login> with TickerProviderStateMixin {
final _formKey = GlobalKey<FormState>();
@mjohnsullivan
mjohnsullivan / book_list.dart
Last active December 1, 2023 21:53
A simple book list Flutter example using the Google Books API
/*
Copyright 2018 The Chromium Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
import 'package:flutter/material.dart';
import 'package:csv/csv.dart';
import 'dart:async' show Future;
import 'package:flutter/services.dart' show rootBundle;
class TableLayout extends StatefulWidget {
@override
_TableLayoutState createState() => _TableLayoutState();
}
// 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;
class MyApp extends StatelessWidget {
Stream<int> _countUp() async* {
for (int i = 1; i <= 10; i++) {
yield await Future.delayed(Duration(seconds: 1), () => i);
}
}
@override
Widget build(BuildContext context) {
return MaterialApp(