Skip to content

Instantly share code, notes, and snippets.

View hpneo's full-sized avatar

Gustavo Leon hpneo

View GitHub Profile
import { Renderer } from 'marked';
import Markdown from '~components/markdown';
import CodeMirror from 'codemirror';
import 'codemirror/addon/runmode/runmode';
import 'codemirror/mode/ruby/ruby';
import 'codemirror/mode/xml/xml';
import 'codemirror/mode/javascript/javascript';
import 'codemirror/mode/css/css';
import 'codemirror/mode/htmlmixed/htmlmixed';
import '~utils/gfm+table';
require 'httparty'
require 'time_difference'
require 'awesome_print'
JIRA_EMAIL = '[email protected]'
TOKEN = '1234567890'
authorization_token = Base64.urlsafe_encode64("#{JIRA_EMAIL}:#{TOKEN}")
headers = {
'Rextester.Program.Main is the entry point for your code. Don't change it.
'Compiler version 11.0.50709.17929 for Microsoft (R) .NET Framework 4.5
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text.RegularExpressions
Namespace Rextester
Public Module Program
import React from 'react';
import FullCalendar from 'fullcalendar';
class ReactFullCalendar extends React.Component {
componentDidMount() {
this.widget = $(this.container).fullCalendar({
currentDate: this.props.currentDate,
});
this.widget.on('dateSelected', this.props.onDateSelected);
import React from 'react';
import { connect } from 'react-redux';
import { reduxForm, Field, FieldArray } from 'redux-form';
const sleep = ms =>
new Promise(resolve => setTimeout(resolve, ms));
const asyncValidateForm = (values) => {
return sleep(1000)
.then(() => {
import React from 'react';
import PaginatedTable from './PaginatedTable';
const App = () => (
<div>
<PaginatedTable perPage={5} />
</div>
);
export default App;
import React from 'react';
import PaginatedTable from './PaginatedTable';
import data from './movies';
const App = () => (
<div>
<PaginatedTable data={data} perPage={5} />
</div>
);
@hpneo
hpneo / 4-a.js
Last active October 28, 2017 16:48
// const EmploymentHistory = withRemoteData(
// fetchEmploymentHistory,
// getEmployeeEmploymentHistory
// )(EmploymentHistoryTable);
// const EmploymentHistoryMobile = withRemoteData(
// fetchEmploymentHistory,
// getEmployeeEmploymentHistory
// )(EmploymentHistoryView);
import React from 'react';
export default class FetchData extends React.Component {
constructor() {
super();
this.state = {
data: null,
isLoading: false,
error: '',
import styles from './styles.scss';