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
#include<bits/stdc++.h> | |
using namespace std; | |
class Node { | |
int key; | |
Node* next; | |
public: | |
int getKey() { | |
return key; |
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
let a = 10 |
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
ServerResponse { | |
_events: [Object: null prototype] { finish: [Function: bound resOnFinish] }, | |
_eventsCount: 1, | |
_maxListeners: undefined, | |
outputData: [], | |
outputSize: 0, | |
writable: true, | |
_last: false, | |
chunkedEncoding: false, | |
shouldKeepAlive: true, |
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
@ ./src/index.js | |
ERROR in ./src/pages/LanguageSettings/LanguageSettings.js | |
Module not found: Error: Can't resolve '../../batteries/components/shared/ErrorToaster' in 'F:\19-9 and later\Projects\arc-dashboard\src\pages\Lan | |
guageSettings' | |
@ ./src/pages/LanguageSettings/LanguageSettings.js 56:0-74 371:86-98 | |
@ ./src/pages/LanguageSettings/index.js | |
@ ./src/components/AppLayout/AppsRouteContainer.js | |
@ ./src/components/AppLayout/index.js | |
@ ./src/pages/AppWrapper/AppWrapper.js |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define vi vector<int> | |
int duper(vi a) | |
{ | |
int slow = a[0]; | |
int fast = a[a[0]]; | |
while(fast != slow) |
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
#define vector<int> vi;vi NGE(vi a){ stack<int>s; vi next(a.size()); int n = a.size(); for(int i = n-1; i >= 0; i--) { while(!s.empty() && s.top() <= a[i]) s.pop(); if(s.empty()) next[i] = -1; else next[i] = s.top(); | |
s.push(a[i]); } | |
return next;} |
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
# Step 1: defining the likelihood function | |
def likelihood(y,pi): | |
import numpy as np | |
ll=1 | |
ll_in=range(1,len(y)+1) | |
for i in range(len(y)): | |
ll_in[i]=np.where(y[i]==1,pi[i],(1-pi[i])) | |
ll=ll*ll_in[i] | |
return ll |
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 { AppPage } from './app.po'; | |
import { browser, by, logging, element } from 'protractor'; | |
import { protractor } from 'protractor/built/ptor'; | |
describe('workspace-project App', () => { | |
let page: AppPage; | |
beforeEach(() => { | |
page = new AppPage(); | |
}); |
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
<div id="dash" style="margin:50px"> | |
<div class="ui-g ui-fluid"> | |
<div class="ui-g-12 ui-md-3" > | |
<p-card header="Select/Add Stock: " > | |
<div class="wrapper-1"> | |
<div> | |
<select | |
[(ngModel)] = "defaultStock" | |
(ngModelChange) = 'catcher($event)'> | |
<option |
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
.dropdown:hover .dropdown-content { display: block; border-radius: 5px;} | |
::ng-deep .chart { | |
background-color: rgb(68, 117, 117) !important; | |
color: rgb(252, 252, 252) !important; | |
} | |
.btn:hover{ | |
font-weight:700; | |
} |
NewerOlder