Skip to content

Instantly share code, notes, and snippets.

Mashpy Rahman Mashpy

Block or report user

Report or block Mashpy

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
@Mashpy
Mashpy / 2dPaintingNativeQt.pro
Created Aug 11, 2012
2dPaintingNativeQt by Mashpy Says
View 2dPaintingNativeQt.pro
HEADERS += \
helper.h \
widget.h \
window.h
SOURCES += \
helper.cpp \
widget.cpp \
window.cpp \
main.cpp
View helloQt.cpp
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("<h2>Hello Qt!</h2>");
label->show();
return app.exec();
}
@Mashpy
Mashpy / chip.cpp
Created Aug 15, 2012
ChipSetQt by MashpySays.blogspot.com
View chip.cpp
#include "chip.h"
#include <QtGui>
Chip::Chip(const QColor &color, int x, int y)
{
this->x = x;
this->y = y;
this->color = color;
setZValue((x + y) % 2);
View Binary to Decimal
#include<stdio.h>
int main()
{
// আমাদের কাজ হল বাইনাতী থেকে ডেসিমেল এ নিতে হবে।
long int bin_num,bin_tmp,dec_digit,dec_num=0,number_base=0;
printf("enter the binary number");
scanf("%1d", & bin_num);
bin_tmp=bin_num;
while(bin_num)
{
@Mashpy
Mashpy / Y
Last active Dec 10, 2015
Print Y with Star *
View Y
#include<stdio.h>
int main()
{
int i,j,n=8;
for(i=1;i<=n;i++)
{
for(j=1;j<=(n+n);j++)
{
if(j==i||j==(n+n)-i)
printf("*");
View Horizontal menu
.menu { position: relative; list-style: none; z-index: 50; }
.menu li:hover ul, .menu a:hover ul, .menu :hover ul :hover ul, .menu :hover ul :hover ul :hover ul { visibility: visible; }
.menu :hover ul ul, .menu :hover ul :hover ul ul { visibility: hidden; }
.menu a { font-family: Georgia, "Times New Roman", Times, serif; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; padding-top: 9px; padding-right: 11px; padding-bottom: 9px; padding-left: 11px; border-width: 1px; border-left-width: 0; border-style: solid; }
.menu ul a { width: auto; border-left-width: 1px; border-style: solid; }
.menu { border-width: 0 0 1px 1px; border-style: solid; }
.menu li ul { border-bottom-width: 1px; }
.menu li { margin-bottom: -1px; }
.menu li ul { margin-top: -1px; }
.menu ul ul { margin-top: 0; }
View gmailSMS
function sendsms()
{
try
{
var label = GmailApp.getUserLabelByName('sendsms');
var threads = label.getThreads();
var now = new Date().getTime();
var cal=getCalendar();
for(i in threads)
@Mashpy
Mashpy / gist:5169719
Created Mar 15, 2013
wp slider content
View gist:5169719
<div id="s_main">
<ul>
<li class="s_post_item"><a href="http://localhost/pharmamirror/saima-sultana-head-of-training-beximco-pharmaceuticals-limited/saima_sultana/" rel="attachment wp-att-134"><img class="size-full wp-image-134 aligncenter" alt="saima_sultana" src="http://localhost/pharmamirror/wp-content/uploads/2012/12/saima_sultana.png" width="40" height="40" /></a> <a href="astrazeneca-lilly-feeling-real-pain-in-race-for-arthritis-drugs/">AstraZeneca, Lilly feeling real pain in race for arthritis drugs</a>
<p class="s_post-des">Novo Nordisk announced a unique partnership to form Team Novo Nordisk, a global sports team, [...]</p>
<p class="s_post-date"><strong>Date:</strong> 21 Dec 2012</p>
<p style="color: red; float: right; margin-right: 3px;"><a href="astrazeneca-lilly-feeling-real-pain-in-race-for-arthritis-drugs/">Read More</a></p>
&nbsp;</li>
<li class="s_post_item"><a href="http://localhost/pharmamirror/saima-sultana-head-of-training-beximco-pharmaceuticals-limited/saima_sultana/" rel="attachment
View market place
Please send your CV in this email address - info@pharmamirror.com
<table id="AutoNumber1" style="border-collapse: collapse;" width="726" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="811" height="38">
<p style="text-align: center;"> Job Market Place</p>
</td>
</tr>
</tbody>
</table>
View about pharmamirror
Pharma Mirror is a world leading free access professional pharmaceutical magazine with an ISSN 2219-763X. It is introducing pharmaceutical journalism and also an internationally accepted pharma media over the pharma arena. Pharma Mirror believes in cutting-edge peer reviewed contents over the pharma arena.
<div style="margin-left: 100px;">
<table border="1">
<tbody>
<tr>
<td colspan="2" bgcolor="#EEEEEE" height="30">
<div style="text-align: center;"><strong>Executive Editor
</strong></div></td>
</tr>
<tr>
You can’t perform that action at this time.