Skip to content

Instantly share code, notes, and snippets.

View feimosi's full-sized avatar

Marek Grzybek feimosi

View GitHub Profile
// @flow
import * as React from 'react';
import * as _ from 'lodash';
import BaseComponent from 'common/BaseComponent';
type Props = {
children: React.Node,
onMisclick: Function,
active?: boolean,
/usr/lib/python2.7/site-packages/ulauncher/util/desktop/notification.py:1: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
from gi.repository import Notify
/usr/lib/python2.7/site-packages/ulauncher/ui/windows/PreferencesUlauncherDialog.py:6: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import Gio, Gtk, WebKit2, GLib
2018-02-27 19:03:30,423 | INFO | ulauncher: main() | Ulauncher version 4.0.6.r1
2018-02-27 19:03:30,423 | INFO | ulauncher: main() | GTK+ 3.22.28
2018-02-27 19:03:30,423 | INFO | ulauncher: main() | Is Wayland: False
2018-02-27 19:03:30,423 | INFO | ulauncher: main() | Wayland compatibility: off
2018-02-27 19:03:30,443 | DEBUG | ulauncher.ui.windows.Builder: __init__() | consider using a pythonic name instead of design name 'input-
@feimosi
feimosi / revealAllComments.js
Created October 23, 2017 07:19
[Tampermonkey] GitHub reveal all comments button
// ==UserScript==
// @name GitHub reveal all comments button
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description Useful on the PR page after review
// @author feimosi
// @match https://github.com/*
// @grant none
// ==/UserScript==
@feimosi
feimosi / globbing-patterns.md
Last active March 15, 2017 20:02
Globbing patterns mini-tutorial

Globbing patterns mini-tutorial

Basics

* - any number of characters

# Include all subfolders of react/
ls react/*
@feimosi
feimosi / persist-restore-form-data.js
Last active December 10, 2020 16:10 — forked from CezaryDanielNowak/gist:85302c1d3323e951e3885bcedaa7c10b
Persist / restore form data using localStorage
// Persist data:
localStorage._formData_ = JSON.stringify(Array.from(document.forms[0].querySelectorAll('input')).map((el) => el.value));
// Restore data:
_formData_ = JSON.parse(localStorage._formData_) || [];
Array.from(document.forms[0].querySelectorAll('input')).forEach((input, id) => {
input.value = _formData_[id];
var event = document.createEvent("HTMLEvents");
event.initEvent("input", true, true);
input.dispatchEvent(event);