This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "CoreLibs/graphics" | |
local gfx<const> = playdate.graphics | |
local dsp<const> = playdate.display | |
local spacing<const> = 10 | |
local xCount | |
local yCount |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/scheduler.dart'; | |
import 'package:macos_ui/macos_ui.dart'; | |
import 'package:process_run/process_run.dart'; | |
import 'package:super_clipboard/src/formats_base.dart'; | |
import 'package:super_clipboard/src/reader.dart'; | |
import 'package:super_drag_and_drop/super_drag_and_drop.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; environment: | |
;; sdk: '>=3.1.5 <4.0.0' | |
;; flutter: '3.16.2' <- from this one | |
#!/usr/bin/env bb | |
(require | |
'[babashka.process :refer [shell process exec]] | |
'[clojure.java.io :as io]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns project.core.graphql | |
(:require ["package:graphql/client.dart" :as g] | |
[project.env :refer [env]])) | |
(def ^:private http-link (g/HttpLink (:base-url env))) | |
(def ^:private auth-link | |
(g/AuthLink :getToken (fn ^:async []) | |
:headerKey "Authorization")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:paths ["."] | |
:deps {org.clojure/tools.cli {:mvn/version "1.0.194"}}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make .app | |
if ! type "$PWD/.fvm/flutter_sdk/bin/flutter" > /dev/null; then | |
echo '▵ Using flutter' | |
flutter build ios | |
else | |
echo '▵ Using fvm' | |
fvm flutter build ios | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin SingleLoadingStoreMixin on ChangeNotifier { | |
/// Loading state | |
bool _isLoading = false; | |
/// Loading getter | |
bool get isLoading => _isLoading; | |
/// Set loading state to true | |
void $showLoading() { | |
if (!_isLoading) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/widgets.dart'; | |
/// provide single [TextField] debounce timer and handle controller and callback | |
/// by implementing [SingleFieldDebounceState] in [State] class | |
/// | |
mixin SingleFieldDebounceProvider<T extends StatefulWidget> | |
on SingleFieldDebounceState<T> { | |
Timer _debouncedSearchTimer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
import 'package:gql/language.dart'; | |
import 'package:graphql_flutter/graphql_flutter.dart'; | |
import 'package:provider/provider.dart'; | |
enum BaseServiceRequestType { QUERY, MUTATION } | |
/// [T] is a return value | |
abstract class BaseService<T> { | |
/// [context] is a navigator context, this context doesn't have |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:main $TEMPLATE$ | |
:output-to "target/main.js" | |
:output-dir "target"} |
NewerOlder