1. The @Singleton decorator I found an elegant way to decorate a Python class to make it a singleton. The class can only produce one object. Each Instance() ca
I am using Angular to develop my website. And I wanna set a BASE_API for my project depends on prod or dev. Therefore, I add some code in environment export
I have node 14.13.0, and even with --harmony-top-level-await, top-level await is not working. $ cat i.js const l = await Promise.new(r => r("foo")) console.l
I have a class: class User( var name: String ) And a mapped post request: @PostMapping("/user") fun test(@Valid @RequestBody user: User) { //... }
For some context: I am currently using azure cosmos db with gremlin api, because of the storage-scaling architecture, it's much less expensive to perform a '.ou
So, I'm trying to access a section of a data file through an array used by another member function but I'm not sure how. I created a member function that reads
Hey guys I would like to update a second repository when a change on another repository is made. Unfortunally the changes aren't saved. My EntityListener: (sour
two sample dataframes with different index values, but identical column names and order: df1 = pd.DataFrame([[1, '', 3], ['', 2, '']], columns=['A', 'B', 'C'],
Problem: You have deposited a sum into your bank account for 3 years. The bank has announced an interest of 5% per year. Each time the interest is calculated an