Skip to content

Instantly share code, notes, and snippets.

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

Sonkeng sdmg15

👨‍💻
C++ ❤️
View GitHub Profile
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){
@sdmg15
sdmg15 / matrixComputing.java
Last active January 2, 2017 05:30
A manner to compute matrix trace, and display it with matrix data.
import java.util.Scanner;
public class sdz {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int numberOfrows ;
System.out.print("Enter the number of row and cols in the matrix : ");
@sdmg15
sdmg15 / decimal_binary.java
Created October 22, 2016 17:36
Simple decimal to binary converter
import java.util.Scanner;
public class sdz {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int nbrTodiv, modDiv,tmp;
String result ="";
System.out.println("Entrez le nombre à convertir ");
@sdmg15
sdmg15 / codepen-logo-drawing-animation.markdown
Created August 16, 2016 16:02
CodePen Logo Drawing Animation
@sdmg15
sdmg15 / engine_json.html
Last active June 15, 2016 04:15
Simple search engine of towns based on DOM to parse received data.
<!doctype html>
<html>
<head>
<title>Search engine </title>
<meta charset="utf-8">
</head>
<body>
<style>
#search{