This file contains hidden or 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 { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
This file contains hidden or 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
require('babel-core/register'); | |
var gulp = require('gulp'); | |
var git = require('gulp-git'); | |
var webpack = require('webpack'); | |
var WebpackDevServer = require('webpack-dev-server'); | |
var shell = require('gulp-shell'); | |
var os = require('os'); | |
var open = require('gulp-open'); | |
var gp_prompt = require('gulp-prompt'); | |
var runSequence = require('run-sequence'); |
This file contains hidden or 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 __flattenReducer = (result,value,valueIndex,arr)=>{ | |
if(value instanceof Array){ | |
return value.reduce(__flattenReducer,result); | |
}else{ | |
result.push(value); | |
return result; | |
} | |
}; | |
const flatten = function(arr){ |
This file contains hidden or 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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 14, | |
// font family with optional fallbacks |
This file contains hidden or 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 download = require("image-downloader"); | |
const path = require("path"); | |
const pathExists = require("path-exists"); | |
Array.from({ length: 802 }).forEach((i, index) => { | |
const entry = index + 1; | |
const downloadPath = path.join(__dirname, `public/images/${entry}.png`); | |
pathExists(downloadPath).then(exists => { | |
if (exists) { | |
return; |
This file contains hidden or 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
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName probuilds.dev | |
DocumentRoot /var/www/html | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
<Directory /var/www> | |
Options Indexes FollowSymLinks |
This file contains hidden or 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
class SimpleTextInput extend Component { | |
constructor(props){ | |
super(props) | |
this.state = { | |
value : props.value, | |
_value : props.value | |
} | |
} | |
static getDerivedStateFromProps(newProps,oldState){ | |
if(newProps.value !== oldState._value){ |
This file contains hidden or 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 * as React from "react"; | |
import { useDidMount } from "shared/useDidMount"; | |
const initialState = { | |
intersectionObj: {}, | |
observerInState: null, | |
isVisible: false | |
}; | |
interface Iaction { |
This file contains hidden or 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
html,body{ | |
display: none; | |
} |
This file contains hidden or 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 jobs = [ | |
{ | |
id: 1, | |
title: "Lead Svelte Engineer", | |
description: | |
"Amet quo non reprehenderit aspernatur non ex tenetur debitis impedit. Dolor sed est. Dolorem assumenda molestiae vitae accusantium facilis incidunt rem soluta sint. Velit tenetur quae quibusdam occaecati fuga itaque tenetur ut.", | |
isFeatured: true, | |
isRemote: false, | |
seniority: "Lead", | |
verticals: ["Frontend"] |
OlderNewer