Skip to content

Instantly share code, notes, and snippets.

View iamrameshkumar's full-sized avatar

Ramesh Kumar K iamrameshkumar

  • Chennai, India
View GitHub Profile
@iamrameshkumar
iamrameshkumar / cowbasic_string.hpp
Created October 12, 2021 09:50 — forked from Manu343726/cowbasic_string.hpp
(conceptual) COW string implementation
/*
* A simple Copy On Write (COW) string implementation.
*
* Copyright © 2014 Manu Sanchez. @Manu343726 on GitHub, Stack Overflow, etc.
*
* manu343726.github.io
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
@iamrameshkumar
iamrameshkumar / gist:3109c70d3252fffe347d69f8dee3be37
Created December 9, 2019 06:41
Visual Studio 2019 Product Key
Visual Studio 2019 Enterprise
BF8Y8-GN2QH-T84XB-QVY3B-RC4DF
Visual Studio 2019 Professional
NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y
@iamrameshkumar
iamrameshkumar / MFDesktopToRTP.cpp
Last active October 22, 2019 12:30
Desktop To RTP Using Live555 and Windows Media foundation
/// Filename: MFDesktopToRTP.cpp
///
/// Description:
/// This file contains a C++ console application that captures the realtime video stream from desktop using
/// Windows Media Foundation, encodes it as H264 and then transmits it to an RTP end point using the real-time
/// communications API from Live555 (http://live555.com/).
///
/// To view the RTP feed produced by this sample the steps are:
/// 1. Download ffplay from http://ffmpeg.zeranoe.com/builds/ (the static build has a ready to go ffplay executable),
/// 2. Create a file called test.sdp with contents as below:
@iamrameshkumar
iamrameshkumar / pub_sub_cpp.cpp
Created March 29, 2019 11:03 — forked from makomweb/pub_sub_cpp.cpp
Fun with C++: implementing a pub/sub scenario using std::bind and other standard facilities. The approach is pretty similar to the well known .NET event mechanism.
#include <iostream>
#include <map>
#include <algorithm>
#include <functional>
#include <memory>
using namespace std;
class EventArgs {
public:
import java.util.Arrays;
public class QuickSort {
public static void main(String[] args) {
int arr[] = {11,12,13,14,15,16,17,10};
sort(arr, 0, arr.length-1);
System.out.println("Sorted Array :"+ Arrays.toString(arr));
@iamrameshkumar
iamrameshkumar / VideoStreaming.cpp
Created March 8, 2019 17:13
Video Streaming Sample
#include <Windows.h>
#include <mfapi.h>
#include <mfidl.h>
#include <Mfreadwrite.h>
#include <mferror.h>
#include <d3d9.h>
#pragma comment(lib, "mfreadwrite")
#pragma comment(lib, "mfplat")
#pragma comment(lib, "mfuuid")
@iamrameshkumar
iamrameshkumar / LoginForm.js
Created February 3, 2019 08:08 — forked from EduardoSaverin/LoginForm.js
Material UI React Login Form
import React from 'react';
import { Paper, withStyles, Grid, TextField, Button, FormControlLabel, Checkbox } from '@material-ui/core';
import { Face, Fingerprint } from '@material-ui/icons'
const styles = theme => ({
margin: {
margin: theme.spacing.unit * 2,
},
padding: {
padding: theme.spacing.unit
}
@iamrameshkumar
iamrameshkumar / README.md
Created August 23, 2018 15:06 — forked from tuxmartin/README.md
Minimal Poco websocket C++ client

Stazeni a kompilace POCO

wget http://pocoproject.org/releases/poco-1.7.3/poco-1.7.3.tar.gz
tar xzf poco-1.7.3.tar.gz
cd poco-1.7.3
./configure --minimal --static --no-samples --no-tests
time make -j4 -s
cd lib/Linux/x86_64/
for f in *.a; do "strip $f"; done
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <uv.h>
#include "cassandra.h"
#define USE_COMPOUND_PARTITION_KEY 0
Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH
Keys are generic ones. These are the same from MSDN account.
Product Key : -6Q8QF
Validity : Valid
Product ID : 00369-90000-00000-AA703
Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017