Skip to content

Instantly share code, notes, and snippets.

View smamran's full-sized avatar
:octocat:
Focusing

S. M. AMRAN smamran

:octocat:
Focusing
View GitHub Profile
@smamran
smamran / C And C++.md
Last active June 5, 2016 12:09
C/C++ Codes

Char to String conversion C++

    int i = 65;
    char c = i;
    string s;
    stringstream ss;
    ss << c;
    ss >> s;
    cout << s << endl;
@smamran
smamran / Error List.md
Last active June 5, 2016 12:08
Android Error Remove

Remove Android Lint Error

android {

    lintOptions {
        abortOnError false
    }
}
@smamran
smamran / Useful Commands Linux.md
Last active June 5, 2016 12:07
Useful Commands Linux

Search Text in Directory Files

>> grep -r "Searching_Text" *

Grep File Name Pattern Search Text

>> grep -r --include "*.txt" texthere .
>> grep -r ----exclude "*.txt" texthere .
@smamran
smamran / Java 8 Thread.md
Last active June 5, 2016 12:05
Java 8 Thread Creation

Java 8 Thread Create

class Main
{
    public static void main(String args[])
    {
        Runnable task = () -> {
            String threadName = Thread.currentThread().getName();
            System.out.println(threadName);
 };
@smamran
smamran / msbuild.md
Last active May 24, 2016 08:57
msbuild

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"
@smamran
smamran / NodeJS.js
Created November 17, 2015 06:09
NodeJS
$$ node app.js -> Start App
$$ npm init -> initialize npm settings
$$ npm link -> set current project to global command variable which can be used from any directory
@smamran
smamran / Linux commands.md
Last active March 27, 2016 13:40
Linux Commands
ps aux | grep firefox
sudo killall cupsd
sudo apt-get install htop
sudo renice -5 2744         // Give Priority 2744  0 to -5
df -ah
ls -alh /proc               // List of all active processes 
ls -alh /proc/1 | less      
@smamran
smamran / SDK Android.md
Last active March 27, 2016 13:38
SDK Android

Run Prompt For Visual Studio Android Development

"C:\Program Files (x86)\Android\android-sdk\temp\ToolPackage.old01\android.bat"
@smamran
smamran / LinuxShell.md
Last active March 19, 2016 14:02
Linux Shell Run Root Directory files from current directory

c9.io Command

  sudo cp FileWalker.java /                                        ## copy FileWalker.java file to /(root) directory.
  (cd ..; cd .. ; cd .. ; javac FileWalker.java; java FileWalker)  ## it's a subshell , which executes a list of commands from current dir
  cp libc.h /home/ubuntu/workspace/                                ## compies libc.h file to c9.io workspace
  hostname -I                                                      ## get ip address of current machine