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
/** | |
* This file contains an implementation of an Axis Aligned Bounding Box Tree, by Eyal Shalev | |
* You can modify it and use it for your projects without any limitations. | |
* I only ask that: | |
* 1. You leave this message in the Code. | |
* 2. Drop me a message that you used it via: https://sourceforge.net/projects/javascripaabbtr/ | |
* | |
* This file will work as is with no requirements to include other files along-side it. | |
* | |
* See example usage in aabbTreeExample.html |
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
# | |
# Virtual Hosts | |
# | |
# If you want to maintain multiple domains/hostnames on your | |
# machine you can setup VirtualHost containers for them. Most configurations | |
# use only name-based virtual hosts so the server doesn't need to worry about | |
# IP addresses. This is indicated by the asterisks in the directives below. | |
# | |
# Please see the documentation at | |
# <URL:http://httpd.apache.org/docs/2.2/vhosts/> |
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
# svn status --verbose Lists all files and their revisions | |
# sed "s/^[^0-9]*//g" strips all status characters and spaces on the left site of the revision | |
# awk '{ print $1 }' extracts the first column | |
# sort -u consolidates the unique revisions | |
svn status --verbose | sed "s/^[^0-9]*//g" | awk '{ print $1 }' | sort -u |
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
[{ | |
"id": "1.001", | |
"name": "DPT_Switch", | |
"type": "PDT_BINARY_INFORMATION", | |
"unit": null, | |
"valueMap": { | |
"0": "Off", | |
"1": "On" | |
} | |
}, { |
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 latitude = 50.78, | |
longtitude = 7.15, | |
timer = new BlendsTimer(address, connection); | |
up = new RandomTimeOffset({ | |
time: new DayTimeSunrise(latitude, longtitude), | |
min: "+30m", | |
max: "+1h" | |
}); |
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 | |
/** | |
* Adds additional data to teaser cache | |
* | |
* | |
* Each Teaser will now contain the following: | |
* array(3) { | |
* [name] => | |
* string(7) "Michael" |
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 a git alias with a colored history listing | |
git config --global alias.hist "log --all --format='[%C(cyan)%h%C(reset)] %C(red)%d%C(reset) %s %C(dim)# %an%C(reset)' --graph" | |
# call api from gitignore.io from console | |
git config --global alias.ignore "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi" | |
# delete all merged branches except master, develop and the current checked out branch | |
git config --global alias.cleanup "!git branch --merged | grep -v '^\*\|master\|develop' | xargs -n1 git branch -d" | |
# Create temporary commit of staged changes and fixup it into the given commit |
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
@mixin text-3d ($color, $distance: 5px, $angle: 45deg) { | |
$value: ""; | |
@for $i from 0px through $distance { | |
$horizontal: (1px - $i) (1px + $i) $color; | |
$vertical: (-1px - $i) (-1px + $i) darken($color, 20%); | |
@if $i > 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
expression = /^(\d\d:\d\d:\d\d[,.]\d\d\d)\s-->\s(\d\d:\d\d:\d\d[,.]\d\d\d)\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
var childs = $('div.wrapper > div'); | |
childs.filter(':nth-child(5n+1)').each(function(){ | |
$(this).nextAll(':lt(4)') | |
.andSelf() | |
.wrapAll('<div/>'); | |
}); |