Skip to content

Instantly share code, notes, and snippets.

View tanvirraj's full-sized avatar
🚢
coding

Tanvir Raj tanvirraj

🚢
coding
View GitHub Profile
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
http://darulifta-deoband.org/ [Darul Uloom Deoband, India => Ifta Department]
http://ahlehaqmedia.com/ [আহলে হক বাংলা মিডিয়া সার্ভিস | তালীমুল ইসলাম ইনষ্টিটিউট এন্ড রিসার্চ সেন্টারের মুখপত্র]
http://monthlyalabrar.wordpress.com/ [মারকাযুল ফিকরিল ইসলামী বাংলাদেশ বসুন্ধরা, ঢাকা থেকে প্রকাশিত মাসিক আল-আবরার]
http://www.alkawsar.com/ [মাসিক আল-কাউসার - গবেষণামূলক উচ্চতর শিক্ষাপ্রতিষ্ঠান মারকাযুদ্ দাওয়াহ আলইসলামিয়া ঢাকা-এর মুখপত্র]
http://www.monthlymueenulislam.com/ [মাসিক মুঈনুল ইসলাম - দারুল উলূম মুঈনুল ইসলাম হাটহাজারী]
http://www.banglakitab.com/ [Banglakitab]
http://jamiatulasad.com/ [Jamiatul Asad Al Islamia Dhaka]
http://rahmaniadhaka.com/ [Jamia Rahmania Arabia Dhaka]
http://e-ilm.weebly.com/ [ই-ইলম E-Ilm]
http://jamiamalibag.com/ [জামিয়া শারইয়্যাহ মালিবাগ]
# export NVM_DIR=~/.nvm
# source $(brew --prefix nvm)/nvm.sh
export PATH=/usr/local/share/python:$PATH
export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH
export EDITOR='subl -w'
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
def form &block
puts "<form>"
yield
puts "</form>"
end
def paragraph text
puts "<p>" + text + "</p>"
end
@tanvirraj
tanvirraj / microblogger
Created July 25, 2013 00:13
a simple command line twitter client press t for tweet q for quit :P
require "jumpstart_auth"
class MicroBlogger
attr_reader :client
def initialize
puts "Initializing"
@client =JumpstartAuth.twitter
@tanvirraj
tanvirraj / dnsd.rb
Created September 23, 2013 02:28 — forked from andreif/dnsd.rb
# Simple, scrappy UDP DNS server in Ruby (with protocol annotations)
# By Peter Cooper
#
# MIT license
#
# * Not advised to use in your production environment! ;-)
# * Requires Ruby 1.9
# * Supports A and CNAME records
# * See http://www.ietf.org/rfc/rfc1035.txt for protocol guidance
# * All records get the same TTL
@tanvirraj
tanvirraj / install npm
Created October 9, 2013 09:55
easy way to install npm
git clone http://github.com/isaacs/npm.git
cd npm
sudo make install
first you must have install xcode and xcode commnand line tool
then we intalll
hombrew The best package management system on Mac OS X for this is
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
then we need to install git (i know you have :P )
$ brew install git
@tanvirraj
tanvirraj / emailauthnticate.py
Created April 6, 2016 05:25
Django Email Authntication instead of username
view.py
if request.method == 'POST':
username = request.POST.get('username')
password = request.POST.get('password')
print "print user name ...."
print username
if _is_valid_email(username):
try:
username = User.objects.filter(email=username).values_list('username', flat=True)
{% extends "base.html" %}
{% block title %}'Password change successful'
{% endblock %}
{% block content %}
<a name="services"></a>
<div class="content-section-a">
<div class="container">