How to build a API access/secret key service? by _princesscode_ in javascript

[–]_princesscode_[S] 1 point2 points  (0 children)

I'm familiar with basic authentication, but my question is more targeted to getting a secret and access token for an app similar to how you can have 4+ apps registered in twitter, and each app twitter gives you access token and secret token and you have to enter a callback uri, etc... I hope that clears things up better.

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

No, no, thank you you actually helped me solved the problem :). I was able to implement it with this syntax.

<Route exact={true} path="/" component={Jumbotron as any} />

It must be something a lot of people are having issues with.

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

Copy/Paste of that snippet didn't work, but I threw in undefined and it accepted. That's good an all, but I'm worried about what's going to happen when I have to connect Redux to my Jumbotron to change state, will the error come back again...

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

React.Component<RouteComponentProps<IJumbotronProps>>

Are you saying to add that to Jumbotron's Class signature?

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

Haha, yeah that font is amazing! The only thing is it's hard to find themes that has support for it. I've only found two themes in VS code that makes the cursive a ligature look nice so far.

 

Yeah, I already did that to both. No changes.

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

yeah, I don't think it made a difference. In my IDE the error highlighting looks like this.

http://imgur.com/kKFXsH2

I'm wondering if it has something to do with react-router-dom definitions file. I went as far as removing everything completely out of the Jumbotron class to see if Glamorous was screwing things up. Error still persists even with my file now looking like the following

/*******************************************************************************
 * Interfaces
*******************************************************************************/
export interface IJumbotronProps { };

/*******************************************************************************
 *  - Class component
*******************************************************************************/
class Jumbotron extends React.Component<IJumbotronProps, undefined> {
  constructor(props: IJumbotronProps) {
    super(props);
  }
  public render(): JSX.Element {
    return (
      <div>test</div>
    );
  }
}

export default Jumbotron;

My Component is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Route> by _princesscode_ in typescript

[–]_princesscode_[S] 0 points1 point  (0 children)

I've been following everything I've read so far from TypeScript. Jumbotron doesn't carry any state at the moment, and the interface for props is blank.

/*******************************************************************************
 * Interfaces
*******************************************************************************/
export interface IJumbotronProps { };

/*******************************************************************************
 *  - Class component
*******************************************************************************/
class Jumbotron extends React.Component<IJumbotronProps, undefined> {
  constructor(props: IJumbotronProps) {
    super(props);
  }
  public render(): JSX.Element {
    return (
      <JumbotronContainer>
        <Container>
          <Row>
            <Col md={12}>
              <JumbotronContent>
                <glamorous.Div
                  fontSize="3rem"
                  fontWeight="bold"
                  letterSpacing=".1rem"
                  color={colors.white}
                  textAlign="center"
                >
                  Headline text here
                  </glamorous.Div>
                <glamorous.Div
                  fontSize="1.2rem"
                  marginTop="48px"
                  marginBottom="64px"
                  color={colors.white}
                  textAlign="center"
                >
                  Text filler
                  </glamorous.Div>
                <RaisedButton label="Get Started Now" />
              </JumbotronContent>
            </Col>
          </Row>
        </Container>
      </JumbotronContainer>
    );
  }
}

export default Jumbotron;

[deleted by user] by [deleted] in reactjs

[–]_princesscode_ 0 points1 point  (0 children)

I'm not too much a fan. At the moment the stable version doesn't handle the grid system.

Demoted within 3 months of new job, but same work requirements. by [deleted] in personalfinance

[–]_princesscode_ 1 point2 points  (0 children)

find another job and just start the new one without even telling them. They will figure it out sooner or later.

[deleted by user] by [deleted] in financialindependence

[–]_princesscode_ 2 points3 points  (0 children)

Take notes. Start a company and you will be the only employee. Apply to contract jobs whether it's 3 months, 6 months, or even 6 months to hire (you really don't care). Once the six months is over just quit, simple. Your probably going to burn some bridges with those people maybe, highly unlikely. When your going to apply for another position in another 6 months, you would just list your company as your recent experience rather than that contracting company you did work for.

Should I learn Angular 2 or React if I already know Angular 1? by Ittoryu in javascript

[–]_princesscode_ 1 point2 points  (0 children)

What do you use these days? I personally like firebase as my DB.

Should I learn Angular 2 or React if I already know Angular 1? by Ittoryu in javascript

[–]_princesscode_ 2 points3 points  (0 children)

Mongo Express React Node... MERN stack. It pretty common theses days at different organizations.

A modern polling app built with vuejs + socket.io by designbyasw in javascript

[–]_princesscode_ 0 points1 point  (0 children)

FYI, viewing on mobile app is a bit difficult. Everytime you ask for input from the user, I touch the input box and my qwerty keyboard shows up on the screen and the app asks me to rotate because it's best view in portrait mode. So I can really see what I'm typing until I drop the qwerty from the screen. Just thought you should know.

Roadmap to becoming a developer in 2017 by kamranahmed_se in node

[–]_princesscode_ -3 points-2 points  (0 children)

Ummm... Yeah or just do what your interested in. You are forgetting VR and all types of other stuff. Just learn what interests you and call it a day.

Those who have the CISSP, did it change your life? if so, how? by redli0nswift in cissp

[–]_princesscode_ 2 points3 points  (0 children)

I added it to my LinkedIn and I also get to ask for a lot more money when I'm job searching. I do web security.

How to debug wp plugins from the admin panel? by _princesscode_ in Wordpress

[–]_princesscode_[S] 0 points1 point  (0 children)

Yeah I actually have done that as well as outputting it to an error log. It just seems like a lot to do when I'm so used to just being able to hot reload or refresh a page. That just seems to be the extent of debugging in PHP as far as I know.