Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Hire me now

Dan Coman dancomanlive

💭
Hire me now
View GitHub Profile
View RNVideo
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);
View gist:bd6f164d24a49d68002f014a9f82a383
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
View gist:5d905a997c6b6abe1893dc676ca254b1
Verifying my Blockstack ID is secured with the address 1Cg8WtT1kYGwTaVL5qomrRAnKK9rgMkefh https://explorer.blockstack.org/address/1Cg8WtT1kYGwTaVL5qomrRAnKK9rgMkefh
@dancomanlive
dancomanlive / active-record-migration-expert.md
Created Apr 14, 2016 — forked from pyk/active-record-migration-expert.md
become active record migration expert (Rails 4.0.2)
View active-record-migration-expert.md

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
You can’t perform that action at this time.