Skip to content

Instantly share code, notes, and snippets.

View waystilos's full-sized avatar
🏠
Working from home

Ardon Bailey waystilos

🏠
Working from home
View GitHub Profile
@waystilos
waystilos / main.dart
Created October 11, 2018 16:53
Issue getting flutter app to load
// bloc.dart
import 'dart:async';
import 'validators.dart';
class Bloc extends Validators {
final _email = new StreamController<String>();
final _password = new StreamController<String>();
// Add data to stream
Stream<String> get email => _email.stream.transform(validateEmail);
@waystilos
waystilos / SassMeister-input-HTML.html
Created August 31, 2015 06:09
Generated by SassMeister.com.
<div class="foo"></div>
@waystilos
waystilos / SassMeister-input-HTML.html
Created August 31, 2015 04:46
Generated by SassMeister.com.
<div class="foo"></div>
@waystilos
waystilos / SassMeister-input.scss
Created August 31, 2015 04:38
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// variables
//Colors
$white: #fff;
$black: #000000;
$red: #ff0000;
@waystilos
waystilos / SassMeister-input.scss
Created August 31, 2015 04:26
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
//Mixin
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
border-radius: $radius;
background-clip: padding-box; /* stops bg color from leaking outside the border: */
@waystilos
waystilos / SassMeister-input.scss
Created August 31, 2015 04:16
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// variables
//Colors
$white: #fff;
$black: #000000;
$red: #ff0000;
@waystilos
waystilos / SassMeister-input.scss
Created August 31, 2015 04:00
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// variables
//Colors
$white: #fff;
$black: #000000;
$red: #ff0000;
@waystilos
waystilos / SassMeister-input.scss
Created August 30, 2015 19:07
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
//nesting
.entry p {
font-size: 2em;
font-weight: 900;
}
@waystilos
waystilos / gist:e6fff9974fe53f7eddc4
Created May 25, 2015 01:20
Find duplicates in array in JS
Array.prototype.numberOfOccurrences = function (a) {
var count = 0;
this.map(function (x) {
if (x === a) {
count++;
} else {
return false;
}
});
return count;
@waystilos
waystilos / gist:7946303
Last active December 31, 2015 06:18
compass-rails fix for learn-rails tutorial

This is my first Gist so I thought this would be a good time to share a problem I was stuck on for a little. I'm going through the Learn-Rails book and was trying to push my app to Heroku.

I kept getting this error after my Heroku push:

 Initializing repository, done.
 Counting objects: 235, done.
 Delta compression using up to 4 threads.
 Compressing objects: 100% (213/213), done.

Writing objects: 100% (235/235), 225.69 KiB | 0 bytes/s, done.