Skip to content

Instantly share code, notes, and snippets.

View sdmg15's full-sized avatar
👨‍💻
C++ ❤️

Sonkeng sdmg15

👨‍💻
C++ ❤️
View GitHub Profile
@sdmg15
sdmg15 / effective_modern_cmake.md
Created May 13, 2019 20:01 — forked from mbinna/effective_modern_cmake.md
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

Code of Conduct

All participants of DevOfFuture are expected to abide by our Code of Conduct, both online and during in-person events that are hosted and/or associated with DevOfFuture. The Pledge

In the interest of fostering an open and welcoming environment, we pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. The Standards

Examples of behaviour that contributes to creating a positive environment include:

@sdmg15
sdmg15 / attributes.rb
Created April 22, 2019 09:34 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'

Dev of Future - A community of developers solving problems and learning together

What Dev Of Future is about

Dev of Future is an open source community where programmers share ideas and help each other grow. It was created in the middle of 2016 to connect more developers and designers to an ever-expanding network to foster software development excellence.

We believe it takes a village to raise a coder. We have created our virtual village for sharing and discovering great ideas, having debates, making friends, and also solve problems. Anyone can share articles, questions, discussions, etc. We make sure everyone is learning and are also motivated to become the world-class developers they desire to become.

Our mission is to connect developers, and anyone who wants to learn and share his knowledge with others. We also provide access to the best learning resources (contests, tutorials, blogs, etc.) from around the world. The community is in fact made of passionate developers sharing same ideas and who want

tic
clear; clf; clc; hold off;
%*****************************************
% Outside air characteristics *
%*****************************************
@sdmg15
sdmg15 / tinyblockchain-cli.php
Created December 29, 2017 04:46 — forked from vgrovestine/tinyblockchain-cli.php
Dirt simple blockchain implemented in PHP
<?php
class Block {
private $ts;
private $nonce = 0;
private $data;
private $prev_hash;
protected $hash;
private $hash_algorithm;
private $hash_prefix;
@sdmg15
sdmg15 / LL.java
Created October 8, 2017 11:24
A simple linked list
public class LL {
class Node{
int data;
Node next;
Node prev;
public Node(int data){
this.data = data;
this.next = null;
this.prev = null;
public class LL {
public LL(){}
static class Vertex{
int data;
Vertex next;
public Vertex(int data){
this.data = data;
@sdmg15
sdmg15 / bash-cheatsheet.sh
Created July 29, 2017 08:03 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@sdmg15
sdmg15 / sqrt.java
Created February 21, 2017 20:19
Computing the square root of a given number using Newton method's.
import java.util.Scanner ;
public class sdz {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println(squaroot(2,16,0.05));
}
static double squaroot(int start, double number , double precision){