Skip to content

Instantly share code, notes, and snippets.

View tomaash's full-sized avatar

Tomas Holas tomaash

View GitHub Profile
@felangel
felangel / main.dart
Created June 26, 2019 02:52
Flutter Bloc Stepper
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:bloc/bloc.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:equatable/equatable.dart';
abstract class StepperEvent extends Equatable {
StepperEvent([List props = const []]) : super(props);
}
@goatslacker
goatslacker / alt-shopping.js
Created May 30, 2015 04:35
Shopping with alt and the new reducey stuff.
import Alt from './'
const alt = new Alt()
const ShopActions = alt.generateActions('addItem', 'taxPercentChanged')
const ItemStore = alt.createStore({
displayName: 'ItemStore',
state: {
@kentcdodds
kentcdodds / README.md
Last active July 29, 2017 15:37
upload-file

upload-file angular-formly type

This is my upload-file type for what I use at work. We use angular-upload for the upload service to do the actual file uploading. We also have several abstractions and use ES6 that may confuse you a little bit (sorry about that). Hopefully this gets you started though.

@natelandau
natelandau / .bash_profile
Last active May 12, 2025 15:55
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@tomaash
tomaash / card_wizard.js
Last active December 24, 2015 09:39
Sample angular code
angular.module('card.services.wizard', [])
.factory('CardWizard', [
function () {
return {
stepNames: [],
currentStep: 0,
first: function() {
return this.currentStep === 0;
},
last: function() {