Skip to content

Instantly share code, notes, and snippets.

View blongho's full-sized avatar
💭
I may be slow to respond.

Bernard Longho blongho

💭
I may be slow to respond.
View GitHub Profile
@blongho
blongho / config
Created December 17, 2020 13:38 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[sendemail]
smtpencryption = tls
@blongho
blongho / install-mongocxx-linux.sh
Created August 27, 2020 15:45
This script describes the steps that are needed to install mongocxx version 3.6 in a linux computer
#!/bin/bash
## Mongocxx depends on Mongoc. We first install that dependency
# 1. Install libmongoc with a Package Manager
sudo apt-get install libmongoc-1.0-0
# 2. Install libbson with a Package Manager
@blongho
blongho / install-opencv-linux.sh
Last active August 25, 2020 12:59
Install OpenCV on linux [ubunu]
######################################
# INSTALL OPENCV ON UBUNTU OR DEBIAN #
######################################
# -------------------------------------------------------------------- |
# SCRIPT OPTIONS |
# ---------------------------------------------------------------------|
OPENCV_VERSION='4.4.0' # Version to be installed
OPENCV_CONTRIB='NO' # Install OpenCV's extra modules (YES/NO)
# -------------------------------------------------------------------- |
@blongho
blongho / AdbCommands
Created October 15, 2019 09:30 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@blongho
blongho / Answer.hpp
Last active November 25, 2018 11:10
c++ multiple choice question created by blongho - https://repl.it/@blongho/c-multiple-choice-question
/**
* @file : Answer.hpp
* @author: blongho
* @since : 2018-11-25
* @brief : A class to hold an Answer for use in a multiple choice Question
**/
#ifndef ANSWER_H
#define ANSWER_H
#include <iostream>
def squares_in_range1():
"""
Assumptions:
1. multiplication() function works well
2. in_range() function works well
Takes values and checks if the square of the number is in range (i.e btn 50 and 100)
Computes square using multiplication(num, num)
If in range, it gets the string, "Inside", otherwise "Outside"
"""
summer_word = "resort"
found = False
for character in summer_word:
if character == "s":
found = True
break
ANSWER = found