This file contains 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
export const animatedScrollTo = (scrollValue: number, duration: number = 350): void => | |
{ | |
const value = Math.max(0, scrollValue); | |
const animationStart = performance.now(); | |
const currentScroll = window.pageYOffset; | |
const scrollDelta = value - currentScroll; | |
const update = (): void => | |
{ | |
const currentTimestamp = performance.now(); |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#define TAB_LENGTH 8 | |
// zadanie 4 | |
double max_value(double tab[]) { | |
double result = -1; | |
for (int i = 0; i < TAB_LENGTH; i++) { | |
double current_value = tab[i]; |
This file contains 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 { Platform, ActionSheetIOS } from 'react-native'; | |
import DocumentPicker from 'react-native-document-picker'; | |
import ImagePicker from 'react-native-image-picker'; | |
import RNFS from 'react-native-fs'; | |
type Captions = { | |
image: string, | |
document: string, | |
cancel: string, | |
title: string, |
This file contains 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
export default class Parallax { | |
elementsToAnimate = []; | |
// parseElements([HTMLElement, HTMLElement]) or parseElements([{element: HTMLElement, container: HTMLElement}]) | |
parseElements = normalizedList => { | |
this.elementsToAnimate = normalizedList.map(element => { | |
if (element instanceof HTMLElement) { | |
return { element, container: element.parentElement }; | |
} | |
return element; |