Skip to content

Instantly share code, notes, and snippets.

View tyte's full-sized avatar
🐿️
Cracking coding nuts

Ieva Sargautyte tyte

🐿️
Cracking coding nuts
View GitHub Profile
@tyte
tyte / js-word-count.html
Created April 15, 2022 09:05
JS word count in textarea
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Character & Word Count</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
margin: 0 auto;
@tyte
tyte / js-character-count.html
Last active April 11, 2022 16:03
JS Character count in textarea
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Character Count</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
margin: 0 auto;
@tyte
tyte / js-toggle-multiple-passwords-visibility-2-forms.html
Created April 9, 2022 11:04
JS toggle multiple passwords visibility - 2 forms
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Password Visibility - Multiple Forms</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
margin: 0 auto;
@tyte
tyte / js-toggle-multiple-passwords-visibility.html
Created April 6, 2022 10:02
JS toggle multiple passwords visibility
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Password Visibility - Multiple Fields</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
margin: 0 auto;
@tyte
tyte / js-toggle-password-visibility.html
Last active April 4, 2022 15:54
JS - toggle password visibility
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Password Visibility</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
margin: 0 auto;
@tyte
tyte / my.cnf
Created April 8, 2019 13:49 — forked from oinume/my.cnf
my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
@tyte
tyte / .htaccess
Created March 7, 2019 11:52
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/