These instructions have moved to https://github.com/emporia-vue-local/esphome
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
| const centerColumnWidthFactor = 0.4; | |
| // Prioritizes center with adjustable width factor | |
| // Fills column left, then right | |
| // Then splits right column vertically | |
| // Then splits left column vertically | |
| function layout() { | |
| return { | |
| name: "Ultrawide Simple", | |
| getFrameAssignments: (windows, screenFrame) => { |
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
| function flutter-watch(){ | |
| local PID_FILE="/tmp/tf$$.pid" | |
| tmux new-session \;\ | |
| send-keys "flutter run --pid-file=$PID_FILE" Enter \;\ | |
| split-window -v \;\ | |
| send-keys "npx -y nodemon -e dart -x \"cat $PID_FILE | xargs kill -s USR1\"" Enter \;\ | |
| resize-pane -y 5 -t 1 \;\ | |
| select-pane -t 0 \; | |
| rm $PID_FILE; | |
| } |
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
| "explorer.fileNesting.enabled": true, | |
| "explorer.fileNesting.expand": false, | |
| "explorer.fileNesting.patterns": { | |
| "pubspec.yaml": ".flutter-plugins, .packages, .dart_tool, .flutter-plugins-dependencies, .metadata, .packages, pubspec.lock, build.yaml, analysis_options.yaml, all_lint_rules.yaml", | |
| ".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*", | |
| "readme.*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md", | |
| "*.dart": "$(capture).g.dart, $(capture).freezed.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
| /// live demo: https://graphx-gesture-simple.surge.sh | |
| import 'package:flutter/material.dart'; | |
| import 'package:graphx/graphx.dart'; | |
| import 'package:graphx_zoompan/simple_zoom.dart'; | |
| void main() { | |
| runApp(AppSimpleZoom()); | |
| } |
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/gestures.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:url_launcher/url_launcher.dart' as urlLauncher; | |
| void main() => runApp(App()); | |
| class App extends StatelessWidget { | |
| static const title = 'Flutter App'; | |
| @override | |
| Widget build(BuildContext context) => MaterialApp( |
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
| module Entry::TrackerBlocking | |
| extend ActiveSupport::Concern | |
| included do | |
| has_many :blocked_trackers | |
| end | |
| email_service_blockers = { | |
| "ActiveCampaign" => /lt\.php(.*)?l\=open/, | |
| "AWeber" => "openrate.aweber.com", |
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
| - addons.js | |
| - config.js | |
| - webpack.config.js |
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 { useState, useRef, useCallback } from 'react'; | |
| export const useSubmit = (fun: Function) => { | |
| const [isPending, setIsPending] = useState<boolean>(false); | |
| const pendingRef = useRef(null); | |
| const submit = useCallback((...args) => { | |
| if (pendingRef.current) { | |
| return; | |
| } |
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
| class ErrorBoundaryWithRetry extends React.Component<Props, State> { | |
| state = {error: null}; | |
| static getDerivedStateFromError(error): State { | |
| return {error: error}; | |
| } | |
| _retry = () => { | |
| this.setState({error: null}); | |
| } |