This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { connect } from "react-redux"; | |
| // Import your actions from your action's index.js file | |
| // import { action1, action2 } from '../actions' | |
| const ExampleComponent = ({ stateKey1, stateKey2, action1, action2 }) => { | |
| // alternatively, ExampleComponent = (props) => .... | |
| // const {stateKey1, stateKey2, action1, action2} = props; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from "react"; | |
| import { connect } from "react-redux"; | |
| import { signIn, signOut } from "../actions"; | |
| class GoogleAuth extends Component { | |
| async componentDidMount() { | |
| await window.gapi.load("client:auth2", () => { | |
| window.gapi.client.init({ | |
| clientId: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| prompt_context () { } | |
| prompt_dir() { | |
| prompt_segment blue black '%2~' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Configuration for Alacritty, the GPU enhanced terminal emulator. | |
| # Import additional configuration files | |
| # | |
| # Imports are loaded in order, skipping all missing files, with the importing | |
| # file being loaded last. If a field is already present in a previous import, it | |
| # will be replaced. | |
| # | |
| # All imports must either be absolute paths starting with `/`, or paths relative | |
| # to the user's home directory starting with `~/`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDIYllvcSiB6EDrpDe9+YpjWWDpGcviS/QgA7FEAzqxOxAkRPaCfw0BPpL3SPFwNR7L12Ut43z+CtPuybG+RcC3ekuSPYDRIio3Mkyt8/x0mR5kL6Wye8frXoXh+2jcPb1MOTSLCkb8BSqWWvS9FewKEBZvv2FqdgJD+J+FqBG79KVN+SOCiWoF3El6ztpOotBUsZ3Iel3Hni+59c3hhZd4OEspM8dNI8zvzhIeB1cpuyBf5jPLl4X5BRRJQjsPZ6ohLlZFHX0kuFAwiA8DNlP9OM2GOTldhfUfxXbypeouMGwpOrWuOUdzqP9uLA0K6KpcHUiB3z7h0UJdjP041NIp+HUlF6LmfEp3Jd8l0sfoxajkglH8GC0aVCSQx9pgB7RUZIbYenYdpm/ybJHIKuziqASYq2BjXzrJjOFeBVMbGbXUUsa94pPlAZ85vohzJxEfgRtvGsciuQhuZLyTaLL70UPPpfCwojH1b6A/0t5uOMl6HAneiDwrQBC1O+vGo8s= john@DESKTOP-Q9V1DL1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Sets ";" key to be the leader | |
| let mapleader=";" | |
| inoremap ;q <Esc> " Map ';q' to Esc key | |
| " Specify a directory for plugins | |
| call plug#begin('~/.local/share/nvim/plugged') | |
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
| Plug 'preservim/nerdtree' | |
| Plug 'preservim/nerdcommenter' | |
| Plug 'ryanoasis/vim-devicons' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import XMonad | |
| import Data.Monoid | |
| import System.Exit | |
| import XMonad.Util.Run | |
| import XMonad.Util.SpawnOnce | |
| import XMonad.Layout.Spacing | |
| import XMonad.Layout.ToggleLayouts | |
| import XMonad.Hooks.ManageDocks | |
| import XMonad.Hooks.EwmhDesktops | |
| import XMonad.Hooks.DynamicLog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| username=result=${PWD##*/} | |
| add-apt-repository ppa:neovim-ppa/unstable # neovim ppa | |
| echo "Installing git..." | |
| if ! command -v git &> /dev/null # install node if it isn't already | |
| then | |
| apt install git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " ============================= | |
| " Shortcut Cheat Sheet | |
| " ============================= | |
| " | |
| " Find a section with it's coresponding section number or section name | |
| " example '/2.' or '/Tabs' | |
| " | |
| " 1. Essentials | |
| " 2. Movement | |
| " 2. Tabs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \ | |
| && curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \ | |
| && curl -s -L https://nvidia.github.io/libnvidia-container/$distribution/libnvidia-container.list | \ | |
| sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ | |
| sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list |
OlderNewer