<div id="external-widget-place">
<script async src="/your/widget.bundle.js"></script>
</div>
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
// ensure no console errors or issues in older browsers | |
// check for service worker first | |
if(navigator.serviceWorker) { | |
navigator.serviceWorker.register('/sw.js' /* , options */) | |
.then(function(regsitered) { | |
console.log('yay! registered') | |
}).catch(function() { | |
console.log('oh no! somethings wrong') | |
}) |
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
rm -rf ~/.atom | |
rm /usr/local/bin/atom | |
rm /usr/local/bin/apm | |
rm ~/Library/Preferences/com.github.atom.plist | |
rm ~/Library/Application Support/com.github.atom.ShipIt | |
rm -rf ~/Library/Application Support/Atom/ |
<!-- your widget -->
<div id="external-widget-place">
<script async src="/your/widget.bundle.js"></script>
</div>
<!--// tada.. -->
<!-- another clone here please -->
<div class="clone-that-widget-here-1">
I hereby claim:
- I am zouhir on github.
- I am zouhir (https://keybase.io/zouhir) on keybase.
- I have a public key ASC9aPI__VVNU3JthEMSSotud-MfLKVyo6ewYfFZmwYZAQo
To claim this, I am signing this object:
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
```bash | |
npm install --save preact-habitat | |
``` | |
```js | |
import { render } from 'preact-habitat'; | |
import WidgetAwesome from './components/WidgetAwesome' | |
render(WidgetAwesome); | |
``` |
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
#!/usr/bin/env bash | |
# /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Make sure we’re using the latest Homebrew. | |
brew update | |
# Upgrade any already-installed formulae. | |
brew upgrade |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
FROM node:6.9.2 | |
# File Author / Maintainer | |
LABEL authors="Zouhir Chahoud <[email protected]>" | |
# Install app dependencies | |
COPY package.json /www/package.json | |
RUN cd /www; npm install | |
# Copy app source |
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
import Widget from './widget.jsx'; | |
import habitat from 'react-new-tyson-module'; | |
const widgetInAem = habitat(Widget); | |
widgetInAem.render({ | |
selector: '.booking-widget', // you can also use id #widgetId or data attribute [data-attribute-widget="mny-widget"] | |
inline: false, //optional | |
clean: false, //optional cleans the loading div or anything in the DOM after we mounr | |
clientSpecified: false //optional |
OlderNewer