Skip to content

Instantly share code, notes, and snippets.

View pranavghate94's full-sized avatar
🎯
Focusing

Pranav Ghate pranavghate94

🎯
Focusing
View GitHub Profile
@pranavghate94
pranavghate94 / openface.cpp
Created September 18, 2018 16:30
Openface
// FaceServer::handle_post does all the pre processing before handing the right image format to the Openface function below this one.
void FaceServer::handle_post(http_request message) {
pplx::task<json::value> img_extract = message.extract_json();
packet = new FaceDataPacket();
img_extract.then([=](json::value value) {
@pranavghate94
pranavghate94 / android_studio_shortcuts.md
Created July 21, 2016 09:00 — forked from stkent/android_studio_shortcuts.md
Android Studio Shortcuts (Mac)

Android Studio Shortcuts (Mac)

Notes:

  • Two of the most useful shortcuts utilize the Fn (function) keys. It is therefore recommended that you enable the "Use all F1, F2, etc. keys as standard function keys" option [System Preferences > Keyboard].
  • Be sure to enable the Mac OS X 10.5+ keymap in Android Studio [Preferences > Keymap].
  • A fairly complete shortcut list can be found here.

Useful symbols:

@pranavghate94
pranavghate94 / C86c-2.js
Last active July 4, 2016 11:51
Find the longest N consecutive string from the string array.
function longest(strarr,k){
var start = 0;
var end = k;
var superstring='';
while(end !== strarr.length+1){
var temp = strarr.slice(start,end).join('');
if(temp.length >= superstring.length){
superstring = temp;
}