This file contains 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 foo = document.createElement('a') | |
foo.addEventListener('click', function() { console.log('yeah') }, false) | |
var event = document.createEvent('UIEvents') | |
event.initEvent('click', false, false) | |
foo.dispatchEvent(event) | |
// yeah |
This file contains 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 | |
class Foo { | |
protected $description_de = 'Beschreibung'; | |
protected $description_en = 'Description'; | |
protected $localizedProperties = array( 'description' ); | |
public function __get( $key ) { | |
if ( !in_array( $key, $this->localizedProperties ) ) { |
This file contains 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
test – durchgefallen – danke. |
This file contains 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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Testing inline SVG …</title> | |
<style type="text/css" media="screen"> | |
/* SVG-Namensraum unter dem Kürzel "svg" registriert */ | |
@namespace svg "http://www.w3.org/2000/svg"; |
This file contains 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
Array.prototype.unique = function () { | |
var keys = {}, | |
result = [], | |
items = this.length | |
while ( items ) | |
keys[ this[ --items ] ] = true | |
for ( var key in keys ) | |
if ( !keys.hasOwnProperty( key ) ) |
This file contains 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
Array.prototype.unique = function() { | |
var uniqueKeys = {}; | |
var items = this.length; | |
while ( items ) { | |
uniqueKeys[ this[ --items ] ] = true; | |
} | |
var uniqueArray = []; | |
for ( var key in uniqueKeys ) { | |
if ( !uniqueKeys.hasOwnProperty( key ) ) { |
This file contains 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
Array.prototype.unique = function() { | |
var uniqueKeys = {}; | |
var items = this.length; | |
while( items ) { | |
uniqueKeys[this[--items]] = true; | |
} | |
var uniqueArray = []; | |
for( var key in uniqueKeys ) { |
NewerOlder