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
assume ss:stos1, ds:dane | |
dane segment | |
parsed_arguments db 127 dup(?) | |
RSA db 16 dup(?) | |
length_of_args db 50 dup(0) | |
table db 153 dup(0) | |
beginoftable db "+--[ RSA 1024]----+$" | |
endoftable db "+-----------------+$" | |
LOG db "Lack of arguments$" | |
TMG db "Too many arguments$" |
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
#include <iostream> | |
#include <queue> | |
#define M 100000 //extremely LARGE value, hardly INF, great af | |
bool * Gekko (int docks[], int n, int m){ //some cormen problem | |
bool * res = new bool[n-1]; | |
int b = docks[0]; | |
for (int i=0; i<n-1; i++){ | |
b+=docks[i+1]; |
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
isPrime(x) { | |
if (x === 1) return false; | |
if (x % 2 === 0) return (x === 2); | |
const max = Math.sqrt(x); | |
for (let i = 3; i <= max; i += 2) { | |
if (x % i === 0) return false; | |
} | |
return true; | |
} |
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
shouldAskForOpinion(sessions) { | |
const pause = 30 * 60 * 1000; | |
const day = 24 * 60 * 60 * 1000; | |
const now = Date.now(); | |
const today = Math.floor(now / day); | |
const visited = []; | |
for (let i = 0; i < 3; i++) | |
visited[i] = 0; //numbr of visitations 0 - today, 1 - day ago, 2 - 2 days ago | |
const filteredSessions = sessions | |
.map(date => Date.parse(date)) |
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
Expo XDE (google: `install expo XDE`) | |
Yarn (powinniscie mieć. Jak ktoś ma tylko npm to `npm i –g yarn`) | |
`npm -g node` Node,js | |
Logujecie się do Expo na telefonie i komputerze | |
`git clone https://github.com/osdnk/sfi-workshop.git` |
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 React, { Component } from 'react'; | |
import { Animated, Dimensions, StyleSheet, Text, View, Image } from 'react-native'; | |
import { | |
PanGestureHandler, | |
TapGestureHandler, | |
PinchGestureHandler, | |
ScrollView, | |
State, | |
FlatList | |
} from 'react-native-gesture-handler'; |
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 React, { Component } from 'react'; | |
import { Animated, Dimensions, StyleSheet, Text, View, Image } from 'react-native'; | |
import { | |
PanGestureHandler, | |
TapGestureHandler, | |
PinchGestureHandler, | |
ScrollView, | |
State, | |
FlatList | |
} from 'react-native-gesture-handler'; |
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 React from 'react'; | |
import { LongPressGestureHandler, TapGestureHandler, State } from 'react-native-gesture-handler'; | |
import { Text, Alert } from 'react-native'; | |
class MainScreen extends React.Component { | |
onTapGesture(event) { | |
if(event.nativeEvent.state === State.ACTIVE) { | |
Alert.alert("Tapped!"); | |
} | |
} |
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 React, { Component } from 'react'; | |
import { Animated, StyleSheet, Text, View, Dimensions } from 'react-native'; | |
import { | |
PanGestureHandler, | |
NativeViewGestureHandler, | |
State, | |
TapGestureHandler, | |
RectButton | |
} from 'react-native-gesture-handler'; |
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 React, { Component } from 'react'; | |
import { Animated, StyleSheet, Text, View, Dimensions, FlatList, TextInput } from 'react-native'; | |
import { | |
PanGestureHandler, | |
NativeViewGestureHandler, | |
State, | |
TapGestureHandler, | |
RectButton | |
} from 'react-native-gesture-handler'; |
OlderNewer