Standard Braking Distance (Geschwindigkeit / 10) * (Geschwindigkeit / 10)
Evasive (Emergency) Braking Distance ((Geschwindigkeit / 10) * (Geschwindigkeit / 10)) / 2
Examples:
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
<?php | |
$file = 'file.csv'; | |
$line = array(); | |
$file = fopen($file,"r"); | |
while(! feof($file)) | |
{ | |
$line = fgetcsv($file); | |
} |
/* | |
* Function to create form shortcode | |
*/ | |
function request_form_func($atts, $content = null){ | |
extract(shortcode_atts(array( | |
'id' => false, | |
'class' => false, | |
'title' => false, | |
'subtitle' => false, | |
'action' => "/thanks", |
function generatListItems(employees) { | |
var statusHTML = ''; | |
for (var i=0; i<employees.length; i += 1) { | |
if (employees[i].inoffice === true) { | |
statusHTML += '<li class="in">'; | |
} else { | |
statusHTML += '<li class="out">'; | |
} | |
statusHTML += employees[i].name; | |
statusHTML += '</li>'; |
<?php | |
abstract class HomeChecker { | |
protected $succeesor; | |
public abstract function check(HomeStatus $home); | |
public function succeedWith(HomeChecker $succeesor){ | |
$this->succeesor = $succeesor; |
/* | |
* Programming Quiz: Make An Iterable Object | |
* | |
* Turn the `james` object into an iterable object. | |
* | |
* Each call to iterator.next should log out an object with the following info: | |
* - key: the key from the `james` object | |
* - value: the value of the key from the `james` object | |
* - done: true or false if there are more keys/values | |
* |
<html> | |
<head> | |
<title>Pardot Example Form Handler Submit</title> | |
<!-- Include jQuery --> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<!-- Post to Pardot function --> | |
<script type="text/javascript"> | |
// set the pardot form handler url and form element id |
Standard Braking Distance (Geschwindigkeit / 10) * (Geschwindigkeit / 10)
Evasive (Emergency) Braking Distance ((Geschwindigkeit / 10) * (Geschwindigkeit / 10)) / 2
Examples:
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
// Open (or create) the database | |
var open = indexedDB.open("MyDatabase", 1); | |
// Create the schema | |
open.onupgradeneeded = function() { | |
var db = open.result; | |
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"}); |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/