This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class QueryExecutor { | |
string strQuery; | |
CreateConnection c; | |
public QueryExecutor(string query) { | |
strQuery = query; | |
c = new CreateConnection(); | |
} | |
public QueryExecutor(string query, string strConnection) { | |
strQuery = query; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{beamer} | |
%এটা লাগবে, | |
\usepackage{fontspec} | |
%এটা দিয়ে একটা ফন্ট ডিফাইন করা হয়েছে, এইটা দিয়ে আমরা বাংলা লেখাগুলার আগে লিখে দিলে ঐ অংশ বাংলা ফন্ট দিয়ে পড়বে | |
\font\deffont="FreeSerif:script=beng" at 14pt | |
%যেমন এখানে | |
\title{\deffont একটি বাংলা লেখা} | |
\author{\deffont অমিত} | |
\date{\deffont ৭ জানুয়ারি, ২০১৩} | |
\begin{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
%এই প্যাকেজটা লাগবে | |
\usepackage{fontspec} | |
%script অংশ দিয়ে বুঝাচ্ছি এটা বাংলা | |
\setmainfont{SolaimanLipi:script=beng} | |
%প্যারাগ্রাফের শুরুতে ফাঁকা যায়গা থাকবে না | |
\setlength{\parindent}{0in} | |
\title{একটি বাংলা লেখা} | |
\author{অমিত} | |
\date{১৬ জানুয়ারি, ২০১৩} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Written by Amit Seal Ami | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
/* | |
Instructions | |
============ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#!/usr/bin/python | |
from cssutils.util import Item | |
#============================================================================== | |
# Written following the example by Graham. | |
# IMHO, there was problem with the stack pop method. Even though | |
# tail pointed to the previous object in the linked list right after pop, | |
# the tail kept pointing at the popped Item. | |
#Written by Amit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = gcc | |
CFLAGS = -lm | |
all: mm1 | |
backup: | |
cd .. && zip chap1_c_backup.zip chap1_c/* | |
mm1: lcgrand.o mm1.o | |
@echo making everything nice and sweet to mm1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pdftk *.pdf cat output output.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install Brightness Controller script | |
# Download / Save this script. Make it executable. Run it. | |
# It requires having wget installed, if you use another command line interface downloader, change wget to it. | |
wget https://github.com/lordamit/Brightness/archive/master.zip | |
unzip -o master.zip -d ~/.Brightness | |
rm master.zip | |
echo "[Desktop Entry] | |
Encoding=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
cmd_list_jpg = 'ls -C -1 | grep .jpg' | |
all_files = subprocess.check_output(cmd_list_jpg, shell = True) | |
for i in all_files.split('\n'): | |
if i.find('convert') != -1: | |
continue | |
subprocess.check_output('convert {0} {0}.pdf'.format(i), shell = True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#<- this is a comment. | |
newport=2222 | |
forwardport=27960 | |
sudo iptables -t nat -A PREROUTING -p udp --dport $newport -j REDIRECT --to-ports $forwardport | |
#To check whether this rule works, type this command | |
#sudo iptables -nL -v --line-numbers -t nat |
OlderNewer