Skip to content

Instantly share code, notes, and snippets.

View vicky002's full-sized avatar
🤷‍♂️
Keep building new stuff! 💸

Vikesh Tiwari vicky002

🤷‍♂️
Keep building new stuff! 💸
View GitHub Profile
@vicky002
vicky002 / SimpleSum4.cpp
Created March 16, 2015 14:01
Contest 1
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
int n;
while ( scanf("%d",&n) != EOF )
{
# Install dependencies
#
# * checkinstall: package the .deb
# * libpcre3, libpcre3-dev: required for HTTP rewrite module
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \
mkdir -p ~/sources/ && \
# Compile against OpenSSL to enable NPN
@vicky002
vicky002 / The Technical Interview Cheat Sheet.md
Created December 4, 2015 14:08 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@vicky002
vicky002 / app.py
Last active December 15, 2015 12:06
Main code of slack bot
__author__ = 'vikesh' # this is the author name
import os # This module provides a portable way of using operating system dependent functionality.
import wolframalpha
# I have used Wolframalpha module, written in python to work with Wolframa API.
# Read more about it here : https://pypi.python.org/pypi/wolframalpha
from flask import Flask, request, Response, redirect
# Modules from Flask
git branch foobar && git checkout foobar
git checkout -b foobar #same as above command

Keybase proof

I hereby claim:

  • I am vicky002 on github.
  • I am vicky002 (https://keybase.io/vicky002) on keybase.
  • I have a public key ASAPZrb0GpIQAHqz-1M56EjTq3-L9gVLq7VXsoi1yS-_UAo

To claim this, I am signing this object:

@vicky002
vicky002 / bot.py
Created July 23, 2017 05:56
Slack bot using Wolframalpha
__author__ = 'vikesh' # this is the author name
import os # This module provides a portable way of using operating system dependent functionality.
import wolframalpha
# I have used Wolframalpha module, written in python to work with Wolframa API.
# Read more about it here : https://pypi.python.org/pypi/wolframalpha
from flask import Flask, request, Response, redirect
# Modules from Flask
@vicky002
vicky002 / app.py
Created September 5, 2017 01:04
Slack Bot using WolframAlpha API
__author__ = 'vikesh' # this is the author name
import os # This module provides a portable way of using operating system dependent functionality.
import wolframalpha
# I have used Wolframalpha module, written in python to work with Wolframalpha API.
# Read more about it here: https://pypi.python.org/pypi/wolframalpha
from flask import Flask, request, Response, redirect
# Modules from Flask
@vicky002
vicky002 / sample.py
Created September 17, 2017 07:59
Project 1
query = quote(query)
url = "https://encrypted.google.com/search?q={0}".format(query)
@vicky002
vicky002 / new.md
Last active September 17, 2017 08:19
Folder Structure - Project 1
.
├── fabulous
 ├── plugins [This will contain different supported services]
 ├── tests [This folder will contains all the tests]
 ├── fabulous.py [Initiate, test all the available services]
 ├── server.py [Will handle the server]
 ├── dummyserver.py [this will create the dummy server]
├── LICENSE
├── README.md