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> | |
<head> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet"> | |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | |
<title>Performing Maintenance</title> | |
<style type="text/css"> | |
body { | |
text-align: center; |
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
// HTML | |
<button data-tooltip="example">Example</button> | |
// CSS | |
[data-tooltip] { | |
position: relative; | |
z-index: 2; | |
cursor: pointer; | |
} |
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
const GoogleMapsLoader = require('google-maps'); | |
GoogleMapsLoader.KEY = '<KEY>'; | |
GoogleMapsLoader.LANGUAGE = 'en'; | |
GoogleMapsLoader.REGION = 'DE'; | |
GoogleMapsLoader.VERSION = '1'; | |
GoogleMapsLoader.LIBRARIES = ['geometry', 'places']; | |
// init the map | |
GoogleMapsLoader.load(function(google) { | |
const id = document.getElementById('googleMap'); |
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
Client | |
# create public key | |
ssh-keygen | |
# copy public key | |
pbcopy < ~/.ssh/id_rsa.pub | |
Server: | |
#install openssh | |
sudo apt install openssh-server |
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
/* lightbox css */ | |
.lightbox { | |
display: none; | |
position: fixed; | |
z-index: 999; | |
width: 100%; | |
height: 100%; | |
text-align: center; | |
top: 0; |
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 | |
// open connection | |
$con = mysqli_connect('host', 'user', 'pass', 'db'); | |
if (!$con) { | |
die('Could not connect: ' . mysqli_error($con)); | |
} | |
// get post data | |
$data = json_decode(file_get_contents('php://input'), 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
// JS | |
function request() { | |
const xhr = new XMLHttpRequest(); | |
xhr.onreadystatechange = function() { | |
if (xhr.readyState == XMLHttpRequest.DONE ) { | |
console.log("xhr response", xhr.response) | |
if (xhr.status == 200) { // success | |
} |
NewerOlder