Skip to content

Instantly share code, notes, and snippets.

View lenka21's full-sized avatar

Magdalena Szumna lenka21

View GitHub Profile
@lenka21
lenka21 / machine.js
Created April 24, 2023 07:51
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@lenka21
lenka21 / .bash_prompt.sh
Created January 12, 2016 10:03 — forked from noisy/.bash_prompt.sh
.bash_prompt.sh (support for git + virtualenv)
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@lenka21
lenka21 / index.html
Last active August 29, 2015 14:20
blink
<!DOCTYPE html>
<html>
<head lang="pl">
<meta charset="UTF-8">
<script src="main.js"></script>
<title>blink</title>
</head>
<body>
<mrugaj fq="200">Donec lobortis magna ac fringilla gravida. Aenean nec lobortis augue. Nunc a odio vel nisi gravida bibendum. Sed vel nisl erat. Aenean nec odio sed libero interdum elementum. Suspendisse potenti. Quisque non diam vitae justo sollicitudin facilisis at vel magna</mrugaj>
<h2>Lorem ipsum dolor sit amet.</h2>
@lenka21
lenka21 / index.html
Last active August 29, 2015 14:20
verbing
<!DOCTYPE html>
<html>
<head lang="pl">
<meta charset="UTF-8">
<script src="main.js"></script>
<title>verbing</title>
</head>
<body>
<h2>Werb: </h2><input id="verb">
<button onclick="verbing()">Run</button>
@lenka21
lenka21 / index.html
Last active August 29, 2015 14:20
Kalkulator
<!DOCTYPE html>
<html>
<head lang="pl">
<meta charset="UTF-8">
<script src="main.js"></script>
<title>kalkulator</title>
</head>
<body>
<input id="screen" placeholder="0" type="text">
<div>
@lenka21
lenka21 / index.html
Last active August 29, 2015 14:20
cięcie elementu
<!DOCTYPE html>
<html>
<head lang="pl">
<meta charset="UTF-8">
<script src="main.js"></script>
<title>slice element</title>
</head>
<body>
<h2>Wpisz element</h2><input id="data">
<h2>Wpisz parametr</h2><input id="n">
@lenka21
lenka21 / index.html
Last active August 29, 2015 14:20
dominanta
<!DOCTYPE html>
<html>
<head lang="pl">
<meta charset="UTF-8">
<script src="main.js"></script>
<title>most often</title>
</head>
<body>
<h2>Podaj elementy tablicy, oddzielone przecinkami</h2><input id="data">
<button onclick="often()">Run</button>
@lenka21
lenka21 / index.html
Last active August 29, 2015 14:20
Parzyste, nieparzyste
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<script src="main.js"></script>
<title>odd and even</title>
</head>
<body>
<h2>A</h2><input id="a" type="number">
<h2>B</h2><input id="b" type="number">
<html>
<head lang="pl">
<meta charset="UTF-8">
<title>silnia</title>
<script src="main.js"></script>
</head>
<body>
<h1>Podaj liczbe</h1>
<input id="n">
<button onclick="licz()">Licz silnie</button>
@lenka21
lenka21 / index.html
Created May 7, 2015 07:07
Reverse ciągu znaków
<!DOCTYPE html>
<html>
<head lang="pl">
<meta charset="UTF-8">
<title>zadanie</title>
<script src="main.js"></script>
</head>
<body>
<h1>Wpisz znaki</h1>
<input id="list">