A Pen by Olena Sovyn on CodePen.
This file contains hidden or 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
<?php | |
DEFINE('DB_USER', 'root'); | |
DEFINE('DB_PASSWORD', 'root'); | |
DEFINE('DB_HOST', 'localhost'); | |
DEFINE('DB_NAME', 'minor_shopping_cart'); | |
function db_connect() { | |
$connection = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME, "3306"); | |
return $connection; | |
} |
This file contains hidden or 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
export enum Industries { | |
INDUSTRY = 'INDUSTRY', | |
ACCOUNTING = 'ACCOUNTING', | |
AIRLINES_OR_AVIATION = 'AIRLINES/AVIATION', | |
ALTERNATIVE_DISPUTE_RESOLUTION = 'ALTERNATIVE_DISPUTE_RESOLUTION', | |
ALTERNATIVE_MEDICINE = 'ALTERNATIVE_MEDICINE', | |
ANIMATION = 'ANIMATION', | |
APPAREL_OR_FASHION = 'APPAREL/FASHION', | |
ARCHITECTURE_OR_PLANNING = 'ARCHITECTURE/PLANNING', | |
ARTS_OR_CRAFTS = 'ARTS/CRAFTS', |
This file contains hidden or 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
import React, { Component } from 'react'; | |
import { Link } from 'react-router-dom'; | |
import { CSSTransition } from "react-transition-group"; | |
import logo from '../../image/logo.png'; | |
import menuIcon from '../../image/menu-button.svg'; | |
import './Topbar.scss'; | |
import Sidebar from './Sidebar'; | |
class Topbar extends Component { | |
state = { |
This file contains hidden or 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 a = ["sdfdf", "http://oooooolol"], | |
handleNetErr = function(e) { return e }; | |
Promise.all(fetch('sdfdsf').catch(handleNetErr), fetch('http://invalidurl').catch(handleNetErr)) | |
.then(function(sdf, invalid) { | |
console.log(sdf, invalid) // [Response, TypeError] | |
}) | |
.catch(function(err) { | |
console.log(err); | |
}) |
This file contains hidden or 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
const url = 'https://reqres.in/api/users'; | |
// لعرض الصفحة | |
const getPages = '?page='; | |
// declare Element | |
const render = document.getElementById('render'), | |
title = document.getElementById('title'); | |
function load (pageNum){ | |
let xReq = new XMLHttpRequest(); |
This file contains hidden or 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
// key frames | |
// ripple | |
@function number($value) { | |
@if type-of($value) == 'number' { | |
@return $value; | |
} @else if type-of($value) != 'string' { | |
$_: log('Value for `to-number` should be a number or a string.'); |
This file contains hidden or 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
// select database path => mongod --dbpath=<dbpath> |
NewerOlder