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 selects = document.getElementsByTagName('select'); | |
for (i = 0; i < selects.length; i++) { | |
if (!$(selects[i]).val()) { | |
$(selects[i]).val("0"); | |
listenOnChangeOfSelectInputs($(selects[i])); | |
} | |
} | |
$("#assign_form_PRICE_save").click(); |
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
## enable vhosts | |
sudo vim /etc/apache/httpd.conf | |
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so | |
## create vhost and set directory | |
sudo vim /etc/apache/extra/httpd-vhosts.conf | |
<VirtualHost *:80 > |
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
some gist for testing | |
this is an update |
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
<!-- source: http://tutorialzine.com/2014/07/css-inline-help-tips/ --> | |
<div class="help-tip"> | |
<p>This is the inline help tip! It can contain all kinds of HTML. Style it as you please.</p> | |
</div> | |
.help-tip{ | |
position: absolute; | |
top: 18px; | |
right: 18px; |
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 | |
// http://php.net/manual/de/function.date.php | |
// Zeilenumbruch | |
$b = "\n"; | |
$bb = "\n\n"; | |
$bbb = "\n\n\n"; |
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
Sicherheit RaspberryPi | |
1. | |
Default-User "pi" umbenennen | |
usermod --move-home --login martin --home /home/martin pi | |
2. | |
root-login verbieten | |
sudo vi /etc/ssh/sshd_config | |
PermitRootLogin no |
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
// Define a class like this | |
function Person(name, gender){ | |
// Add object properties like this | |
this.name = name; | |
this.gender = gender; | |
} | |
// Add methods like this. All Person objects will be able to invoke this | |
Person.prototype.speak = function(){ |
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
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |
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
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |