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 PublicRoute({ children, ...rest }) { | |
const { auth } = rest; | |
return ( | |
<Route | |
{...rest} | |
render={() => { | |
if (!auth) return <Redirect to="/login" />; | |
return <Dashboard>{children}</Dashboard>; | |
}} |
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
/tmp/ruby-build.20190605174356.12792 ~/Projects/mxhero/new-dashboard | |
/tmp/ruby-build.20190605174356.12792/ruby-2.3.0 /tmp/ruby-build.20190605174356.12792 ~/Projects/mxhero/new-dashboard | |
checking for ruby... false | |
checking build system type... x86_64-pc-linux-gnu | |
checking host system type... x86_64-pc-linux-gnu | |
checking target system type... x86_64-pc-linux-gnu | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... |
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(w,d,s,a){ | |
var t,f;w['NextTripBookingRef']=a;w[a]=w[a]||function(){(w[a].q=w[a].q||[]).push(arguments)}; | |
w[a].s=w.location.origin;t=d.createElement('script');f=d.getElementsByTagName('script')[0]; | |
t.async=1;t.src=s;f.parentNode.insertBefore(t,f);d.querySelectorAll('[data-nexttrip]').forEach( | |
function(b){b.addEventListener('click', function(e){w[a]('dataset', e.target.dataset); | |
e.preventDefault()})}) | |
})(window, document,'http://localhost:3000/booking.js','nextTrip'); | |
nextTrip.customerId = 'ALLUSA' | |
nextTrip.dealId = 'SHUTTLES' |
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
const merge = require('ramda/src/merge') | |
const m = require('mithril') | |
/* | |
@param {string} key - The unique key of the request | |
@param {Object} params - The same params used in m.request of mithril | |
@returns Promise | |
@link https://mithril.js.org/request.html |
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
const m = require('mithril') | |
function emitChangeToSubscribers(subscribers, newState, oldState){ | |
subscribers.forEach(function(subscriber){ | |
subscriber.call(null, newState, oldState) | |
}) | |
} | |
module.exports = function(initState){ | |
const store = m.prop(initState) |
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
void function(m) { | |
function closure(fn) { | |
var component = { | |
controller : function(options) { | |
component.view = fn(options); | |
} | |
}; | |
return component; |
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
/opt/mxhero-apps/footers-web/shared/log/*.log { | |
daily | |
missingok | |
rotate 52 | |
compress | |
delaycompress | |
notifempty | |
create 0640 ubuntu ubuntu | |
sharedscripts | |
postrotate |
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
pv ubuntu-14.10-desktop-amd64.img.dmg | sudo dd of=/dev/rdisk3 bs=1m | |
pv ~/Desktop/linuxmint.iso | sudo dd of=/dev/sdx oflag=direct bs=1048576 |
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
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="js/tinymce/tinymce.min.js"></script> | |
<script type="text/javascript"> | |
tinymce.init({ | |
selector: "textarea" | |
}); | |
function getRichContent(){ |
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
<h1 id="qunit-header">Unit Tests</h1> | |
<h2 id="qunit-banner"></h2> | |
<div id="qunit-testrunner-toolbar"></div> | |
<ol id="qunit-tests"></ol> | |
<div id="qunit-fixture"></div> |
NewerOlder