Skip to content

Instantly share code, notes, and snippets.

View cvara's full-sized avatar
🐢
I may be slow to respond.

Christoforos Varakliotis cvara

🐢
I may be slow to respond.
View GitHub Profile
@cvara
cvara / Enhance.js
Created October 11, 2016 12:09 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@cvara
cvara / simple.content.slider.js
Last active August 29, 2015 14:07
A simple Javascript content slider
/**
* @name jQuery Simple Content Slider
* @author Christopher Varakliotis
* @version 0.2
* @url -
* @license MIT License
*/
(function($, undefined){