Skip to content

Instantly share code, notes, and snippets.

Avatar

Bogdan Ștefan bogdanjsx

  • Bucharest, Romania
View GitHub Profile
View ScrollToFixture.jsx
if (this.props.component) {
findDOMNode(this.refs[`componentName-${this.props.component}`])
.scrollIntoView({ behavior: 'smooth' });
}
View ReduxProxy.jsx
class ReduxProxy extends React.Component {
constructor(fixture) {
super();
this.store = createStore(fixture[fixtureStoreKey]);
}
getChildContext() {
return {
store: this.store,
};
View hello.c
#include<stdio.h>
int main()
{
printf("Hello\n");
return 0;
}