Skip to content

Instantly share code, notes, and snippets.

View BugKiller-tech's full-sized avatar
😎
Happy coding!!

LeadDev BugKiller-tech

😎
Happy coding!!
View GitHub Profile
-- creating a selection Query [30 minutes]

-- make a query which will display all related vendors per transpoort item
-- (referenced by commodities [which referenced by transport_item_commodities to transport items]), 
-- resulting selection output should present 2 columns only ->
-- 1. "transport_number" - 
-- 2. "related_vendor_names" - calculated value of all vendors per row of 
--    single transport item (without duplication of vendor's name).
--    fetch the collection of related vendors in comma seperated value format.
/*
  below there is a data collection of transport items objects. 
  inside the data collection there are random transport items.
  some of the transports has other related transport items, 
  each transport item data object has amount of cargo items and price.
  
  solve the following 2 tasks. 
  any web page on the internet can be used as helping reference for these tasks.
  main objective is to supply a working solution !

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

You have two options to resolve the conflict:
1) Resolve them without a pull request.
To do this, you would checkout the master branch, and then pull in the release branch. This is effectively the solution that Bitbucket Server give you when you ask for more information on how to solve the conflict.
$ git checkout master
$ git pull origin release/2
<resolve merge conflicts and commit>
import numpy as np
import multiprocessing as multi
def chunks(n, page_list):
"""Splits the list into n chunks"""
return np.array_split(page_list,n)
cpus = multi.cpu_count()
workers = []
page_list = ['www.website.com/page1.html', 'www.website.com/page2.html'
@BugKiller-tech
BugKiller-tech / README-Template.md
Created March 7, 2019 16:00 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@BugKiller-tech
BugKiller-tech / list_of_temp_mail.txt
Created March 6, 2019 17:32
List Of temp email
0-00.usa.cc
0-mail.com
001.igg.biz
027168.com
0815.ru
0815.ry
0815.su
0845.ru
0box.eu
0clickemail.com

Make sure you have done a git pull first:

git pull

If you have and you still have trouble you might have local uncommitted changes.

To stash (preserves local changes WITHOUT committing them):

git stash \ git pull \ git stash pop

To reset (discards all local changes)

git reset --hard

@BugKiller-tech
BugKiller-tech / AppStatusNoty.swift
Created August 29, 2018 11:01
iOS swift - display indicator on top
//
// AppStatusNoty.swift
// DeliveryCustomerApp
//
// Created by Admin on 7/24/17.
// Copyright © 2017 HC. All rights reserved.
//
//
// LoadingStatus.swift
// hkg328

create admin user

mongo

    use admin
    db.createUser(
      {
        user: "AdminSammy",
        pwd: "AdminSammy'sSecurePassword",
        roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
      }