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
# create a file C:\Users\[user]\.bashrc | |
# add this content | |
# add your onw aliases or changes these ones as you like | |
# to make a dot (.bashrs) file in windows, create a file ".bashrs." (without extention) and save. windows will save it as ".bashrc" | |
alias ls='ls -alh' | |
alias cdnginx='cd /c/nginx && ls' | |
alias cdmcga='cd /c/Users/[user]/sbox/node/mcga && ls' | |
alias cdfood9='cd /c/Users/[user]/sbox/node/food9 && ls' | |
alias cdmysql='cd /c/nginx/mysql/bin && ls' |
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
{ | |
// The plugin looks for a .jsbeautifyrc file in the same directory as the | |
// source file you're prettifying (or any directory above if it doesn't exist, | |
// or in your home folder if everything else fails) and uses those options | |
// along the default ones. | |
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options | |
// Documentation: https://github.com/einars/js-beautify/ | |
"html": { | |
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust"], |
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
# ВСЕ СВОЙСТВА СМ. ВНИЗУ ФАЙЛА | |
# или здесь с описанием https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties | |
# | |
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# http://editorconfig.org | |
root = true | |
[*] |
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
@ECHO OFF | |
REM only set your own pathes | |
REM read here on how to persist macroses in cmd | |
REM https://gist.github.com/vladikoff/38307908088d58af206b | |
REM http://web.archive.org/web/20140330024520/http://devblog.point2.com/2010/05/14/setup-persistent-aliases-macros-in-windows-command-prompt-cmd-exe-using-doskey/ | |
DOSKEY cdnginx=cd C:\nginx | |
DOSKEY cdmysql=cd C:\nginx\mysql\bin | |
DOSKEY cdsbox=cd C:\Users\[user]\sbox |
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
'use strict'; | |
const NODE_ENV = process.env.NODE_ENV || 'development'; | |
/* React and Redux stuff */ | |
const React = require('react'); | |
const ReactDOM = require('react-dom'); | |
import { Provider } from 'react-redux'; | |
import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; | |
import thunkMiddleware from 'redux-thunk'; |
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
'use strict'; | |
const util = require('util'); | |
let NODE_ENV = process.env.NODE_ENV || 'development'; | |
const webpack = require('webpack'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const autoprefixer = require('autoprefixer'); | |
const path = require('path'); | |
var isDebug = true; |
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
'use strict'; | |
const webpack = require('webpack'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const autoprefixer = require('autoprefixer'); | |
const path = require('path'); | |
let SpritesmithPlugin = require('webpack-spritesmith'); | |
var isDebug = true; |
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
# Ubuntu 14.04 Install Steps | |
# This information assumes you’re storing your data in /mnt/data — both elasticsearch data and pelias map data. I chose | |
# to create a separate volume keeping the data from the system, separated. You can still use /mnt/data without creating | |
# another volume to store it. | |
# Default ubuntu user runs all the commands, except for elevated ones. ubuntu user will run api | |
# Fix hosts file (simply adding ip hostname) | |
sudo nano /etc/hosts |
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
// Standard horizontal list, using word-spacing trick to remove whitespace | |
// between inline-block elements. | |
@mixin horizontal-list { | |
padding: 0; | |
text-align: center; | |
word-spacing: -1em; | |
display: table; | |
width: 100%; | |
li { |
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
var data = "do shash'owania"; | |
var crypto = require('crypto'); | |
crypto.createHash('md5').update(data).digest("hex"); |
NewerOlder