Skip to content

Instantly share code, notes, and snippets.

View jintgeorge's full-sized avatar

Jint George jintgeorge

View GitHub Profile
@jintgeorge
jintgeorge / test.cpp
Created March 5, 2024 22:20 — forked from Justasic/test.cpp
Use C++11 features to implement a function queue which calls functions later but queues them up in a FIFO queue. Compile with: clang -std=c++11 -stdlib=libc++
#include <iostream>
#include <functional>
#include <queue>
// These includes are for later experimentation
#include <thread>
#include <atomic>
std::queue<std::function<void()>> funcs;
[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
@jintgeorge
jintgeorge / AdbCommands
Created August 5, 2021 08:08 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@jintgeorge
jintgeorge / cltools.sh
Created May 9, 2019 00:51 — forked from justinbellamy/cltools.sh
Install Autoconf and Automake on OS X El Capitan
#!/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
#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;
}
@jintgeorge
jintgeorge / checkPrime.py
Last active March 25, 2017 20:17
Fun with Neural Networks (NNs) using TensorFlow Backend. Amazing Universal Approximators. Checking whether Prime or Not with Neural Networks (Inspired from fizzbuzz code by Joel Grus (http://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/)) Accuracy on Test Data: 75% accuracy on Test Data with 100 Hidden Units and 81% with 1000 Hidden Units. Fe…
# 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