Skip to content

Instantly share code, notes, and snippets.

@Dimitreee
Dimitreee / iterm2-solarized.md
Created September 21, 2020 07:17 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@Dimitreee
Dimitreee / webos-ss-client.js
Created July 13, 2020 11:24 — forked from jlai/webos-ss-client.js
Example nodejs code for connecting to a webOS Smart TV
/*
* Copyright (c) 2014 LG Electronics.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software

Принципы разработки Амплифера

Тут перечислены не законы, последние слово всегда за здравым смыслом. Тут перечислены лишь направление, куда надо стремиться. Принципы, которые должны помочь, когда не знаешь, что выбрать.

Ценности

  1. Пользователь. Если что-то сильно мешает UX или есть критическая ошибка, то в первую очередь мы спасаем пользователей. Для этого иногда надо взять ответственность на себя, переубедить толпу, написать плохой код.
$ git remote rm origin
$ git remote add origin git@github.com:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@Dimitreee
Dimitreee / git-tag-delete-local-and-remote.sh
Created September 20, 2018 11:13 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@Dimitreee
Dimitreee / LocalStorage.ts
Created May 17, 2018 13:45 — forked from picode7/ LocalStorage.ts
LocalStorage TypeScript Module
/**
* Check if localStorage is supported const isSupported: boolean
* Check if localStorage has an Item function hasItem(key: string): boolean
* Get the amount of space left in localStorage function getRemainingSpace(): number
* Get the maximum amount of space in localStorage function getMaximumSpace(): number
* Get the used space in localStorage function getUsedSpace(): number
* Get the used space of an item in localStorage function getItemUsedSpace(): number
* Backup Assosiative Array interface Backup
* Get a Backup of localStorage function getBackup(): Backup
* Apply a Backup to localStorage function applyBackup(backup: Backup, fClear: boolean = true, fOverwriteExisting: boolean = true)
|[1] - 1)mobile: imageCropView +
| - 2)back: Api - normalize +
min | - 3)front: Image preprocessing (crop & fill) -> Image Size Restore -> API wrapper +
|
|[2] - 1)mobile: imagePreprocessing -> API wrapper +
| - 2)back: find local segment -> recognize segment data -> parse recognized data -> fill user profile +
/*___________________________________________________________*/
| - 3)front: shape recognition (Reasearch) *1 ...pending
# Make ls use colors
export CLICOLOR=1
alias grep='grep --color=auto'
# Set default editor
EDITOR=nano
# Configure command line colors
export CLICOLOR=1
alias ls='ls -GFh'
var path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'src') + '/app/index.js',
output: {
path: path.resolve(__dirname, 'dist') + '/app',
filename: 'bundle.js',
publicPath: '/app/'
},
@Dimitreee
Dimitreee / gist:4e0050ceebcadb12119d234b957662dc
Created March 29, 2018 08:17 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote