If you don't have homebrew installed - get homebrew here
Then run: brew install elasticsearch
Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml
.
import 'package:flutter/widgets.dart'; | |
/// Conditionally wrap a subtree with a parent widget without breaking the code tree. | |
/// | |
/// [condition]: the condition depending on which the subtree [child] is wrapped with the parent. | |
/// [child]: The subtree that should always be build. | |
/// [conditionalBuilder]: builds the parent with the subtree [child]. | |
/// | |
/// ___________ | |
/// Usage: |
import 'package:flutter/material.dart'; | |
import 'package:workozy_app/widgets/helper/stream_error_widget.dart'; | |
import 'package:workozy_app/widgets/helper/stream_loading_widget.dart'; | |
typedef OnData<T> = Widget Function(T data); | |
typedef OnError = Widget Function(dynamic e); | |
typedef OnLoading = Widget Function(); | |
class MyStreamBuilder<T> extends StatelessWidget { | |
MyStreamBuilder({ |
import Foundation | |
import os.log | |
public protocol StateMachineDelegate: class { | |
associatedtype StateType: Hashable | |
/// Invoked before a transition is about to occur, allowing you to reject even a valid transition. Defaults to true | |
/// | |
/// - Parameters: |
/** | |
* Crop a image taking a recerence a view parent like a frame, and a view child like final | |
* reference | |
* | |
* @param bitmap image to crop | |
* @param frame where the image is set it | |
* @param reference frame to take reference for crop the image | |
* @return image already cropped | |
*/ | |
public static byte[] cropImage(Bitmap bitmap, View frame, View reference){ |
import android.view.animation.Interpolator; | |
import static java.lang.Math.*; | |
public class BetterBounceInterpolator implements Interpolator { | |
private int mBounces; | |
private double mEnergy; | |
/** Have more control over how to bounce your values. | |
* |
import Foundation | |
import XCTest | |
////////////////////////////////////////////////////////////////////// | |
// Preferences | |
protocol UserDefaults { | |
func stringForKey(key: String) -> String | |
} |
If you don't have homebrew installed - get homebrew here
Then run: brew install elasticsearch
Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml
.
Keystone comes completely set up to install on Heroku in a couple of steps.
1. Sign up for a Heroku account and install the Heroku Toolbelt.
Log in with it and you're ready to begin. Heroku uses git to deploy a new site, so with that in mind:
2. Create a new repository on Github and then clone it.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.