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
version: '3.8' | |
services: | |
homeassistant: | |
container_name: homeassistant | |
image: "ghcr.io/home-assistant/home-assistant:stable" | |
ports: | |
- "8123:8123" | |
volumes: | |
- /var/docker/homeassistant:/config | |
- /etc/localtime:/etc/localtime:ro |
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
#!/usr/bin/env bash | |
set -e | |
usage="usage: gifenc [input.mov] [output.gif] [resolution] [fps]" | |
if [ $# -ne 4 ]; then | |
echo "$usage" | |
exit 1 | |
fi |
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
// 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', |
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
EditorConfig.EditorConfig | |
HookyQR.beautify | |
HvyIndustries.crane | |
PeterJausovec.vscode-docker | |
annsk.alignment | |
chenxsan.vscode-standardjs | |
davidmart.theme-jsfiddle-like-syntax-vscode | |
dbaeumer.vscode-eslint | |
donjayamanne.githistory | |
eg2.tslint |
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
{ | |
"workbench.iconTheme": "vscode-icons", | |
"beautify.HTMLfiles": [ | |
"htm", | |
"html", | |
"php" | |
], | |
"vsicons.projectDetection.autoReload": true, | |
"editor.minimap.enabled": true, | |
"editor.minimap.maxColumn": 80, |
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
/** | |
* Finds element without a pair in an unsorted array of integers | |
* @param {array} A | |
* @return {int} element without a pair | |
*/ | |
function solution(A) { | |
let result = 0; | |
for (let element of A) { | |
// Apply Bitwise XOR to the current and next element |
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
/** | |
* Shift items in the array to the right by number of indexes | |
* @param {array} A | |
* @param {int} K | |
* @return {array} | |
*/ | |
function solution(A, K) { | |
// if A is meant to be shifted by its own length (K) then just return the array | |
if (A.length === K || K === 0) { | |
return A |
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
/** | |
* Function which calculates the binary gap of the integer N | |
* @param {int} N | |
* @return {int} result | |
*/ | |
function solution(N) { | |
// Convert decimal to binary | |
let binary = (N >>> 0).toString(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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/kamilwojtczyk/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="cobalt2" |