Skip to content

CodeYZ.com

All about develop, data science and machine learning
  • GitHub
  • Facebook
  • Home
  • C++
  • Python
  • GoLang
  • Java
    • Spring Boot
    • Java Swing
  • Kotlin
  • JavaScript
  • Fundamentals
    • Algorithms
  • Useful

Loading initial data in Django migrations using fixtures

Django

Loading initial data in Django migrations using fixtures

Author : Atom Date : April 19, 2020 Comment : No Comments

It’s sometimes useful to pr-populate your database with hard-coded data when you’re first setting up an app. You can provide initial data with fixtures.

Category : Python Django, Fixtures, Migrations Read More
Python

How to sort a Python dict by value

Author : Atom Date : April 14, 2020 Comment : No Comments

How to sort a Python dict by value  (== get a representation sorted by value)

Category : Python dict, sort, Tips and Tricks Read More
JavaScript

Open link in new window/tab on JavaScript

Author : Atom Date : April 10, 2020 Comment : No Comments

The open() method opens a new browser window, or a new tab, depending on your browser settings and the parameter values.

Category : JavaScript Tips and Tricks Read More

Java Keywords

Author : Atom Date : April 8, 2020 Comment : 1 Comment

Java keywords are also known as reserved words. Keywords are particular words which acts as a key to a code. These are predefined words by Java so it cannot be used as a variable or object name.

Category : Java keywords Read More
Python

Measure the execution time of small bits of Python code

Author : Atom Date : April 7, 2020 Comment : No Comments

Measure the execution time of small bits of Python code with the “timeit” module

Category : Python Python, Tips and Tricks Read More
Python

Function argument unpacking in Python

Author : Atom Date : April 7, 2020 Comment : No Comments

Sometimes “just a code snippet” isn’t enough to explain a cool Python feature and where to use it.

Category : Python Python, Tips and Tricks Read More
Polya’s Problem Solving Techniques

Polya’s Problem Solving Techniques

Author : Atom Date : April 5, 2020 Comment : No Comments

In 1945 George Polya published the book How To Solve It which quickly became his most prized publication. It sold over one million copies and has been translated into 17 languages. In this book he identifies four basic principles of problem solving.

Category : Useful Solving Techniques Read More
Python

Merging two dicts in Python 3.5+ with a single expression

Author : Atom Date : April 5, 2020 Comment : No Comments

In these examples, Python merges dictionary keys in the order listed in the expression, overwriting duplicates from left to right.

Category : Python Python, Tips and Tricks Read More
Java

Safe string comparison in Java

Author : Atom Date : April 5, 2020 Comment : No Comments

A very common situation occur when we try to compare a String variable and a string literal.

Category : Java NullPointerException Read More
  • Next Page »

Search

Archives

  • December 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • May 2022
  • August 2021
  • January 2021
  • July 2020
  • May 2020
  • April 2020
  1. Nickolay on Filtering Django REST framework using IN operator or pass list of valuesJuly 27, 2020

    Nice bro!

  2. Jeremyviabe on Java KeywordsApril 10, 2020

    Hi! Why goto not used in Java?

  • Privacy Policy
© 2025 CodeYZ.com |