Skip to content

Instantly share code, notes, and snippets.

Avatar

Lado Lomidze Landish

View GitHub Profile
@Landish
Landish / user-settings.md
Last active Nov 18, 2017
VSCode User Settings
View user-settings.md
{
  "workbench.statusBar.visible": false,
  "workbench.startupEditor": "none",
  "workbench.iconTheme": "material-icon-theme",
  "workbench.colorTheme": "Atom One Dark",
  "editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace",
  "editor.fontSize": 14,
  "editor.fontLigatures": true,
  "editor.formatOnSave": true,
@Landish
Landish / jsconfig.md
Last active Oct 28, 2019
jsconfig.json
View jsconfig.md

jsconfig.json

{
  "compilerOptions": {
    "baseUrl": "./src",
    "target": "ES6",
    "jsx": "preserve",
    "allowSyntheticDefaultImports": true
  },
  "exclude": ["build", "node_modules"]
@Landish
Landish / router.md
Created Nov 16, 2017
Reload Current Page With React Router 4
View router.md
componentWillReceiveProps(nextProps) {
  const currLocationKey = this.props.location.key;
  const nextLocationKey = nextProps.location.key;
  if (currLocationKey !== nextLocationKey) {
    // do the magic here
  }
}
@Landish
Landish / prettier.md
Last active Sep 13, 2017
Default options for Prettier
View prettier.md
@Landish
Landish / git.md
Last active Sep 4, 2017
GIT Tips & Tricks
View git.md

Change Remote URL

$ git remote set-url origin <remote_repo>

Discard Unstaged/Untracked Changes

$ git checkout -- .
$ git reset --hard
@Landish
Landish / calendar.md
Last active May 28, 2016
Month names and week days in array translated in Georgian
View calendar.md

Full Month Names

['იანვარი', 'თებერვალი', 'მარტი', 'აპრილი', 'მაისი', 'ივნისი', 'ივლისი', 'აგვისტო', 'სექტემბერი', 'ოქტომბერი', 'ნოემბერი', 'დეკემბერი']

Short Month Names

['იან', 'თებ', 'მარ', 'აპრ', 'მაი', 'ივნ', 'ივლ', 'აგვ', 'სექ', 'ოქტ', 'ნოე', 'დეკ']
@Landish
Landish / node.md
Created Apr 2, 2016
Node/NPM Tips & Tricks
View node.md

Faster NPM

Execute the following command, before running npm install:

$ npm set progress=false
View KeyCodes.md
var keyCode = {
    /**
     * keypress event key-codes
     */
    'keyPress': {
        'GraveAccent': 96, // `
        'One': 49, // 1
        'Two': 50, // 2
View cli-debugging.md

CLI Debugging

ionic emulate ios --livereload --consolelogs --serverlogs
ionic emulate android --livereload --consolelogs --serverlogs
 
ionic run ios -l -c -s
ionic run android -l -c -s
@Landish
Landish / unicode-range.css
Last active Aug 29, 2015
CSS @font-face unicode-range property for Georgian fonts
View unicode-range.css
@font-face {
/* ... */
unicode-range: U+10D0-10F0;
}
You can’t perform that action at this time.