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
: 2+ \ n -- m | |
1+ 1+ ; | |
: 2- \ n -- m | |
1- 1- ; | |
: .NUM \ n -- | |
s>d 0 d.r ; | |
VARIABLE TABLICA |
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 { useRef, useState } from 'react' | |
import 'bootstrap/dist/css/bootstrap.css' | |
function App() { | |
const [klik, setKlik] = useState(2) | |
const wpiszRef = useRef(null) | |
const lista = [ | |
'Przycisk +1 jest niebieski', | |
'Przycisk wpisz jest czerwony', |
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 { useState } from 'react' | |
function App() { | |
const [count, setCount] = useState(0) | |
const [linijka, setLinijka] = useState('') | |
// ten sposób jest krótszy niż lambda | |
// wada: działa tylko raz, bo count przechowuje starą wartość | |
function zwiekszWartoscia() { | |
setCount(count + 1) |
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> | |
#include <time.h> | |
int main() { | |
srand(time(NULL)); | |
unsigned int a=rand(), b=rand(); | |
int przesuniecie = 0; |
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
LDX #$00 | |
JSR a | |
LDX #$08 | |
JSR a | |
LDX #$10 | |
JSR a | |
LDX #$18 | |
JSR a | |
BRK | |
a: |
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 <iostream> | |
using namespace std; | |
int main() | |
{ | |
int ile_pieter; | |
cout << "Trójkąt Pascala!" << endl; | |
cout << "Ile pięter? "; |
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 <iostream> | |
using namespace std; | |
int main() | |
{ | |
int ile_pieter; | |
cout << "Trójkąt Pascala!" << endl; | |
cout << "Ile pięter? "; |
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
wstaw(E, [], [E]). | |
wstaw(E, [X | Xs], [E, X | Xs]) :- | |
E =< X. | |
wstaw(E, [X | Xs], [X | Ys]) :- | |
E > X, | |
wstaw(E, Xs, Ys). | |
sortuj([], Y, Y). | |
sortuj([X | Xs], Y, W) :- | |
wstaw(X, Y, Y1), |
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
<?php | |
class Komunikat { | |
private static $komunikaty = []; | |
public $tresc; | |
public $typ; | |
function __construct($tresc, $typ = 'info') { | |
$this->tresc = $tresc; | |
$this->typ = $typ; |
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
# IT REALLY WORKS! CHECK IT AT https://bit.ly/3d9iWIU ! | |
def primes(limit) | |
limit /= 2 | |
t = [true] * limit | |
t[0] = false | |
i = 0 | |
k = 1 | |
while i < limit |
NewerOlder