You need to provide some classes and decorators yourself to maintain the same style as [email protected].
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}↓
| private lateinit var binding: ActivityMainBinding | |
| binding = DataBindingUtil.setContentView(this, R.layout.activity_main) | |
| // Set view model | |
| binding.viewModel = viewModel | |
| // Execute pending binding data | |
| binding.executePendingBindings() | |
| // View model | |
| val viewModel = ViewModelProviders.of(this, viewModelFactory).get(MainViewModel::class.java) |
| http://cronus.allowed.org works for me, 2018.1.6 |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
You need to provide some classes and decorators yourself to maintain the same style as [email protected].
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}↓
| /** | |
| * Instagram web unfollow script | |
| * | |
| * WHAT IS IT? | |
| * A script to unfollow people in the instagram website | |
| * | |
| * WHY? | |
| * I needed to clean my account so I quickly did this | |
| * | |
| * HOW TO USE: |
| ### This gist is a part of the NestJS Zero to Hero course on Udemy. | |
| ### https://www.udemy.com/course/nestjs-zero-to-hero/?referralCode=F672C0C701844DC91F4D | |
| To run PostgreSQL on Docker, run the following in your Terminal: | |
| docker run --name postgres-nest -p 5432:5432 -e POSTGRES_PASSWORD=postgres -d postgres |