Skip to content

Instantly share code, notes, and snippets.

Robert Haritonov operatino

Block or report user

Report or block operatino

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@operatino
operatino / MySQL_5-7_macOS.md
Last active Oct 17, 2019 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL 5.7 on macOS using Homebrew
View MySQL_5-7_macOS.md

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
View .htaccess
# Apache Server Configs v2.14.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have
# access to the main server configuration file (which is usually called
# `httpd.conf`), you should add this logic there.
#
# https://httpd.apache.org/docs/current/howto/htaccess.html.
# ######################################################################
View example.html
<!-- Template to be transformed into Shadow DOM -->
<template>
<a href="" class="button">Button</a>
<script>
document.querySelectorAll('.button'); // Document is global, but how to reference current Shadow DOM document?
</script>
<template>
@operatino
operatino / route.js
Created Jul 1, 2015
SourceJS route example: bower_components from root to local
View route.js
var url = require('url');
var path = require('path');
var fs = require('fs');
var specUtils = require(path.join(global.pathToApp, 'core/lib/specUtils'));
var prevRef = 'http://google.com';
// Search requested resource in ref path first
var searchInRefPath = function(req, res, next){
var originalUrl = req.originalUrl;
@operatino
operatino / gist:d8ec45b39c27ade30757
Created Jun 26, 2014
Reading Grunt config from custom functions in Gruntfile.js for further use in config
View gist:d8ec45b39c27ade30757
/*
Usefull snippent for this kind of custom Grunt functions https://gist.github.com/operatino/bd857f570adaf2872c37
*/
module.exports = function (grunt) {
var baseConfig = {
foo: 'bar'
@operatino
operatino / gist:bd857f570adaf2872c37
Created Jun 26, 2014
Custom Grunt script for couting CSS imports count, and seperating files before hitting IE limit of 31 imports
View gist:bd857f570adaf2872c37
/*
Processing CSS @imports file, and counting how much @imports it includes.
If import count reaches the limit of 31 files (in IE8-9) and more, script will create additional CSS files:
input.css:
@import 1;
...
@import 36;
@operatino
operatino / preprocessors-cheatsheet.scss
Last active Jun 25, 2019
Preprocessors style guide cheatsheet
View preprocessors-cheatsheet.scss
//
// Preprocessors style guide cheatsheet
// =============================================================================================
//
// Level 1
// ----------------------------------------------------------------------------------
.somecode {
@operatino
operatino / description.css
Created Feb 17, 2014
Description and TODOs in CSS
View description.css
/**
* author: robert.haritonov | skype : haritonov.r
* spec: http://link
* created: 05.12.13
*
* comments:
* @project class:
* @project colors:
**/
@operatino
operatino / organisation.css
Last active Aug 29, 2015
CSS organisation
View organisation.css
/*
CSS organisation principles
==============================================================================================
*/
.elem-no-rules {}
.elem-no-rules_child {
display: inline-block;
}
You can’t perform that action at this time.