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 p = window.location.protocol + '//' | |
// current location must return 200 OK for this GET | |
window.location = window.location.href.replace(p, p + 'logout:password@') |
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
"config": { | |
"preferred-install": "dist", | |
"disable-tls": true, | |
"secure-http": false, | |
"autoloader-suffix": "Drupal8" | |
}, | |
"repositories": [ | |
{ | |
"packagist": false | |
}, |
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 | |
function weightedRand($stream) { | |
$pos = mt_rand(1,array_sum(array_keys($stream))); | |
$em = 0; | |
foreach ($stream as $k => $v) { | |
$em += $k; | |
if ($em >= $pos) | |
return $v; | |
} |
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 TaxSalary | |
{ | |
// Input 1000000. | |
function salary($gross_local) | |
{ | |
if (!is_numeric($gross_local) && floatval($gross_local)) { | |
die ('Please input is must type Numeric.'); | |
} |
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 Configuration { | |
private static $instance; | |
private function __construct($configuration) {/* */} | |
public static function getInstance() { | |
if (self::$instance === null) { | |
self::$instance = new Configuration(); | |
} | |
return self::$instance; | |
} |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.js"></script> | |
<link type="text/css" rel="stylesheet" | |
href="https://gist.githubusercontent.com/auser/2bc34b9abf07f34f602dccd6ca855df1/raw/40c5e7c8cad4c6920fed940fc31cbb63abd94c29/timeline.css"> |
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
class Header extends React.Component { | |
render() { | |
return ( | |
<div className="header"> | |
<div className="fa fa-more"></div> | |
<span className="title">Timeline</span> | |
<input | |
type="text" | |
className="searchInput" | |
placeholder="Search ..."/> |
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
class Header extends React.Component { | |
render() { | |
return ( | |
<div className="header"> | |
<div className="fa fa-more"></div> | |
<span className="title">{this.props.title}</span> | |
<input | |
type="text" | |
className="searchInput" | |
placeholder="Search ..."/> |
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
class Clock extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = this.getTime(); | |
} | |
componentDidMount() { | |
this.setTimer(); | |
} |
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
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Copyright © Magento, Inc. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
--> | |
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<body> | |
<referenceBlock name="page.main.title"> |
OlderNewer