This file contains hidden or 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 <iostream> | |
#include <functional> | |
#include <queue> | |
// These includes are for later experimentation | |
#include <thread> | |
#include <atomic> | |
std::queue<std::function<void()>> funcs; | |
This file contains hidden or 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
[DEBUG] otk_session_private.cpp:3531 - force_mute_audio_all | |
[DEBUG] otk_messenger_v2.cpp:3475 - otk_messenger_v2::send_force_mute_all[num_excluded_stream_ids=0, is_active_mute_on_entry = 0] | |
[DEBUG] otk_anvil.cpp:59 - otk_anvil_get_info[otk_anvil* anvil_instance=0x10ff192c0] | |
[DEBUG] raptor_message_v2.cpp:1231 - raptor_v2_alloc_update_mute[const char* szURI=/v2/partner/1303/session/1_MX4xMzAzfn4xNjMyOTE4MjI4MjkwflBnaThxVTRiWEhhMmNycTFwYS80RHgzR35-] | |
[DEBUG] otk_anvil.cpp:59 - otk_anvil_get_info[otk_anvil* anvil_instance=0x10ff192c0] | |
[DEBUG] otk_anvil.cpp:59 - otk_anvil_get_info[otk_anvil* anvil_instance=0x10ff192c0] | |
[DEBUG] rumor_client_v1.c:262 - otk_rumor_v1_client_send[otk_rumor_v1_msg_type=2,otk_rumor_v1_client* pClient=0x109a3d670,OTK_RUMOR_V1_ADDRESS_NUM_TYPE nNumAddresses=1,OTK_RUMOR_V1_PARAM_NUM_TYPE nNumParams=3,OTK_RUMOR_V1_PAYLOAD_LENGTH_TYPE nPayloadLength=210] | |
[DEBUG] rumor_client_v1.c:267 - Rumor Payload: {"method": "update", "uri": "/v2/partner/1303/session/1_MX4xMzAzfn4xNjMyOTE4MjI4MjkwflBnaThxVT |
This file contains hidden or 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
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
This file contains hidden or 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
#!/bin/sh | |
## | |
# Install autoconf, automake and libtool smoothly on Mac OS X. | |
# Newer versions of these libraries are available and may work better on OS X | |
# | |
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html | |
# | |
export build=~/devtools # or wherever you'd like to build |
This file contains hidden or 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 <iostream> | |
#include <sys/resource.h> | |
int main(int argc, char* argv[]) | |
{ | |
struct rlimit limit; | |
getrlimit (RLIMIT_STACK, &limit); | |
std::cout << "Stack Limit = " << limit.rlim_cur/1024 << " Kbytes and max limit = " << limit.rlim_max/1024 << " Kbytes." << std::endl; | |
return 0; | |
} |
This file contains hidden or 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
# Check/Test for Prime Number in Tensorflow! | |
# I got approximately 75% accuracy. Feel free to let me know if you find anything wrong | |
# or ways the performance can be improved | |
#Inspired by Joel Grus (http://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/) | |
import numpy as np | |
import tensorflow as tf | |
from math import sqrt | |
from itertools import count, islice |