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
{ | |
init: function(elevators, floors) { | |
function unique(arr) { | |
var a = arr.concat(); | |
for(var i=0; i<a.length; ++i) { | |
for(var j=i+1; j<a.length; ++j) { | |
if(a[i] === a[j]) | |
a.splice(j--, 1); | |
} | |
} |
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
{ | |
"name": "jasmine-moar-matchers", | |
"authors": [ | |
"Hannes Diercks" | |
], | |
"description": "Some additional Jasmine 2.0 Matchers.", | |
"main": ["toBeInstanceOf.js", "toBeTypeOf.js", "promises.js"], | |
"keywords": [ | |
"jasmine", | |
"matcher" |
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
/** | |
* Just a simple example Class | |
* Main point here is: This is completely independent from di implementations | |
* We could as well require this file and instantiate the Class on our own | |
*/ | |
function MyClass(myOtherClass, readFile) { | |
this.myOtherClass = myOtherClass; | |
this.readFile = readFile; | |
this.doThings = 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
{ | |
"Handwriting": [ | |
"Patrick Hand SC", | |
"Grand Hotel", | |
"Calligraffitti", | |
"Coming Soon", | |
"Crafty Girls", | |
"Homemade Apple", | |
"Just Another Hand", | |
"Montez", |
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
##### automatically create a .gitignore containing all created css files inside the css folder. | |
# Absolute path to css dir | |
abs_css_dir = File.absolute_path(css_dir) + '/' | |
# .gitignore File instance | |
gitignore_file = File.open(css_dir + '/.gitignore', 'a+') | |
gitignore_lines = gitignore_file.readlines | |
# banner for gitignore file. | |
gitignore_banner = <<-eos |
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> | |
<head> | |
<title>Parameter Uebergabe JS</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
$('#preview_link').click(function(event) { | |
event.preventDefault(); | |
var popup = window.open( | |
'preview.php?'+$('#form').serialize(), |
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> | |
<head> | |
<title>Parameter Uebergabe JS</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
$('#preview_link').click(function(event) { | |
event.preventDefault(); | |
var popup = window.open( | |
'preview.html', |
NewerOlder