Skip to content

Instantly share code, notes, and snippets.

View embeddedmz's full-sized avatar

Mohamed Mzoughi embeddedmz

  • Tunisia
View GitHub Profile
@RobertAKARobin
RobertAKARobin / python.md
Last active June 13, 2024 04:24
Python Is Not A Great Programming Language
@UnaNancyOwen
UnaNancyOwen / vcpkg_qtcreator.md
Last active December 21, 2021 18:05
How to use Qt that installed by Vcpkg with Qt Creator

How to use Qt that installed by Vcpkg with Qt Creator

(0) Install Qt using Vcpkg

Vcpkgを使用してQtをインストールする。(e.g. C:\vcpkg)

cd C:\vcpkg
.\vcpkg install qt5:x64-windows
@ashee
ashee / burn-iso-dvd.sh
Last active June 27, 2023 04:59
Burn iso to dvd from CLI on CentOS 7
# install dvd+rw-tools
$ sudo yum install dvd+rw-tools
$ sudo growisofs -speed=1 -dvd-compat -Z /dev/sr0=/home/amitava/dl/CentOS-7-x86_64-DVD-1503-01.iso
@0
0 / bluetooth_serial.md
Last active May 15, 2024 07:01
Connecting a Bluetooth device for serial communication on Arch Linux.

The following are instructions for connecting a Bluetooth device for serial communication on Arch Linux using BlueZ 5.31.

Prerequisites

The following packages are required:

  • bluez: bluetoothd
  • bluez-utils: bluetoothctl, rfcomm
@ugovaretto
ugovaretto / win-gettimeofday.c
Last active March 17, 2024 00:30
gettimeofday implementaiton for windows
/*
* Author: Ugo Varetto - ugovaretto@gmail.com
* This code is distributed under the terms of the Apache Software License version 2.0
* https://opensource.org/licenses/Apache-2.0
*/
#include < time.h >
#include < windows.h >
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
@dhirschfeld
dhirschfeld / test_interpolate.cpp
Created February 18, 2013 11:36
Demonstration of bug in MKL version 11.2
#include <iostream>
#include <vector>
#include <mkl.h>
#include <mkl_df.h>
using namespace std;
int main () {
const int nx = 11; // #rows in x
const int ny = 1; // #cols in y
@Keith-S-Thompson
Keith-S-Thompson / urandom_test.c
Created February 4, 2013 02:38
Generate random numbers from /dev/urandom
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#define MAX 36
#define URANDOM_DEVICE "/dev/urandom"
static FILE *urandom;
/*