Skip to content

Instantly share code, notes, and snippets.

View lazycipher's full-sized avatar
🛡️
Stealth Mode

Himanshu Singh lazycipher

🛡️
Stealth Mode
View GitHub Profile
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
@lazycipher
lazycipher / animint.js
Created March 2, 2020 21:45
Comparision of Unified Payments Interface(UPI) Usage Data
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
var args=arguments
@lazycipher
lazycipher / webpack.config.js
Created February 10, 2020 14:58
webpack.config.js
const path = require('path');
const webpack = require('webpack');
const nodeExternals = require('webpack-node-externals');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
entry: './js/main.js',
output: {
path: path.resolve( __dirname, 'build' ),
@lazycipher
lazycipher / rfcampus-feedback.js
Created November 26, 2019 16:05
rfcampusgu feedback script
javascript: (function(){$(".col-xs-lr-10:nth-child(3) > input").attr('checked', 'checked').trigger("change");$("#save-design").trigger("click");$("#button-0").trigger("click");})();
@lazycipher
lazycipher / 69A - Young Physicist.cpp
Created October 9, 2019 05:39
69A - Young Physicist Solution in C++
#include<iostream>
int main(){
int n, x, y, z, xf(0), yf(0) ,zf(0);
std::cin>>n;
for(int i=0; i<n; i++){
std::cin>>x>>y>>z;
xf+=x;
yf+=y;
zf+=z;
@lazycipher
lazycipher / 58A - Chat room.cpp
Last active January 16, 2023 05:55
CodeForces 58A - Chat room Solution in C++
#include<iostream>
int main(){
std::string word, hello="hello";
std::cin>>word;
int j=0, pas=0;
for(int i=0; i<word.length();i++){
if(word[i]==hello[j]){
j++;
pas++;
@lazycipher
lazycipher / balance.js
Created August 30, 2019 10:05
Balanced Brackets in JavaScript
var string = "{[([)]]}";
var balance = true;
var check = {
"[":"]",
"{":"}",
"(":")",
}
var record = []
@lazycipher
lazycipher / 266A - Stones on the Table.cpp
Created August 9, 2019 22:40
266A - Stones on the Table in C++
#include<iostream>
int main(){
int stones_count, count=0;
std::string stones;
std::cin>>stones_count;
std::cin>>stones;
for(int i=1; i<stones_count;i++){
if(stones[i] == stones[i-1]){
count++;