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 appendChildren(decorateDivFunction) { | |
var allDivs = document.querySelectorAll("div"); | |
for (var i = 0; i < allDivs.length; i++) { | |
var newDiv = document.createElement("div"); | |
decorateDivFunction(newDiv); | |
allDivs[i].appendChild(newDiv); | |
} | |
} |
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> | |
<meta charset="utf-8"> | |
<title>Modal Dialog</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | |
</head> |
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Sharing Social Media</title> | |
</head> | |
<body> | |
<button onclick="shareFacebook()"> | |
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 MaterialTable from "material-table"; | |
class Index extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
columns: [ | |
{ title: 'Name', field: 'name' }, | |
{ title: 'Surname', field: 'surname', initialEditValue: 'initial edit value' }, |
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 App from 'next/app' | |
import { parseCookies, setCookie, destroyCookie } from 'nookies' | |
import Layout from '../components/Layout' | |
export default class MyApp extends App { | |
static async getInitialProps({ Component, router, ctx }) { | |
let cookies = parseCookies(ctx) | |
let pageProps = {} |
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, { Component } from 'react' | |
class Layout extends Component { | |
constructor (props){ | |
super(props); | |
// props from custom app available at here | |
console.log(props) | |
} | |
render () { |
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
version: "3" | |
services: | |
sonarqube: | |
image: sonarqube | |
expose: | |
- 9000 | |
ports: | |
- "127.0.0.1:9000:9000" | |
networks: |
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
sonar.projectKey=microsite_key | |
sonar.projectName=microsite_v3 | |
sonar.sourceEncoding=UTF-8 | |
sonar.sources=. | |
sonar.host.url=http://127.0.0.1:9000 | |
sonar.exclusions=frontend/app/common/libraries/**,**/*.css,**/*.js,**/*.html,**/*.scss,**/*.mixins.less | |
sonar.login=admin | |
sonar.password=admin |