Skip to content

Instantly share code, notes, and snippets.

View DenisDov's full-sized avatar
🏠
Working from home

Denys Dovzhenko DenisDov

🏠
Working from home
View GitHub Profile
<?php wp_nav_menu(array('menu' => 'WP menu name', 'menu_class' => 'Your UL Class')); ?>
:invalid {
box-shadow: none;
}
:-moz-submit-invalid {
box-shadow: none;
}
:-moz-ui-invalid {
box-shadow:none;
nav
display: block
.sm-mytheme
background: #eeeeee
border-radius: 5px
.sm-mytheme a
padding: 12px
font-family: 'Oswald', sans-serif
<nav role="navigation">
<ul id="main-menu" class="sm sm-mytheme">
<li><a href="#">Home</a></li>
<li><a href="#about/">About</a>
<ul>
<li><a href="#">Introduction</a></li>
<li><a href="#">Themes</a></li>
<li><a href="#">The author</a></li>
<li><a href="#">The company</a>
<ul>
//== Media queries breakpoints
//
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
// Extra small screen / phone
//** Deprecated `$screen-xs` as of v3.0.1
$screen-xs: 480px !default
//** Deprecated `$screen-xs-min` as of v3.2.0
$screen-xs-min: $screen-xs !default
//** Deprecated `$screen-phone` as of v3.0.1
@DenisDov
DenisDov / main.dart
Last active February 24, 2019 22:04
Dart fetch
import 'dart:convert';
import 'dart:html';
void main() {
_getUsersList();
}
_getUsersList() {
final url = 'https://jsonplaceholder.typicode.com/users';
Future<HttpRequest> request = HttpRequest.request(url);
platform :ios, '9.1'
abstract_target 'Foo' do
# RN related
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'RCTAnimation',
'RCTBlob',
'RCTText',
@DenisDov
DenisDov / multiFilter.js
Created June 14, 2019 20:37 — forked from jherax/filterArray.js
Filters an array of objects with multiple criteria.
/**
* Filters an array of objects with multiple criteria.
*
* @param {Array} array: the array to filter
* @param {Object} filters: an object with the filter criteria as the property names
* @return {Array}
*/
function multiFilter(array, filters) {
const filterKeys = Object.keys(filters);
// filters all elements passing the criteria
@DenisDov
DenisDov / Timer.js
Created November 10, 2019 09:23 — forked from gHashTag/Timer.js
import React, { PureComponent } from 'react'
import { Text, View, StyleSheet } from 'react-native'
import moment from 'moment'
import { LIGHT_GRAY, WHITE, BLACK } from '../../styles/colors'
class Timer extends PureComponent {
state = {
remainingTime: 0,
isTimerVisible: true
}
@DenisDov
DenisDov / mysql_cheat_sheet.md
Created December 11, 2019 09:07 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH