Skip to content

Instantly share code, notes, and snippets.

View meinefinsternis's full-sized avatar
🤠
Focusing

meinefinsternis

🤠
Focusing
View GitHub Profile
@meinefinsternis
meinefinsternis / README.md
Created September 8, 2024 05:34 — forked from michaelcbrook/README.md
Apollo Client Example

Apollo Client Example

This example shows how to configure Apollo Client for a Meteor app, using the Pitchly GraphQL API.

This example supports:

  1. Websocket subscriptions
  2. Automatic token refresh and retry when access token is invalid or expires
  3. Automatic retry when there is a brief network interruption
  4. Error normalization
@meinefinsternis
meinefinsternis / nano-shorts.md
Created March 14, 2024 07:30 — forked from franz-josef-kaiser/nano-shorts.md
nano keyboard shortcuts

^ = Ctrl key M = Alt key

^G      (F1)            Display this help text
^X      (F2)            Close the current file buffer / Exit from nano
^O      (F3)            Write the current file to disk
^J      (F4)            Justify the current paragraph

^R      (F5)            Insert another file into the current one
@meinefinsternis
meinefinsternis / nvmCommands.js
Created January 9, 2024 07:06 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
import { createSelector } from 'reselect';
import _ from 'underscore';
const createSelectorSelector = (...funcs) => {
const base = createSelector(...funcs);
const selector = (...args) => base(...args)(...args);
_.extendOwn(selector, base);
return selector;
};
@meinefinsternis
meinefinsternis / lima-agnoster.zsh-theme
Created November 27, 2023 05:14 — forked from brunodles/lima-agnoster.zsh-theme
A simple change on agnoster theme. This will add the time of the last command on the right size.
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@meinefinsternis
meinefinsternis / fish_shell.md
Created November 13, 2023 08:10 — forked from idleberg/fish_shell.md
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.

Installation

  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L https://get.oh-my.fish | fish
@meinefinsternis
meinefinsternis / top-brew-packages.txt
Created November 1, 2023 09:12 — forked from pmkay/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@meinefinsternis
meinefinsternis / withClickOutside.tsx
Created July 20, 2023 07:06 — forked from elie222/withClickOutside.tsx
HOC for closing an item when clicked outside. Useful for dropdowns and tooltips
import * as React from 'react'
import hoistNonReactStatic from 'hoist-non-react-statics'
import { findDOMNode } from 'react-dom'
export interface WithClickOutsideProps {
close: () => void
containerElement?: React.RefObject<any>
}
const withClickOutside = <P extends WithClickOutsideProps>(
import React from "react";
import {
Autocomplete,
CircularProgress,
AutocompleteProps,
TextField,
} from "@mui/material";
export type OmittedMUISelectProps =
| "renderInput"
@meinefinsternis
meinefinsternis / ymaps-remote-object-manager-with-data-events.js
Created March 9, 2023 15:13
События загрузки данных у RemoteObjectManager Яндекс.Карт
// @see https://yandex.ru/blog/mapsapi/54098
// свой загрузчик данных для RemoteObjectManager
// отличия от базового — генерируется события загрузки данных: dataloadbefore и dataloadafter
ymaps.modules.define('objectManager.component.ReloadOnZoomChangeControllerWithEvents', [
'util.defineClass',
'objectManager.component.ReloadOnZoomChangeController'
], function (provide, defineClass, ReloadOnZoomChangeController) {
var ReloadOnZoomChangeControllerWithEvents = function (remoteObjectManager) {
ReloadOnZoomChangeControllerWithEvents.superclass.constructor.call(this, remoteObjectManager);