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
function getEventTarget(nativeEvent) { | |
var target = nativeEvent.target || nativeEvent.srcElement || window; | |
// If encapsulated in a Web Component | |
// use the Event path | |
if(nativeEvent.path && nativeEvent.path[0]) { | |
return nativeEvent.path[0]; | |
} | |
// Normalize SVG <use> element events #4963 |
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
class Input extends React.Component { | |
constructor() { | |
super(); | |
this.state = { | |
greeting: '' | |
} | |
} |
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
# Creates a private BitBucket repository with one call from bash | |
# -------------------------------------------------------------------------------- | |
# | |
# Uses the BitBucket REST API to create a new private, non-forkable repository | |
# for the local Git repository your currently staying in. | |
# The content of your local repository gets pushed after the repository is created. | |
# | |
# Prequisites: | |
# - you must have curl installed | |
# - your local repo must not have a remote already connect to a bitbucket repo |
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> | |
<head> | |
<script src="./react-0.13.3.min.js"></script> | |
<script src="./browser.min.js"></script> | |
</head> | |
<body> | |
<div id="mount"></div> | |
</body> |
NewerOlder