![]() |
![]() |
![]() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8.3) | |
project(my_project) | |
# assuming this file is shipped within your project | |
# in 'project_root/cmake/cxx_support.cmake' | |
include(${PROJECT_SOURCE_DIR}/cmake/cxx_support.cmake) | |
# Assert the build was triggered with | |
# cpp11 flag, cash otherwise. | |
assert_cpp11_support() |
^
= Ctrl
key
M
= Alt
key
^G (F1) Display this help text
^X (F2) Close the current file buffer / Exit from nano
^O (F3) Write the current file to disk
^J (F4) Justify the current paragraph
^R (F5) Insert another file into the current one
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <semaphore.h> | |
sem_t semaphore; | |
void threadfunc() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Base fragment to ensure the parent activity implements a contract interface. */ | |
public abstract class ContractFragment<T> extends Fragment { | |
private T mContract; | |
@Override | |
public void onAttach(Activity activity) { | |
try { | |
mContract = (T)activity; | |
} catch (ClassCastException e) { | |
throw new IllegalStateException(activity.getClass().getSimpleName() |
Recursively delete CVS directories:
find . -depth -name 'CVS' -exec rm -rf '{}' \; -print
Remove .svn directories from a git repository:
find . -depth -name '.svn' -exec git rm --cached -r '{}' \; -print
Remove .pyc files: