Skip to content

Instantly share code, notes, and snippets.

View liorocks's full-sized avatar

Lio liorocks

View GitHub Profile
@liorocks
liorocks / user-settings.md
Last active November 18, 2017 11:50
VSCode User Settings
{
  "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,
@liorocks
liorocks / jsconfig.md
Last active May 25, 2023 13:47
jsconfig.json

jsconfig.json

{
  "compilerOptions": {
    "baseUrl": "./src",
    "target": "ES6",
    "jsx": "preserve",
    "allowSyntheticDefaultImports": true
  },
 "exclude": ["build", "node_modules"]
@liorocks
liorocks / prettier.md
Last active September 13, 2017 15:16
Default options for Prettier
@liorocks
liorocks / git.md
Last active September 4, 2017 05:51
GIT Tips & Tricks

Change Remote URL

$ git remote set-url origin <remote_repo>

Discard Unstaged/Untracked Changes

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

Full Month Names

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

Short Month Names

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

Faster NPM

Execute the following command, before running npm install:

$ npm set progress=false
@liorocks
liorocks / KeyCodes.md
Created November 19, 2015 13:46
KeyCodes
var keyCode = {
    /**
     * keypress event key-codes
     */
    'keyPress': {
        'GraveAccent': 96, // `
        'One': 49, // 1
 'Two': 50, // 2
@liorocks
liorocks / cli-debugging.md
Last active December 8, 2015 12:34
Ionic

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
@liorocks
liorocks / unicode-range.css
Last active August 29, 2015 14:27
CSS @font-face unicode-range property for Georgian fonts
@font-face {
/* ... */
unicode-range: U+10D0-10F0;
}
factory('cometd', function($rootScope) {
var cometd = $.cometd;
// Configure cometd
cometd.configure({
url: location.protocol + '//' + location.host + config.contextPath + '/cometd',
logLevel: 'info'
});
// Add a listener for the handshake *TODO* what should be done if message fails ?