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
<?php | |
//Configure your DB Connections | |
$servername = "mysql7.000webhost.com"; // i hosted it in 000webhost.com | |
$username = "username"; | |
$password = "password"; | |
// Create connection | |
$conn= mysql_connect($servername,$username,$password); |
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
#OpenCV python HOG feature based people detector applied on video | |
#Find the peopledetect.py on opencv-master/samples/python on your OpenCV installation | |
import numpy as np | |
import cv2 | |
def draw_detections(img, rects, thickness = 1): | |
for x, y, w, h in rects: | |
# the HOG detector returns slightly larger rectangles than the real objects. | |
# so we slightly shrink the rectangles to get a nicer output. |
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 cv2 | |
import numpy as np | |
import hashlib | |
def getUImg(sid): | |
#size can be | |
m=hashlib.sha256() | |
m.update(sid) | |
hsh=m.hexdigest() | |
npar=np.zeros((8,8,3),np.uint8) |
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
#!/usr/bin/python; | |
# A dictionary of movie critics and their ratings of a small | |
# set of movies | |
from math import sqrt | |
critics={'Lisa Rose': {'Lady in the Water': 2.5, 'Snakes on a Plane': 3.5, | |
'Just My Luck': 3.0, 'Superman Returns': 3.5, 'You, Me and Dupree': 2.5, | |
'The Night Listener': 3.0}, | |
'Gene Seymour': {'Lady in the Water': 3.0, 'Snakes on a Plane': 3.5, | |
'Just My Luck': 1.5, 'Superman Returns': 5.0, 'The Night Listener': 3.0, |
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
n=raw_input() | |
l=[x for x in raw_input().split()] | |
cond=False | |
for i in l: | |
k=list(i) | |
if sorted(k,reverse=True)==k or sorted(k)==k: | |
cond=True | |
else: | |
cond=False | |
break |
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
## Refer to http://caffe.berkeleyvision.org/installation.html | |
# Contributions simplifying and improving our build system are welcome! | |
# cuDNN acceleration switch (uncomment to build with cuDNN). | |
# USE_CUDNN := 1 | |
# CPU-only switch (uncomment to build without GPU support). | |
CPU_ONLY := 1 | |
# uncomment to disable IO dependencies and corresponding data layers |
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 requests | |
import re | |
url ="http://moodle.iitb.ac.in/mod/forum/discuss.php?d=62595" | |
s=requests.session() | |
r = s.post("http://moodle.iitb.ac.in/login/index.php", data={'username':'roll_no','password':'pass'}) | |
r2 = s.get(url) | |
count=0 | |
ind=0 | |
while(1): |
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 pandas as pd | |
import numpy as np | |
data=pd.read_csv('train.csv') | |
phi_df=data[['T6']] | |
Y=data[['Output']] | |
phi=phi_df.as_matrix() | |
phi_t=phi.T |
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
जीवन को फिर से क्या नीचा होता रहा था ? | |
भारत के साधारण जन के मानस में क्या विश्वास हो सकता है ? | |
क्या करने के लिए अनेक बौद्धिक अवज्ञा करने के लिए ? | |
मानसिकता के शंकराचार्य से मुक्त हुए लोगों को क्या जाना जाएगा ? | |
पश्चिम व लन्दन के किस समय के विद्या संस्थानों के अनुरूप ही भारत के सभी विद्या संस्थानों का गठन किया गया था ? | |
गवर्नर ने किससे विश्वास बताया ? | |
अभी साल में एक पुत्र कौन था ? | |
ऋषि को क्या लगता है ? | |
भारत के हर सभ्यता की कौन-सी गाथा होती है ? | |
हर बड़े आवर्तन के भीतर , प्रत्येक बड़े आवर्तन के भीतर क्या होता है ? |
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
लोगों को शायद ऐसा आभास होता रहा कि उनके कष्टों का निवारण करने के लिए , पृथ्वी का बोझ घटाने के लिए , और जीवन को फिर से सन्तुलित करने के लिए , एक अवतार पुरुष उनके बीच उपस्थित है | |
इस देश के साधारण जन के मानस में पैठकर , उसके चित्त व काल को समझकर ही , इस देश के बारे में कुछ सोचा जा सकता है | |
हमें उसे पाने के लिए अनेक बौद्धिक प्रयत्न करने पडेंगे | |
भारतीयता की मर्यादाओं से मुक्त हुए ये लाखेक आदमी जाना चाहेंगे तो यहां से चले ही जाएंगे | |
पश्चिम व विशेषत: लन्दन के उस समय के विद्या संस्थानों के अनुरूप ही भारत के इन नए विद्या संस्थानों का गठन किया गया था , और वहीं की विद्या धाराओं से किसी प्रकार अपनी विद्याओं को जोड़ना ही शायद इनका प्रयोजन था | |
इस पर राज्यपाल ने आचार्य से कहा कि वर्णव्यवस्था की बात तो आप मत ही करें | |
अभी पिछले दिनों सारनाथ में एक गोष्ठी हुई थी | |
तब सीता उन्हें कहती हैं कि यह क्या हो गया है आपको ? वन में तो ऐसे नहीं रहा जाता | |
वैसे हर सभ्यता की सृष्टि की अपनी एक गाथा होती है , और वह गाथा शायद उस सभ्यता की मूल वृत्तियों को बहुत गहराई से प्रभावित किया करती है | |
पर प्रत्येक बड़े आवर्तन के भीतर अनेक छोटे आवर्तन-प्रत्यावर्तन |
OlderNewer