Skip to content

Instantly share code, notes, and snippets.

View plkumar's full-sized avatar
:octocat:

Lakshman Kumar Peethani plkumar

:octocat:
View GitHub Profile
@plkumar
plkumar / macapp.go
Created October 19, 2021 08:58 — forked from mholt/macapp.go
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use:
@plkumar
plkumar / ESP32_HID.ino
Created September 26, 2020 08:36 — forked from sabas1080/ESP32_HID.ino
Example of HID Keyboard BLE with ESP32
/*
Copyright (c) 2014-2020 Electronic Cats SAPI de CV. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@plkumar
plkumar / alljoyn_pi
Created July 25, 2017 13:03 — forked from germanviscuso/alljoyn_pi
Compile AllJoyn on the Raspberry Pi
INDEX
-----
- BUILD IT YOURSELF
- BUILD THE AUDIO SERVICE
- BUILDING FOR ANDROID
- INSTALL WITHOUT BUILDING
BUILD IT YOURSELF
-----------------
@plkumar
plkumar / NaiveBayes.cs
Created July 1, 2017 04:21 — forked from hodzanassredin/NaiveBayes.cs
simple naive bayes classifier in c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
//original https://github.com/bazhenov/naive-bayes-example
namespace NaiveBayesianClasisifier
{
@plkumar
plkumar / google-sheets-sync-to-firebase.js
Created April 17, 2017 07:34 — forked from cvan/google-sheets-sync-to-firebase.js
Google Spreadsheets script for syncing to Firebase
function syncToFirebase () {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
var numCols = rows.getNumColumns();
var values = rows.getValues();
var output = [];
var sheetName = sheet.getName();
@plkumar
plkumar / Author.ts
Created March 2, 2017 08:06 — forked from masahirompp/Author.ts
typescript + mongoose
/// <reference path="../typings/tsd.d.ts" />
import db = require('../db/db');
import IAuthorDocument = require('../db/IAuthorDocument');
class Author {
private _author:IAuthorDocument;
constructor(author:IAuthorDocument) {
this._author = author;
@plkumar
plkumar / typescript_angular.adoc
Created December 21, 2016 13:32 — forked from esfand/typescript_angular.adoc
AngularJS with TypeScript
@plkumar
plkumar / sonarqube-mysql-docker-compose.yml
Created December 13, 2016 14:50 — forked from batmat/sonarqube-mysql-docker-compose.yml
Working SonarQube + Mysql Dead Simple Docker Compose file
sonarqube:
image: sonarqube:5.1.1
ports:
- "9000:9000"
- "3306:3306"
environment:
- SONARQUBE_JDBC_USERNAME=sonar
- SONARQUBE_JDBC_PASSWORD=sonar
- SONARQUBE_JDBC_URL=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
@plkumar
plkumar / gist:82823d81968239f7812b7f3b92a3ea10
Created September 2, 2016 08:11 — forked from tkdave/gist:4150916
Installing OpenCV python libs on mac to work with virtualenv and brew
# Installing OpenCV python libs on mac to work with virtualenv
# OpenCV 2.4.3
# Python 2.7.3 installed with brew
# assuming you have virtualenv, pip, and python installed via brew
# assuming $WORKON_HOME is set to something like ~/.virtualenvs
# using homebrew - make sure we're current
brew update
@plkumar
plkumar / Dockerfile
Created August 23, 2016 03:01
Docker image with alpine java node and git
FROM anapsix/alpine-java:latest
MAINTAINER plkumar <lakshman@nzentech.com>
#Install NodeJs
RUN apk add --no-cache nodejs
RUN apk add --update git && \
rm -rf /tmp/* /var/cache/apk/*