Skip to content

Instantly share code, notes, and snippets.

View ericorruption's full-sized avatar
🎵

Eric Quanz ericorruption

🎵
View GitHub Profile
@ericorruption
ericorruption / sleep.ts
Last active February 2, 2023 19:03
Sleep() async/await in typescript
export const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
# @SomeGroupingCategory
Feature: Invoicing
In order to fill and assign claims to experts # to make claimsforce more $
As a backoffice employee
I want to log in # more like "need"
# or Example
Scenario: Login
Given I navigate to the backoffice website
@ericorruption
ericorruption / index.html
Created September 24, 2019 14:19
editable page
<!DOCTYPE html>
<html lang="en">
<!-- contenteditable="true" -->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
import 'dart:math' as math;
import 'package:flutter/material.dart';
class Spinner extends StatefulWidget {
final Widget child;
final bool reverse;
const Spinner({Key key, @required this.child, this.reverse = false})
: super(key: key);
@ericorruption
ericorruption / main.dart
Created February 21, 2020 08:51
Gesture detector around button
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Assessment Documents Demo',
theme: ThemeData(
@ericorruption
ericorruption / main.dart
Created February 21, 2020 09:17
Multi line TextField clicks
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Assessment Documents Demo',
theme: ThemeData(
@ericorruption
ericorruption / main.dart
Created February 21, 2020 09:35
readOnly textField - cannot copy text
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Demo',
theme: ThemeData(
DO NOT USE ARRAY.INCLUDES WITH OBJECTS
npm config set registry https://registry.npmjs.org
codesign --remove-signature /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Code\ Helper\ \(Renderer\).app
(https://github.com/microsoft/vscode/issues/105446)
or
changing renderer?
(--disable-renderer-accessibility)
https://github.com/microsoft/vscode/issues/108590