This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doubleiter(nums: number[], target: number): number[] { | |
for(let i = 0; i<nums.length; i++){ | |
for(let j = i+1; j<nums.length; j++){ | |
} | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs") | |
const puppeteer = require("puppeteer") | |
// First level config | |
const project = "atelier/05" | |
const count = 50 | |
// Second level config | |
const folder = `screenshots/${project}/` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from datetime import timedelta | |
class ProgressList: | |
def __init__(self, data, step=1, description=None, eta=True): | |
self.data = data | |
self.total = len(data) | |
self.current_index = 0 | |
self.step = step # Step interval for printing progress | |
self.start_time = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you change some field's choice, django will not migrate the value at | |
# the database level. You need to do it. | |
# | |
# Generate an empty migration: | |
# > python manage.py makemigrations --empty <app_name> | |
# | |
# This will migration the value in the `state` field from `new` to `new_b` | |
# (and back if necessary). | |
from django.db import migrations |
OlderNewer