Skip to content

Instantly share code, notes, and snippets.

View webstyle's full-sized avatar
🎯
Focusing

Farrukh Mamatkhalilov webstyle

🎯
Focusing
  • Tashkent, Uzbekistan
View GitHub Profile
@webstyle
webstyle / .vimrc
Created May 25, 2020 17:17
my .vimrc
set rtp+=~/.vim/bundle/Vundle.vim
syntax on
filetype plugin indent on
colorscheme night-owl
nmap <silent> <C-D> :NERDTreeToggle<CR>
let g:user_emmet_expandabbr_key = '<C-D>'
call vundle#begin()
@webstyle
webstyle / .zshrc
Created May 25, 2020 17:17
my .zshrc file
# 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/webstyle/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@webstyle
webstyle / docx2pdf.py
Created December 19, 2019 14:01 — forked from MichalZalecki/docx2pdf.py
Converting DOCX to PDF using Python
import sys
import subprocess
import re
def convert_to(folder, source, timeout=None):
args = [libreoffice_exec(), '--headless', '--convert-to', 'pdf', '--outdir', folder, source]
process = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=timeout)
filename = re.search('-> (.*?) using filter', process.stdout.decode())
@webstyle
webstyle / main.js
Last active August 11, 2017 18:45
ES6: String interpolation
let name = 'World';
let greeting = `Hello ${name}`;
let content = `Dear ${name}.
this is
multi line text`;
var name = 'John Doe';
var content = 'Dear' + name '.'
+ 'this is'
+ 'multi line text';
var name = 'World';
var greeting = 'Hello '+ name + '!';