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

Tips and Tricks

Representing a DAG graph in JSON

Representing a DAG graph in JSON

Author : Atom Date : May 17, 2020 Comment : No Comments

Since the DAG’s edges hold data, they better have their own identifiers, just like the nodes.

Category : Development DAG, graph, JSON, Tips and Tricks Read More

Calculating Page Load Time In JavaScript

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

Navigation timing makes it easy to measure the real-world speed and performance of websites and locate problem areas that need tuning.

Category : JavaScript Tips and Tricks Read More
Django

How to check a user’s membership in a group in a template

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

How in Django template check is user belong to group. Example.

Category : Python Django, Tips and Tricks Read More
Python

How to delete file or folder in Python

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

There are several ways delete file or folder in Python

Category : Python Tips and Tricks Read More
Python

How get the full path of the current file’s directory in Python

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

There are several ways to get the path to the file or directory where the Python file is located.

Category : Python Tips and Tricks 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
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
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

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 |