Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Focusing

S. M. AMRAN smamran

:octocat:
Focusing
View GitHub Profile
@smamran
smamran / ahlehaqmedia.md
Last active Sep 6, 2021
আহলে হক মিডিয়া সাইটের সকল প্রশ্ন
View ahlehaqmedia.md
View alehaqmedia.json
[
{
"title":"মেসওয়াকের ফযীলত এবং তা কতটুকু লম্বা হতে হবে?",
"link":"https://ahlehaqmedia.com/11064/"
}, {
"title":"হারাম কাজে ডেকোরেশন সামগ্রী ভাড়া দেয়া যাবে কি?",
"link":"https://ahlehaqmedia.com/11043/"
}, {
"title":"বাবা মাকে না জানিয়ে বিয়ে ও বিবাহপূর্ব গোনাহ থেকে তওবার বিধান!",
"link":"https://ahlehaqmedia.com/11055/"
@smamran
smamran / enable_nativebridge
Created Apr 9, 2020 — forked from uzxmx/enable_nativebridge
android x86 /system/bin/enable_nativebridge
View enable_nativebridge
#!/system/bin/sh
PATH=/system/bin:/system/xbin
houdini_bin=0
dest_dir=/system/lib$1/arm$1
binfmt_misc_dir=/proc/sys/fs/binfmt_misc
if [ -z "$1" ]; then
if [ "`uname -m`" = "x86_64" ]; then
View Ubuntu Software.md

JDK 8/9 install

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java9-installer


sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
@smamran
smamran / Java 8 Thread.md
Last active Jun 5, 2016
Java 8 Thread Creation
View Java 8 Thread.md

Java 8 Thread Create

class Main
{
    public static void main(String args[])
    {
        Runnable task = () -> {
            String threadName = Thread.currentThread().getName();
            System.out.println(threadName);
        };
View Pthread Qt.md

C Project

Proj.pro

QMAKE_CXXFLAGS += -std=c++0x -pthread
LIBS += -pthread

main.c

#include <stdio.h>
#include <stdlib.h>
@smamran
smamran / MinGW Compatible VCC 11 Headers.md
Created Mar 1, 2016
MinGW Compatible VCC 11 Headers
View MinGW Compatible VCC 11 Headers.md

C++ MinGW & VCC 11 Compatible Headers

// Utilities library
#include <cstdlib>	// General purpose utilities: program control, dynamic memory allocation, random numbers, sort and search
#include <csignal>	// Functions and macro constants for signal management
#include <csetjmp>	// Macro (and function) that saves (and jumps) to an execution context
#include <cstdarg>	// Handling of variable length argument lists
#include <typeinfo>	// Runtime type information utilities
#include <typeindex>   // (since C++11)	std::type_index
#include <type_traits> // (since C++11)	Compile-time type information
View Visual C++ 11 Headers.md

Visual C++ All Headers

// Utilities library
#include <cstdlib>	// General purpose utilities: program control, dynamic memory allocation, random numbers, sort and search
#include <csignal>	// Functions and macro constants for signal management
#include <csetjmp>	// Macro (and function) that saves (and jumps) to an execution context
#include <cstdarg>	// Handling of variable length argument lists
#include <typeinfo>	// Runtime type information utilities
#include <typeindex>   // (since C++11)	std::type_index
#include <type_traits> // (since C++11)	Compile-time type information
View Android.md

Stores temporary apks after installation

>> /data/local/tmp
View msbuild.md

Parallel Build MsBuild Solution File

>> msbuild /p:Configuration=Release BigProj.sln /m
  [ /m = Parallel Build]

Build Universal Window Program From Command Line

>> MSBuild mysolution.sln  /p:Configuration=Release;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM"