Skip to content

Instantly share code, notes, and snippets.

View danilowoz's full-sized avatar

Danilo Woznica danilowoz

View GitHub Profile
Schrödinger’s commit. 50% chance we fixed the bug
i tried my best
Please don't tell anyone I did this
Check the changes for yourself
Works on my machine
// 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: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",
// 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: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",
@danilowoz
danilowoz / React.context.class.App.js
Last active January 14, 2020 13:49
Gist: React.Context<Class | Hooks>
import React from "react";
import Provider, { Consumer } from "./Context";
const App = () => (
<Provider>
<Consumer>
{({ count }) => {
return (
<div>
import React, { Component } from "react"
import VisibilitySensor from "react-visibility-sensor"
const optsVisibily = {
minTopValue: 400,
partialVisibility: true,
scrollDelay: 100
}
const WithScroll = WrapComponent =>

👍 👎 💯 🔢 🥇 🥈 🥉 🎱 🅰️ 🆎

@danilowoz
danilowoz / git alias
Last active December 13, 2018 12:18
Alias gist
# .gitconfig
[user]
email = danilowoz@gmail.com
[alias]
st = status
ci = commit
br = branch
co = checkout
up = "!git remote update -p; git merge --ff-only @{u}"
emenda = commit --amend --no-edit
@media (pointer: coarse) and (hover: none) { }
/* https://css-tricks.com/touch-devices-not-judged-size/ */
@danilowoz
danilowoz / Delete merged branches from local.txt
Created December 18, 2017 12:03
Delete merged branches from local
git branch --merged | grep -v -e "master" -e "\*" | xargs -n 1 git branch -d