Skip to content

Instantly share code, notes, and snippets.

import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View } from 'react-native';
import Video from 'react-native-video';
import MediaControls, { PLAYER_STATES } from 'react-native-media-controls';
export default class WatchVideo extends Component {
videoPlayer;
constructor(props) {
super(props);
class Pokemon {
constructor(_pokemon) {
this.name = _pokemon.name || 'unknown';
this.power = _pokemon.power || 1;
this.attack = _pokemon.attack || 1;
this.defense = _pokemon.defense || 1;
}
toString() {
return `${this.name} - power: ${this.power}; attack: ${
this.attack
Verifying my Blockstack ID is secured with the address 1Cg8WtT1kYGwTaVL5qomrRAnKK9rgMkefh https://explorer.blockstack.org/address/1Cg8WtT1kYGwTaVL5qomrRAnKK9rgMkefh
@dancomanlive
dancomanlive / active-record-migration-expert.md
Created April 14, 2016 08:01 — forked from pyk/active-record-migration-expert.md
become active record migration expert (Rails 4.0.2)

become active record migration expert (Rails 4.0.2)

workflow:

create model

$ rails g model NameOfModel
    invoke  active_record
    create    db/migrate/YYYYMMDDHHMMSS_create_name_of_models.rb