Skip to content

Instantly share code, notes, and snippets.

View korof's full-sized avatar

Krzysztof Kornacki korof

  • Katowice, Poland
View GitHub Profile
@korof
korof / .zshrc
Created January 27, 2023 10:29 — forked from bashbunni/.zshrc
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@korof
korof / LinkSmoothScroll.js
Created January 4, 2021 07:40 — forked from vinaypuppal/LinkSmoothScroll.js
Next.js smooth scroll
import React, { Children } from 'react'
import Router from 'next/router'
import smoothScroll from '../utils/smoothScroll'
// this HOC is taken from https://github.com/zeit/next.js/blob/master/lib/link.js and modified
export default class LinkSmoothScroll extends React.Component {
constructor (props) {
super(props)
this.linkClicked = this.linkClicked.bind(this)
}
@korof
korof / README.md
Created November 18, 2020 09:18 — forked from dnaprawa/README.md
Apple M1 workaround for Docker

Apple M1 workaround for Docker

Prerequisites

You need a dedicated Linux machine (linux-vm) (in the cloud or on your VPS, or bare-metal) with Docker installed and SSH enabled (required login using SSH keys).

Workaround for people who have SSH access to a docker installed linux machine

Install go (pre-compiled binaries at https://golang.org/dl/

(Edit: there are no Darwin arm64 yet, You need to compile or use Homebrew...)

@korof
korof / cloudSettings
Last active November 13, 2020 23:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-13T23:10:29.996Z","extensionVersion":"v3.4.3"}
@korof
korof / firesheetz.ts
Created December 15, 2017 19:39 — forked from CodingDoug/README.md
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions
// Copyright 2017 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@korof
korof / test.jsx
Created September 25, 2017 09:43
export default class LotsOfStyles extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.content}>just text</Text>
</View>
);
}
@korof
korof / test.js
Created September 25, 2017 09:33
const Title = styled.h1`
font-size: 1.5em;
text-align: center;
color: palevioletred;
`;
const Wrapper = styled.section`
padding: 4em;
background: papayawhip;
`;
@korof
korof / introrx.md
Created February 19, 2017 19:40 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@korof
korof / bindingTypes.ts
Created August 10, 2016 20:04
angular + typeScript
export class BindingType {
public static STRING: string = '@';
public static ONE_WAY: string = '<';
public static TWO_WAY: string = '=';
public static METHOD: string = '&';
}
@korof
korof / doubleclick.js
Created June 18, 2016 08:01 — forked from mauriciosoares/doubleclick.js
rxjs double click example
let clickStream = Rx.Observable.fromEvent(document.getElementById('link'), 'click');
clickStream
.buffer(clickStream.debounce(250))
.map(list => list.length)
.filter(x => x === 2)
.subscribe(() => {
console.log('doubleclick');
})