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
var Calendar = tui.Calendar; | |
var calendar = new Calendar('#calendar', { | |
defaultView: 'week', | |
taskView: false, | |
week: { | |
workweek: true // show only 5 days except for weekend | |
} | |
}); | |
calendar.on('beforeCreateSchedule', function(event) { |
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
<!DOCTYPE html> | |
<html lang="pl" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link rel="stylesheet" href="https://npmcdn.com/[email protected]/dist/flatpickr.min.css"> | |
<link rel="stylesheet" type="text/css" href="https://npmcdn.com/[email protected]/dist/themes/confetti.css"> | |
<script src="https://npmcdn.com/[email protected]/dist/flatpickr.min.js" charset="utf-8"></script> | |
<script src="https://npmcdn.com/[email protected]/dist/l10n/pl.js"></script> | |
</head> |
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
<?php | |
include_once $_SERVER['DOCUMENT_ROOT'] . '/wp-config.php'; | |
$select = file_get_contents('php://input'); | |
if(empty($select)) { | |
echo wp_generate_uuid4(); | |
}else{ | |
wp_is_uuid( $select, 4 ); | |
echo 'UUID is correct'; |
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
<?php | |
$json = file_get_contents('php://input'); | |
$obj = json_decode($json, true); | |
var_dump($obj); |
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
//jQuery edition | |
jQuery("#login_button").click(function(){ | |
var email = document.getElementById("username").value; | |
var pass = document.getElementById("Pass").value; | |
var secu = document.getElementById("security").value; | |
jQuery.ajax({ | |
type: 'POST', | |
url: 'login.php', | |
data: {username: email, password: pass, security: secu}, |
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
<?php $myposts = get_posts( $args ); ?> | |
<form id="formName"> | |
<?php | |
foreach ( $myposts as $service ) { | |
$service_lenght = get_post_meta($service->ID, 'Lenght'); | |
?> | |
<label> | |
<h1><?php echo $service->post_title ?> </h1> | |
<img src="<?php get_the_post_thumbnail_url($service->ID); ?>" /> |
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
<?php | |
include_once $_SERVER['DOCUMENT_ROOT'] . '/wp-config.php'; | |
global $wpdb; | |
$wpdb->get_var('Single row'); | |
$result = $wpdb->get_results('Multiple rows'); | |
foreach ( $result as $row ) | |
{ |
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
session[:key] = 'value' | |
request.session['key'] |
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
<input type="email" name="user"> | |
<input type="password" name="key"> | |
<input name="submit" type="submit" onclick="login()"> |
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
//you should replace ä with any non-usable character. | |
test = ` | |
ä | |
. | |
heloo | |
ä | |
`.replace(/(\s{4})/, "START") | |
.replace(".", "DISPLAY") | |
.replace(/(\s{2})/, "STOP") | |
.replace(/ä/g, "") |