Skip to content

Instantly share code, notes, and snippets.

View hamed-farag's full-sized avatar

Hamed Farag hamed-farag

View GitHub Profile
import React from "react";
export default class App extends React.Component {
state = {};
onChange = event => {
this.setState({ [event.target.name]: event.target.value });
};
renderParent() {
@hamed-farag
hamed-farag / Twitter High Contrast Theme
Last active January 17, 2019 15:47
A High Contrast Theme For Twitter - deprecated
.js-global-actions li#global-nav-home a {
border-bottom-color: #e8e800;
}
.global-nav-inner {
background: black;
}
.global-nav {
border-bottom-color: #e8e800;
import React from "react";
export default WrapperComponent => {
const _logType = {
warn: "warn",
error: "error",
info: "info"
};
let _logging = {
var StyleToString = function (styleString, styleObj) {
var style = '';
if (typeof styleString === 'string') {
style = style + styleString;
}
if (typeof styleString === 'object') {
for (var styleStringProperty in styleString) {
if (styleString[styleStringProperty]) {