Skip to content

Instantly share code, notes, and snippets.

Avatar

Danut Pralea danipralea

View GitHub Profile
View ObservableEventTransforms.swift
//
// ObservableEventTransforms.swift
//
// Created by Daniel Tartaglia on 9/22/18.
// Copyright © 2019 Daniel Tartaglia. MIT License.
//
import RxSwift
/**
@danipralea
danipralea / AuthorizationViewModel.swift
Last active Aug 28, 2019
login / register / social authentication
View AuthorizationViewModel.swift
//
// AuthorizationViewModel.swift
// Augsoma
//
// Created by Danut Pralea on 30/05/2019.
// Copyright © 2019 Augsoma. All rights reserved.
//
import Foundation
import RxCocoa
@danipralea
danipralea / clients.tsx
Created Aug 27, 2019
React function component + Hooks + MobX store
View clients.tsx
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import { inject, observer } from 'mobx-react';
import React, { useEffect } from 'react';
import { Client } from '../stores/clients/interface';
import { Typography } from '@material-ui/core';
const useStyles = makeStyles((theme: Theme) =>
View PlaceholderTextView.swift
import UIKit
import Foundation
@IBDesignable class PlaceholderTextView: UITextView, UITextViewDelegate
{
private let _placeholderColor: UIColor = UIColor(white: 0.78, alpha: 1)
private var _placeholderLabel: UILabel!
@IBInspectable var placeholder: String = "" {
didSet {