Skip to content

Instantly share code, notes, and snippets.

View RSchneider94's full-sized avatar

Rodrigo Schneider RSchneider94

  • WithClutch
  • Itajaí, Santa Catarina, Brazil
  • 04:16 (UTC -03:00)
View GitHub Profile
import React, { useRef, useLayoutEffect } from 'react';
import * as am4core from '@amcharts/amcharts4/core';
import * as am4charts from '@amcharts/amcharts4/charts';
import am4themes_animated from '@amcharts/amcharts4/themes/animated';
import am4lang_pt_BR from '@amcharts/amcharts4/lang/pt_BR';
import * as am4plugins_rangeSelector from '@amcharts/amcharts4/plugins/rangeSelector';
am4core.useTheme(am4themes_animated);
am4core.options.autoDispose = true;
@RSchneider94
RSchneider94 / cat.rb
Last active July 16, 2018 15:27
Cat Ruby Programm
class Pet
attr_reader :color, :breed
attr_accessor :name
def initialize(color, breed)
@color = color
@breed = breed
@hungry = true
end
def feed(food)
@RSchneider94
RSchneider94 / fav_foods.rb
Last active July 12, 2018 15:29
Favorite Foods Program Ruby
def fav_foods
food_array = []
3.times do
puts 'Please, type the name of a food that you really like:'
usr_fav_food = gets.chomp
food_array.push(usr_fav_food)
puts "Your favorite food \"#{usr_fav_food}\" was added to the list!"
end
puts "Here is your favorite foods list: #{food_array.join(', ')}"
@RSchneider94
RSchneider94 / program4.rb
Created July 12, 2018 14:37
My fourth Ruby on Rails Program
(0..10).each do |n|
p "the new number is #{n}"
end
@RSchneider94
RSchneider94 / program3.rb
Created July 12, 2018 14:37
My third Ruby on Rails Program
def choose_option
puts 'Do you like programming? Please, answer with "yes", "no" or "maybe":'
usr_option = gets.chomp
case usr_option.downcase
when 'yes'
puts 'Great!'
when 'no'
puts 'Unbelievable!'
when 'maybe'
puts 'At least you are giving it a chance!'
@RSchneider94
RSchneider94 / program2.rb
Created July 12, 2018 14:36
My second Ruby on Rails Program
if true
puts 'true'
else
puts 'false'
end
@RSchneider94
RSchneider94 / program.rb
Created July 11, 2018 17:45
My first Ruby on Rails Program
# A simple greeting method! :)
def greeting
puts "Please enter your name: ";
usrName = gets.chomp;
puts "Hello" + " " + usrName;
end
# Call the method
greeting;
@RSchneider94
RSchneider94 / work.js
Last active July 9, 2018 15:24
My second JS - CareerFoundry Web Development Course
let myWorkList = [
{
title: 'First Project',
thumb: 'https://placeimg.com/200/200/tech'
},
{
title: 'Second Project',
thumb: 'https://placeimg.com/200/200/tech'
},
{
@RSchneider94
RSchneider94 / scripts.js
Last active July 10, 2018 15:03
My first JS - CareerFoundry Web Development Course
$(document).ready(function() {
// Tooltip
$(function () {
$('#item1').tooltip();
});
// Smooth Scroll
var $root = $('html, body');
$('.navbar a').click(function () {
var href = $.attr(this, 'href');
@RSchneider94
RSchneider94 / styles.css
Last active July 10, 2018 15:03
Main Stylesheet - CareerFoundry Web Development Course
/* styles.css
*
* Main layout for my Portfolio Website.
*
*/
/* ============ General Settings ============ */
body {
position: relative;
padding-top: 56px;