Skip to content

Instantly share code, notes, and snippets.

View ericorruption's full-sized avatar
🎵

Eric Quanz ericorruption

🎵
View GitHub Profile
@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 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(
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 / 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" />
# @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 / 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));
@ericorruption
ericorruption / docker-compose.yml
Created February 14, 2019 16:52
Simplest possible node.js dev environment?
# https://medium.com/@francoisromain/getting-started-with-docker-for-local-node-js-development-192ceca18781
version: "3"
services:
app:
image: node:8
volumes:
- ./:/home/node/app
working_dir: "/home/node/app"
user: "node" # don't use the root user for security reasons
const nested = [[0, 1],[2, 3], 4]
const flat = = nested.reduce((acc, it) => [...acc, ...it], []);
@ericorruption
ericorruption / google-task-1-solution.py
Created December 21, 2018 17:03
Google task 1 solution
braille = {
' ': '000000',
'a': '100000',
'b': '110000',
'c': '100100',
'd': '100110',
'e': '100010',
'f': '110100',
'g': '110110',
'h': '110010',
<meta name="disabled-adaptations" content="watch">