Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 os | |
from datetime import datetime | |
import pandas as pd | |
from bs4 import BeautifulSoup | |
from tqdm.notebook import tqdm | |
def parse_crunchbase_html(soup: BeautifulSoup) -> pd.DataFrame: | |
""" |
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 os | |
import requests | |
import time | |
import logging | |
import aiohttp | |
import asyncio | |
class ScraperAPI: | |
def __init__( | |
self, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
struct RotationGestureExample: View { | |
@State var rectangleRotationAngle: Angle = .zero | |
var body: some View { | |
// DragGesture creation | |
let rotationGesture = RotationGesture() | |
// Rotation angle recalculation for the rectangle | |
.onChanged { value in | |
self.rectangleRotationAngle = value | |
} |
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
struct MagnificationGestureExample: View { | |
@State var rectangleScaleEffect: CGFloat = CGFloat(1) | |
var body: some View { | |
// MagnificationGesture creation | |
let magnificationGesture = MagnificationGesture() | |
// Scale effect recalculation for the rectangle | |
.onChanged { value in | |
self.rectangleScaleEffect = value | |
} |
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
struct DragGestureExample: View { | |
@State var rectangleOffset: CGSize = .zero | |
var body: some View { | |
// DragGesture creation | |
let dragGesture = DragGesture() | |
// When drag location is changed we recalculate offset for the rectangle | |
.onChanged { value in | |
self.rectangleOffset = value.translation | |
} |
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
struct LongPressGestureExample: View { | |
@State var rectangleColor = Color(.green) | |
var body: some View { | |
// LongPressGesture creation | |
// Gesture will be handled only if if takes at least 2 seconds | |
let longPressGesture = LongPressGesture(minimumDuration: 2, maximumDistance: 10) | |
.onEnded { _ in | |
if self.rectangleColor == .red { | |
self.rectangleColor = .green |
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
struct TapGestureExample: View { | |
@State var rectangleColor = Color(.green) | |
var body: some View { | |
// TapGesture creation | |
let tapGesture = TapGesture() | |
// Change color when tap ended | |
.onEnded { _ in | |
if self.rectangleColor == .red { | |
self.rectangleColor = .green |
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
struct RotationGestureExample: View { | |
@State var rectangleRotationAngle: Angle = .zero | |
var body: some View { | |
// Создаем DragGesture | |
let rotationGesture = RotationGesture() | |
// Изменяем угол наклона прямоугольника | |
.onChanged { value in | |
self.rectangleRotationAngle = value | |
} |
NewerOlder