Skip to content

Instantly share code, notes, and snippets.

View Cretezy's full-sized avatar

Cretezy

View GitHub Profile
@Cretezy
Cretezy / keybase.md
Created July 27, 2018 04:49
Keybase

Keybase proof

I hereby claim:

  • I am cretezy on github.
  • I am cretezy (https://keybase.io/cretezy) on keybase.
  • I have a public key ASDCcHC4gAtfkgUsunkH6TV5kFoCD41eVYW6JtkKzmjq1Qo

To claim this, I am signing this object:

@Cretezy
Cretezy / .dockerignore
Last active October 18, 2019 21:44
Node + Docker with proper caching
Dockerfile
node_modules
import 'package:flutter_super_state/flutter_super_state.dart';
// Modules extend `StoreModule`
class CounterModule extends StoreModule {
// Read only property, to avoid accidentally setting `counter` without calling `setState`
int get counter => _counter;
var _counter = 0;
// This automatically registers your module to your store
CounterModule(Store store): super(store);
import 'package:flutter_super_state/flutter_super_state.dart';
final store = Store();
// Register modules. Order does not matter. You should register all modules on initialization
CounterModule(store);
import 'package:flutter_super_state/flutter_super_state.dart';
import 'package:state_test/src/store/counter.dart';
class AuthModule extends StoreModule {
int get isLoggedIn => isLoggedIn;
var _isLoggedIn = false;
AuthModule(Store store) : super(store);
Future<void> login() async {
class LoginScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Login"),
),
body: Center(
// Login button
void main() {
// Create the store
final store = Store();
// Register modules
CounterModule(store);
AuthModule(store);
// Provide store to whole application
runApp(StoreProvider(

Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Project - is an umbrella term that refers to any and all of Charles-William Crete's open source projects.
  • Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with Charles-William Crete, contributors or maintainers.

1. Grant of Copyright License.

Timeline

  1. Pre-development
    1. Agree on featureset
    2. Designs
    3. Pick tech stack ([see below](#Tech stack))
  2. Development
  3. Release
    1. Link from astronvim.com / AstroCommunity repo
@Cretezy
Cretezy / nvim-recent.lua
Last active May 11, 2024 05:02
Quick recent file picker in Neovim/Telescope
return {
{
"mollerhoj/telescope-recent-files.nvim",
config = function() require("telescope").load_extension("recent-files") end,
keys = {
{
"<Tab>",
function()
require("telescope").extensions["recent-files"].recent_files({
attach_mappings = function(_, map)