Skip to content

Instantly share code, notes, and snippets.

Raziman T V razimantv

Block or report user

Report or block razimantv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@razimantv
razimantv / Randomstrip.ipynb
Created Feb 18, 2019
Generate random points in an angle range around a given latitude and longitude
View Randomstrip.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View IqbalPuzzle.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@razimantv
razimantv / population_evolution.cpp
Last active Nov 20, 2018
Dependence of population evolution on age of giving birth
View population_evolution.cpp
#include <fstream>
#include <iostream>
#include <random>
#include <set>
#include <string>
#include <tuple>
// Birth/death events
// If birth: time, +1, 0
// If death: time, -1, birthday
@razimantv
razimantv / Pi_MC.ipynb
Created Oct 4, 2018
Monte Carlo estimation of Pi
View Pi_MC.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@razimantv
razimantv / ImpossiblePuzzle.ipynb
Last active Oct 4, 2018
Programmatic solution to the "Impossible puzzle"
View ImpossiblePuzzle.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@razimantv
razimantv / battleship.cpp
Created Feb 25, 2018
Given the shape of a ship and the location of one cell, bomb the remaining cells in minimum attempts
View battleship.cpp
#include <iostream>
#include <map>
#include <random>
#include <tuple>
#include <vector>
std::random_device rd;
std::mt19937 gen(rd());
typedef std::vector<std::string> pattern;
View stackify.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@razimantv
razimantv / covfefe.ipynb
Created Jan 5, 2018
Solving the covfefe problem
View covfefe.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@razimantv
razimantv / unruly.cpp
Last active Jan 4, 2018
Solution for the "Unruly" game from Simon Tatham's puzzle collection
View unruly.cpp
#include <iostream>
#include <iterator>
#include <numeric>
#include <queue>
#include <string>
#include <vector>
bool notblocked(const std::string& str, char c) {
int L = str.size();
if (L < 2) return true;
@razimantv
razimantv / circles.cpp
Created Dec 30, 2017
Convert an image into one made out of coloured circles with mean pixel values
View circles.cpp
#include <algorithm>
#include <cmath>
#include <iostream>
#include <random>
#include <string>
#include <vector>
// RGB values
// Add arithmetic operations to take means squared deviations
struct rgb {
You can’t perform that action at this time.