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
/** | |
* Plugin for Loading urls eg. href-attribute from children of an Element | |
* may be to get all Links from a Navigation | |
* | |
* @copyright tomasiMEDIA 2013 | |
* @author Dominik Tomasi | |
* @date 09.10.13 | |
* | |
*/ |
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
/** | |
* Global function for Counting length of an Object | |
* @copyright tomasiMEDIA 2013 | |
* @author Dominik Tomasi | |
* @date 09.10.13 | |
*/ | |
(function($,window){ | |
$.fn.objectLength = 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
/** | |
* JQuery Plugin ContentLoader | |
* @copyright tomasiMEDIA 2013 | |
* @author Dominik Tomasi | |
* @date 09.10.13 | |
*/ | |
(function($,window){ | |
$.ContentLoader.defaultOptions = { |
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 | |
/** | |
* Timer vor Testing PHP-Scripts | |
* @copyright tomasiMEDIA 2013 | |
* @author Dominik Tomasi | |
* @date 09.12.13 | |
* | |
* usage: | |
* Timer::start(); |
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 Plugin ToolTip | |
* @copyright tomasiMEDIA 2013 | |
* @author Dominik Tomasi | |
* @date 27.12.13 | |
*/ | |
var ToolTipPlugin = { |
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
/** | |
* Vorlage für Klassenaufbau mit Vererbung in Javascript | |
* @constructor | |
*/ | |
/** | |
* Define Class ParentClass | |
* @constructor | |
*/ | |
function ParentClass() { |
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
## Create disk image | |
## | |
## 1. Boot from a liveCD or liveUSB. | |
## 2. Make sure no partitions are mounted from the source hard drive. | |
## 3. Mount the external HD | |
## 4. Backup the drive. | |
dd if=/dev/hda conv=sync,noerror bs=64K | gzip -c > /mnt/sda1/hda.img.gz | |
## Restore the Disk |
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
server { | |
listen 80; | |
server_name localhost; | |
root /Users/YOUR_USERNAME/Sites; | |
access_log /Library/Logs/default.access.log main; | |
location / { | |
include /usr/local/etc/nginx/conf.d/php-fpm; | |
} |
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
Date.prototype.getWeek = function() { | |
var jan4th = new Date(this.getFullYear(),0,4); | |
return Math.ceil((((this - jan4th) / 86400000) + jan4th.getDay()+1)/7); | |
} | |
var now = new Date(); | |
var weekNumber = now.getWeek(); | |
console.log(weekNumber); |
OlderNewer