Posts by gsoares • 383 points
5 posts
-
2
votes1
answer28
viewsQ: (VUEJS) Access the router query before injecting the services into vuejs
(VUEJS) You can access the information that is sent by query on the router before injecting the services of an application? For example: import Vue from 'vue'; import App from './App.vue'; import…
-
3
votes6
answers19845
viewsA: How to change the name of the pandas dataframe column?
You can name the columns as soon as calling the function read_csv pandas: df = pd.read_csv('dados.csv', delimiter=';', encoding='iso-8859-1', usecols=['nome_completo', 'idade']) besides naming, can…
-
14
votes1
answer1711
viewsQ: Is there a pointer in Javascript?
I was programming and I found something interesting but I was left with doubt in a situation. I created an object and referenced it so: a = {a:1,b:2} And then I created another object and assigned…
-
7
votes2
answers1052
viewsQ: What is the difference between foreach and map in Javascript?
const arr = [1, 2, 3, 4, 5] arr.forEach(i => i); arr.map(i => i); I’d like to understand the difference between the methods forEach and map in Javascript.…
-
1
votes0
answers26
viewsQ: How to create a service structure in vuejs using typescript and Generics?
Usually when I create a Vuejs + Typescript project I like to split the Services by creating methods that perform post requests, update, get and delete but I noticed that I was repeating a lot of…