Skip to content

Instantly share code, notes, and snippets.

View luisdeol's full-sized avatar
🎯
Focusing

Luis Felipe de Oliveira luisdeol

🎯
Focusing
View GitHub Profile
@luisdeol
luisdeol / ModalYesNo.js
Created February 6, 2018 00:37
ModalYesNo.js
import React, { Component } from 'react'
import './Modal.css'
export class ModalYesNo extends Component {
constructor(props) {
super(props);
const modalStyle = {
height: this.props.height
}
@luisdeol
luisdeol / app.js
Created February 12, 2018 00:57
App js aprendizado-react
import React, { Component } from 'react';
import './App.css';
import NavBar from './components/navbar/navbar';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import Home from './components/home/home';
import About from './components/about/about';
class App extends Component {
render() {
return (
@luisdeol
luisdeol / navbar.js
Created February 12, 2018 00:58
NavBar Component aprendizado-react
import React from 'react';
import { Navbar, NavItem, Nav, FormGroup, FormControl, Button } from 'react-bootstrap';
import { Link, withRouter } from 'react-router-dom';
import './navbar.css';
const NavBar = (props) => {
return (<Navbar inverse collapseOnSelect>
<Navbar.Header>
<Navbar.Brand>
<a href="#brand">{props.brand}</a>
@luisdeol
luisdeol / home.js
Created February 12, 2018 00:59
Simple Home Component aprendizado-react
import React from 'react';
const Home = () => {
return (
<h1>Home</h1>
)
}
export default Home;
@luisdeol
luisdeol / Program.cs
Created February 14, 2018 11:32
Create value types, including structs and enum
using System;
namespace create_types
{
class Program
{
static void Main(string[] args)
{
var orderShipping = new OrderShipping("Wall Street", "Luis");
@luisdeol
luisdeol / Program.cs
Last active February 14, 2018 11:54
Generic types with constraint
using System;
namespace create_types
{
class Program
{
static void Main(string[] args)
{
var intNode = new Node<int>(1, "Integer node value");
//var stringNode = new Node<string>("throws a compile-time error because string is a reference type ", "String node value");
@luisdeol
luisdeol / Program.cs
Created February 14, 2018 12:04
Using constructors
using System;
using System.Globalization;
namespace create_types
{
class Program
{
static void Main(string[] args)
{
var product = new Product();
@luisdeol
luisdeol / Program.cs
Created February 14, 2018 12:16
Static variables and classes
using System;
using System.Globalization;
using System.Security.Cryptography.X509Certificates;
namespace create_types
{
class Program
{
static void Main(string[] args)
{
@luisdeol
luisdeol / Program.cs
Created February 14, 2018 23:07
Create optional and named parameters
using System;
using System.Globalization;
namespace create_types
{
class Program
{
static void Main(string[] args)
{
var product = new Product("luis", manufacturer:"not a default manufacturer");
@luisdeol
luisdeol / Program.cs
Created February 14, 2018 23:21
Create indexer
using System;
using System.Collections.Generic;
using System.Linq;
namespace create_types
{
class Program
{
static void Main(string[] args)
{