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 | |
| $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
| <?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
| <!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
| 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
| let gist = 'GitHub' | |
| object = new Object(); | |
| object.ID = 1 | |
| object.name = 'me' | |
| object.gist = gist | |
| //{ | |
| // "ID": 1, | |
| // "name": "me", |
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; | |
| // Set timezone | |
| date_default_timezone_set('Europe/Warsaw'); | |
| $select = file_get_contents('php://input'); | |
| $decode = json_decode($select, 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
| new Date() //Date Fri Dec 06 2019 19:37:31 GMT+0000 | |
| new Date().toLocaleTimeString() //"19:36:29" | |
| new Date().toLocaleDateString() //"6.12.2019" | |
| new Date().toLocaleTimeString('en-US') //"7:39:12 PM" | |
| new Date().toLocaleTimeString('en-US' ,{hour: '2-digit'}) //"7 PM" |
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
| .newEvent{ | |
| background-color:blue; | |
| width:20px; | |
| height:20px; | |
| display:block; | |
| position:absolute; | |
| } | |
| #hours{ | |
| background-color: rebeccapurple; |
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 java.net.URL | |
| import java.lang.Thread as Thread1 | |
| Thread1 { | |
| var a = URL("http://hmkcode-api.appspot.com/rest/api/hello/Android").readText() | |
| runOnUiThread { | |
| textView4.text = a | |
| } | |
| }.start() |