Skip to content

Instantly share code, notes, and snippets.

View devellopah's full-sized avatar

Islam Ibakaev devellopah

  • 19:08 (UTC +03:00)
View GitHub Profile
'use strict'; // avoid ambiguity and sloppy errors
/**
* Tests whether or not a given string is a Palindrome
* @param {string} stringToTest - the string to test.
*/
function isPalindrome(stringToTest) {
var start = 0,
end;
  • Alignment
  • ApplySyntax
  • AutoBackups
  • BracketGuard
  • BracketHighlighter
  • Case Conversion
  • Color Highlighter
  • ColorPicker
  • ColorSchemeSelector
  • Console Wrap for js
@devellopah
devellopah / bling.js
Created July 28, 2017 01:25 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
ERROR in ./node_modules/css-loader?{"url":true,"sourceMap":true,"importLoaders":1}!./node_modules/postcss-loader/lib?{"sourceMap":true,"ident":"postcss","plugins":[null]}!./node_modules/resolve-url-loader?{"sourceMap":true,"root":"E://OSPanel//domains//portal//node_modules"}!./node_modules/sass-loader/lib/loader.js?{"precision":8,"outputStyle":"expanded","sourceMap":true}!./resources/assets/sass/app.scss
Module build failed:
@import "bootstrap/variables";
^
File to import not found or unreadable: bootstrap/variables.
Parent style sheet: E:/OSPanel/domains/portal/node_modules/bootstrap-material-design/sass/_import-bs-sass.scss
in E:\OSPanel\domains\portal\node_modules\bootstrap-material-design\sass\_import-bs-sass.scss (line 1, column 1)
@ ./resources/assets/sass/app.scss 4:14-266
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
@devellopah
devellopah / eloquent-cheatsheet.php
Created December 17, 2017 03:46 — forked from hassansin/eloquent-cheatsheet.php
Laravel 5 Eloquent CheatSheet #laravel #eloquent
Model::
/*Select*/
select('col1','col2')
->select(array('col1','col2'))
->select(DB::raw('businesses.*, COUNT(reviews.id) as no_of_ratings, IFNULL(sum(reviews.score),0) as rating'))
->addSelect('col3','col4')
->distinct() // distinct select
/*From*/
@devellopah
devellopah / flexbox.scss
Created January 8, 2018 17:13 — forked from richardtorres314/flexbox.scss
CSS Flexbox - Sass Mixins
// --------------------------------------------------
// Flexbox SASS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
@mixin flexbox() {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
@devellopah
devellopah / bootstrap-4-sass-mixins-cheat-sheet.scss
Created January 8, 2018 17:13 — forked from anschaef/bootstrap-4-sass-mixins-cheat-sheet.scss
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 4 Sass Mixins [Cheat sheet]
// @author http://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/v4-dev/scss/mixins
/* -------------------------------------------------------------------------- */
// Grid variables
$grid-columns: 12 !default;
$grid-gutter-width: 30px !default;
2018-01-29 16:14:26 81.24.87.129
Table 'byb.wa_app_settings' doesn't exist
## wa-system/database/waDbMysqliAdapter.class.php(292)
#0 wa-system/database/waDbMysqliAdapter.class.php(168): waDbMysqliAdapter->exception()
#1 wa-system/database/waModel.class.php(171): waDbMysqliAdapter->schema('wa_app_settings', false)
#2 wa-system/database/waModel.class.php(127): waModel->describe()
#3 wa-system/database/waModel.class.php(97): waModel->getFields()
#4 wa-system/database/waModel.class.php(77): waModel->getMetadata()
#5 wa-system/contact/waContact.class.php(67): waModel->__construct()
@devellopah
devellopah / functions.php
Created February 25, 2018 16:09 — forked from kontikidigital/functions.php
WooCommerce: Change Select Options Button Text for variable products
add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' );
/**
* custom_woocommerce_template_loop_add_to_cart
*/
function custom_woocommerce_product_add_to_cart_text() {
global $product;
$product_type = $product->product_type;
switch ( $product_type ) {
@devellopah
devellopah / urls
Last active February 25, 2018 17:11
<?php echo get_permalink( wc_get_page_id( 'myaccount' ) ); ?>
<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>
<?php echo get_permalink( wc_get_page_id( 'cart' ) ); ?>
<?php echo get_permalink( wc_get_page_id( 'checkout' ) ); ?>