Skip to content

Instantly share code, notes, and snippets.

Avatar

Reginaldo Junior reginaldojunior

View GitHub Profile
View acoustic-wave.cu
%%cu
#include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include <time.h>
#include <sys/time.h>
#include <assert.h>
#define DT 0.0070710676f // delta t
View feedforward.py
from matrix import Matrix
import math
class RedeNeural():
nodes_input = []
nodes_hidden = []
nodes_output = []
bias_in_to_hidden = []
bias_hidden_to_output = []
weight_in_to_hidden = []
View matrix.py
import random
import numpy as np
import math
class Matrix():
rows = 0
cols = 0
data = []
def create_matrix(self, rows, cols):
View mlp.r
# Primeiro vamos implementar uma função de ativação
funcao.ativacao <- function(v){
# Função logística
y <- 1 / (1 + exp(-v))
return(y)
}
# Vamos também precisar da derivada da função de ativação
@reginaldojunior
reginaldojunior / spotify-tracks-to-google-music-tracks.py
Created Dec 17, 2020 — forked from sulianov/spotify-tracks-to-google-music-tracks.py
Using Selenium+Python sign in to Spotify, grab liked tracks, sign in to Google Music, add Spotify tracks if missing.
View spotify-tracks-to-google-music-tracks.py
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
driver.implicitly_wait(10)
#open spotify
driver.get('https://open.spotify.com/collection/tracks')
View example.json
{
"_id":{
"$oid":"5a299c91ad921d6f048f7cdd"
},
"indicadorAssinado":false,
"motivoConfInstSup":null,
"codSituacaoFiliacaoAtual":1,
"dataPedido":{
"date":"2017-11-01 00:00:00.000000",
"timezone_type":3,
@reginaldojunior
reginaldojunior / comandos.txt
Last active Aug 12, 2019
configurando e instalando ruby
View comandos.txt
# instalar o rbenv
cd ~
rm -rf .rbenv/
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
source ~/.bashrc
View HelloWorld.vue
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<h2>{{ name }}</h2>
</div>
</template>
<script>
export default {
name: 'HelloWorld',
View ComponentImportComponent.vue
<script>
import Component from 'path/Component'
export default {
name: 'price-table',
data () {
return {
table: '',
tables: []
}