This file contains 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
alias kubemerge='kubectl konfig merge $(gfind ~/.kube -mindepth 1 -path ~/.kube/cache -prune -o -not -name config -not -name kubectx -printf "%p ") > ~/.kube/config && chmod 600 ~/.kube/config' |
This file contains 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/sh | |
set -o errexit | |
# 1. Create registry container unless it already exists | |
reg_name='kind-registry' | |
reg_port='5001' | |
if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" != 'true' ]; then | |
docker run \ | |
-d --restart=always -p "127.0.0.1:${reg_port}:5000" --name "${reg_name}" \ | |
registry:2 |
This file contains 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
export constant = 'constant' |
This file contains 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
////////////////// | |
// Key Bindings // | |
////////////////// | |
//┏━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┓ | |
//┃ Num ┃ / ┃ * ┃ - ┃ | |
//┃━━━━━━━━━╉━━━━━━━╉━━━━━━━╉━━━━━━━┨ | |
//┃ 7 ┃ 8 ┃ 9 ┃ + ┃ | |
//┃━━━━━━━━━╉━━━━━━━╉━━━━━━━┨ ┃ | |
//┃ Galil ┃ 5 ┃ 6 ┃ + ┃ | |
//┃━━━━━━━━━╉━━━━━━━╉━━━━━━━╉━━━━━━━┨ |
This file contains 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 {useExternal} from "./useExternal"; | |
const useInternal = jest.spyOn(require('./useInternal'), 'useInternal') | |
useInternal.mockReturnValue(2) | |
test('useExternal', ()=>{ | |
const actual = useExternal() | |
const expected = 4 | |
expect(actual).toBe(expected) | |
}) |
This file contains 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
//https://stackoverflow.com/questions/58069059/dynamic-spacing-classes-with-sass | |
@function fibonacci($n){ | |
@if $n == 0{ | |
@return 0; | |
} @else if $n == 1 or $n == 2{ | |
@return 1; | |
} | |
@return fibonacci($n - 1) + fibonacci($n - 2); | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.