Skip to content

Instantly share code, notes, and snippets.

View manashmandal's full-sized avatar
👨‍💻
Probably Coding || ! Probably Coding

Manash Kumar Mandal manashmandal

👨‍💻
Probably Coding || ! Probably Coding
View GitHub Profile
from PyQt5.QtWidgets import QDialog, QProgressBar, QLabel, QHBoxLayout
from PyQt5.QtCore import pyqtSlot
class ProgressBar_Dialog(QDialog):
def __init__(self):
super(ProgressBar_Dialog ,self).__init__()
self.init_ui()
def init_ui(self):
# Creating a label
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Deedy - One Page Two Column Resume
% LaTeX Template
% Version 1.1 (30/4/2014)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[]{deedy-resume-openfont}
\begin{document}
# seq = ('name ', 'roll', 'class')
# keys = [1, 2, 3]
# dict1 = dict.fromkeys(seq, keys)
# print "%s" % dict1
# -*- coding: utf-8 -*-
"""
Spyder Editor
@manashmandal
manashmandal / output.md
Last active August 15, 2016 07:58
StanfordParser Test Code
[(u'While', u'O'), (u'in', u'O'), (u'France', u'LOCATION'), (u',', u'O'), (u'Christine', u'PERSON'), (u'Lagarde', u'PERSON'), (u'discussed', u'O'), (u'short-term', u'O'), (u'stimulus', u'O'), (u'efforts', u'O'), (u'in', u'O'), (u'a', u'O'), (u'recent', u'O'), (u'interview', u'O'), (u'with', u'O'), (u'the', u'O'), (u'Wall', u'ORGANIZATION'), (u'Street', u'ORGANIZATION'), (u'Journal', u'ORGANIZATION'), (u'.', u'O')]
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 14 20:37:16 2016
@author: Manash
"""
from bs4 import BeautifulSoup
import urllib2
import unicodedata
from datetime import datetime
@manashmandal
manashmandal / loss_long_short.py
Last active August 13, 2016 19:21
Communication Lab 04: AST and DST via Fiber Optic Link
import matplotlib.pyplot as plt
short_loss = [-44.49, -44.52, -44.99, -45.49, -46, -46.55,-47.16, -47.72, -48.92, -50.30, -52.04, -57.42]
short_freq = [1, 2.45, 2.73, 3.14, 3.57, 4.06, 4.43, 4.66, 5.19, 6.06, 7.99, 8.59]
long_loss = [-30.10, -30.45, -31.21, -32.64, -32.95, -33.98, -35.14, -36.12, -36.48, -38.06]
long_freq = [1.01, 1.55, 2.6, 3, 3.74, 3.83, 5.22, 5.96, 6.25, 7.35]
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
#include <iostream>
#include <SDL.h>
#include <stdio.h>
//Program won't run if you don't add this
#ifdef __MINGW32__
#undef main /* Prevents SDL from overriding main() */
#endif
/*This source code copyrighted by Lazy Foo' Productions (2004-2015)
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
SOURCES += main.cpp
# Command
# -L[Directory path of "lib" folder] -lSDL2
LIBS += -LE://SDL2//i686-w64-mingw32//lib -lSDL2
#include <iostream>
#include <SDL.h>
#include <stdio.h>
#ifdef __MINGW32__
#undef main /* Prevents SDL from overriding main() */
#endif
/*This source code copyrighted by Lazy Foo' Productions (2004-2015)
and may not be redistributed without written permission.*/
#include <stdio.h>
#include "cs50.h"
#include <math.h>
void printX(int dimension)
{
// dimension -= 2;
if ((dimension % 2 == 0) || (dimension < 3 || dimension > 23)) return;
if (dimension == 3){