Skip to content

Instantly share code, notes, and snippets.

View JoseRFJuniorLLMs's full-sized avatar
🎯
Focusing

Jose RF Junior JoseRFJuniorLLMs

🎯
Focusing
View GitHub Profile
@JoseRFJuniorLLMs
JoseRFJuniorLLMs / movies.csv
Created November 5, 2019 04:09
Created on Cognitive Class Labs
We can't make this file beautiful and searchable because it's too large.
movieId,title,genres
1,Toy Story (1995),Adventure|Animation|Children|Comedy|Fantasy
2,Jumanji (1995),Adventure|Children|Fantasy
3,Grumpier Old Men (1995),Comedy|Romance
4,Waiting to Exhale (1995),Comedy|Drama|Romance
5,Father of the Bride Part II (1995),Comedy
6,Heat (1995),Action|Crime|Thriller
7,Sabrina (1995),Comedy|Romance
8,Tom and Huck (1995),Adventure|Children
9,Sudden Death (1995),Action
from pyspark import SparkConf
from pyspark.sql import SparkSession, functions as F
conf = SparkConf()
# opcional, mas seria bom definir a quantidade de memória RAM que o driver pode usar para
# um valor razoável (em relação ao tamanho do arquivo que queremos ler), para que não recebamos uma exceção do OOM
conf.set('spark.driver.memory', '6G')
# criar uma sessão de faísca(Spark) - nada pode ser feito sem isso:
import numpy as np
import matplotlib.pyplot as plt
class MotionModel():
def __init__(self, A, Q):
self.A = A
self.Q = Q
(m, _) = Q.shape
/*********
Rui Santos
Complete project details at https://randomnerdtutorials.com
*********/
#include <WiFi.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <Adafruit_BME280.h>
#include <Adafruit_Sensor.h>
package com.booksgames.loja.controllers;
import com.booksgames.loja.documents.Iris;
import com.booksgames.loja.documents.IrisType;
import com.booksgames.loja.services.IrisClassifierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import { Component, OnInit } from '@angular/core';
import {ActivatedRoute} from '@angular/router'
import {RestaurantsService} from '../restaurants/restaurants.service'
import {Restaurant} from '../restaurants/restaurant/restaurant.model'
@Component({
selector: 'mt-restaurant-detail',
templateUrl: './restaurant-detail.component.html'
@JoseRFJuniorLLMs
JoseRFJuniorLLMs / graph_gist_template.adoc
Created August 21, 2018 05:27 — forked from jexp/graph_gist_template.adoc
CHANGEME: GraphGist Template. Fork to make your own, view source to see instruction comments

REPLACEME: TITLE OF YOUR GRAPHGIST

Introduction

using System;
using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;
using UnityStandardAssets.Utility;
using Random = UnityEngine.Random;
namespace UnityStandardAssets.Characters.FirstPerson
{
[RequireComponent(typeof (CharacterController))]
[RequireComponent(typeof (AudioSource))]
@JoseRFJuniorLLMs
JoseRFJuniorLLMs / PlayerController.cs
Created April 3, 2018 04:58
PlayerController.cs
using UnityEngine;
using UnityEngine.AI;
public class PlayerController : MonoBehaviour {
//Variavel da Camera
public Camera cam;
public NavMeshAgent agent;
// Atualiza na hora que inicia o jogo
void Update () {
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraFollow : MonoBehaviour {
public float resetSpeed = 0.5f;
public float cameraSpeed = 0.3f;
public Bounds cameraBounds;