Skip to content

Instantly share code, notes, and snippets.

View Akshay090's full-sized avatar
🏠
at home

Akshay Ashok Akshay090

🏠
at home
View GitHub Profile
@Akshay090
Akshay090 / install_transmission.md
Created October 31, 2020 13:39
Install Transmission in RPI
@Akshay090
Akshay090 / resources.md
Last active April 29, 2020 06:12
MSP Learning Streak Links and resources : Building End to End Deep learning Project 🚀

Presentation Link : https://bit.ly/build_dl

Main Blog post to refer : https://medium.com/@akshay090/end-to-end-deep-learning-tutorial-using-azure-f7bb524f7277

Final project link (live demo) : https://mini-pokedex.azurewebsites.net

Building Dataset:

@Akshay090
Akshay090 / face++.py
Last active December 2, 2021 08:02
face plus plus Api reference
import requests
import json
import time
API_KEY = "123ApiKey"
API_SECRET = "superSecreteKey"
detect = {
'api_key': (None, API_KEY),
@Akshay090
Akshay090 / index.js
Last active April 23, 2019 12:43
counter cloud functions
exports.genderCountFxn = functions.database
.ref("/atEvent/{date}/{id}")
.onCreate((snapshot, context) => {
// Grab the current value of what was written to the Realtime Database.
const Visitor = snapshot.val();
console.log("Inside Visitor Fxn");
console.log(Visitor);
console.log(Visitor.name);
@Akshay090
Akshay090 / index.js
Last active April 23, 2019 06:53
part1
const functions = require("firebase-functions");
const nodemailer = require("nodemailer");
const fs = require("fs");
const path = require('path');
// The Firebase Admin SDK to access the Firebase Realtime Database.
const admin = require('firebase-admin');
admin.initializeApp()
function writeDataToFirebase() {
var firebaseUrl = "https://makerqr.firebaseio.com replace this with your own";
var secret = "the firebase database secret here";
var base = FirebaseApp.getDatabaseByUrl(firebaseUrl, secret);
var mySheet = SpreadsheetApp.openById("the id of your spreadsheet");
var dataSheet = mySheet.getSheets()[1];
var lastRow = mySheet.getLastRow();
var lastColumn = mySheet.getLastColumn();
var data = mySheet.getSheetValues(1, 1, lastRow, lastColumn);
var dataToImport = {};
Remote VSCode
sudo wget -O /usr/local/bin/rmate https://raw.github.com/aurora/rmate/master/rmate
sudo chmod a+x /usr/local/bin/rmate
//above on vm
CTRL+P for Windows and CMD+P for Mac) then execute the >Remote: Start Server command.
ssh -R 52698:localhost:52698 username@ipaddress
create hashmap
Map<Integer, Integer> map = new HashMap<>();
map.containsKey(target)
map.get(target)
iterate over each entry in a Map
Map<String, String> map = ...
for (Map.Entry<String, String> entry : map.entrySet())
{
System.out.println(entry.getKey() + "/" + entry.getValue());
}
@Akshay090
Akshay090 / oep.txt
Last active October 4, 2018 17:10
DS OEP
/*Meeting Management System using single linked list
Data Structures OEP
Topic - Singly Linked List
Author : Akshay Ashok , Anuj Jain , Jainal Gosaliya
*/
/*----------------------------------------------------------------------------*/
/* Define libraries to be included */
#include <stdio.h>
#include <malloc.h>
#include <string.h>