(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # /etc/sysctl.conf | |
| # Clemens Gruber, 2014 | |
| # | |
| # Uncomment this to prevent users from seeing information about processes that | |
| # are being run under another UID. | |
| security.bsd.see_other_uids=0 | |
| ## I/O |
| static const clang::FileEntry * getFileEntryForDecl(const clang::Decl * decl, clang::SourceManager * sourceManager) | |
| { | |
| if (!decl || !sourceManager) { | |
| return 0; | |
| } | |
| clang::SourceLocation sLoc = decl->getLocation(); | |
| clang::FileID fileID = sourceManager->getFileID(sLoc); | |
| return sourceManager->getFileEntryForID(fileID); | |
| } | |
| // From https://raw.githubusercontent.com/ahmedammar/imx-testing-apps-misc/master/libvpu_encode.c | |
| include <stdlib.h> | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <string.h> | |
| #include <fcntl.h> /* fcntl */ | |
| #include <sys/mman.h> /* mmap */ | |
| #include <sys/ioctl.h> /* fopen/fread */ | |
| #include "vpu_io.h" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
If your system is running slowly, perhaps a process is using too much CPU time and won't let other processes run smoothly. To find out which processes are taking up a lot of CPU time, you can use Apple's Activity Monitor.
The CPU pane shows how processes are affecting CPU (processor) activity:
| #!/bin/bash | |
| rm -rf CMake* | |
| export NDK=/home/syoyo/local/android-ndk-r10e | |
| export SYSROOT=$NDK/platforms/android-21/arch-arm64 | |
| export CC="$NDK/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc" | |
| export CXX="$NDK/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-g++" |
| #!/usr/bin/python | |
| import sys | |
| from keystone import * | |
| from unicorn import * | |
| from unicorn.arm_const import * | |
| from capstone import * | |
| from capstone.arm import * | |
| from capstone.x86 import * |