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 { google } = require("calendar-link"); | |
const dates = { | |
"2023-01-02": ["12:30", "13:15", "14:00", "14:45", "15:30"], | |
"2023-01-03": ["09:30", "10:00"], | |
"2023-01-04": ["09:30", "10:15", "11:00"], | |
"2023-01-05": [ | |
"09:30", | |
"10:15", | |
"11:00", |
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
module.exports = function override(config, env) { | |
// NOTE: The current version of react-scripts-ts does not support yarn/lerna workspaces. | |
// As we're using TypeScript source code from a different module the TypeScript compilation can't locate source files outside of the current module, | |
// due to the fact that webpack is responsible for compiling TypeScript. The webpack config is "protected" as it's a part of the react-scripts-ts package. | |
// In short this hack find the ts-loader from the webpack config and removes the "include" property from the webpack ts-loader config. | |
// We do this hack to avoid having to eject the project from create-react-app or having to fork the react-script-ts repository and remove one line of code. | |
config.module.rules = config.module.rules.map(rule => { | |
var isOneOf = Object.keys(rule).findIndex(key => key === "oneOf") === 0; | |
if (isOneOf) { |
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
window.nn['autosave']; | |
const APP = ({children}) => ( | |
<AutoSaveContextProvider> | |
<div>{children}</div> | |
</AutoSaveContextProvider> | |
); | |
const SignupAssessmentComponent = () => (<h1>SignupAssessmentComponent</h1>); | |
const SignupPortfolioComponent = () => (<h1>SignupPortfolioComponent</h1>); |
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'; | |
import ReactDOM from 'react-dom'; | |
import d3 from 'd3'; | |
class ResponsiveChartContainer extends Component { | |
static defaultProps = { | |
width: '100%', | |
height: 300, | |
margin: {top: 0, right: 0, bottom: 0, left: 0} |
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 () { | |
'use strict'; | |
angular | |
.module('eva2-angular') | |
.directive('evaInvalidCredentialsValidator', function ($rootScope) { | |
return { | |
require: 'ngModel', | |
link: function (scope, el, attr, ctrl) { | |
var onInvalidCredentials = function (event, message) { |
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
angular.module('eva2-angular').directive('myDirective', function ($state) { | |
'use strict'; | |
return { | |
restrict: 'A', | |
link: function (scope, el) { | |
if($state.current.name !== '') { | |
angular.element(el).addClass($state.current.name); | |
} | |
} |
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
cramo.service('Cart', function($http, $q, $localStorage) { | |
var _cart = null, | |
_items = null, | |
self = this, | |
getCart = function(userID) { | |
var deferred = $q.defer(); | |
if(_cart) { | |
deferred.resolve(_cart); |
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
angular.module('topdog') | |
.factory('Profile', function ($http, settings, $log) { | |
$log.log(settings); | |
var meApiUrl = [settings.endPoints.base, settings.endPoints.me.path].join(''), | |
playerbySteamIdUrl = [settings.endPoints.base, settings.endPoints.player.base].join(''); | |
return { | |
me: function () { | |
return $http.get(meApiUrl, { withCredentials: true}) | |
}, | |
getPlayerBySteamId: function (steamId) { |
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
angular.module('myapp.security') | |
.factory('authentication', function ($http, $q, settings, authService) { | |
this._userContext = null; | |
var _this = this, | |
_fetchContext = function () { | |
var deferred = $q.defer(); | |
$http({ | |
method: 'GET', | |
url: settings.authentication.resourceEndPoints.context | |
}) |
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 mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
function makeGunSchemaProperty (object, type, key) { | |
['p', 'k', 'd', 's', 'h', 't', 'dg', 'dr'].forEach(function (keyPrefix) { | |
object[key + keyPrefix] = type; | |
}); | |
} | |
var schemaBase = { | |
guid: String, |
NewerOlder