Skip to content

Instantly share code, notes, and snippets.

View pyadav's full-sized avatar
🐢
learning new stuff

Praveen Yadav pyadav

🐢
learning new stuff
View GitHub Profile
@pyadav
pyadav / package.json
Created December 9, 2016 05:08 — forked from tpai/package.json
A web crawler sample based on nightwatch.
{
"name": "nightwatch_webcrawler",
"description": "A web crawler sample based on nightwatch.",
"version": "0.0.1",
"author": {
"name": "tonypai",
"email": "tony77794@gmail.com"
},
"homepage": "http://github.com/tpai",
"dependencies": {
@pyadav
pyadav / Contract
Created December 8, 2016 04:48
Contract
#Website Contract
##[DATE]
##Summary:
I’ll always do my best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I’ve no desire to trick you into signing something that you might later regret. What I do want is what’s best for both parties, now and in the future.
So in short;
You [CLIENT NAME], is hiring me, [YOUR NAME] trading as nothingrandom, located at [ADDRESS], to [THE JOB YOU ARE DOING] for the estimated total price of [ESTIMATED PRICE] as outlined in our previous correspondence. Of course it’s a little more complicated, but I’ll get to that.
@pyadav
pyadav / Contract Killer 3.md
Created December 8, 2016 04:48
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@pyadav
pyadav / grunt-hugo-lunrjs.md
Created December 7, 2016 18:49 — forked from sebz/grunt-hugo-lunrjs.md
hugo + gruntjs + lunrjs = <3 search
@pyadav
pyadav / webCrawler.py
Created November 22, 2016 16:17 — forked from helanzhu2020/webCrawler.py
Python: A simplified Web Crawler using BFS
import Queue
initial_page = "http://www.initial_page.com"
url_queue = Queue.Queue()
seen = set()
seen.insert(initial_page)
url_queue.put(initial_page)
""" A web photo, picture grabber """
import sys
import urllib
import urllib2
from HTMLParser import HTMLParser
import re
'''
The WretchWebParser is used to parse the content HTML of wretch.cc
'''
@pyadav
pyadav / WebCrawlerBFS.java
Last active November 22, 2016 16:06 — forked from sujathakvr/WebCrawlerBFS.java
Web Crawler Breadth First Search
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URI;
machine:
timezone: Asia/Tokyo
xcode:
version: 7.3
environment:
XCODE_SCHEME: ***
XCODE_WORKSPACE: ***.xcworkspace
GYM_CODE_SIGNING_IDENTITY: 'iPhone Distribution: ***. (***)'
dependencies:
cache_directories:
@pyadav
pyadav / authInterceptor.js
Created September 8, 2016 08:22 — forked from bettysteger/authInterceptor.js
Set specific http headers on every http request from cookies (angular)
'use strict';
/**
* Authentication with token and email for every server request. (Sets HTTP headers)
*
* This interceptor shows the error from the server (i18n key).
* Also sets global error variable if the request fails and redirects the user to '/' when he is not authorized.
* @see http://engineering.talis.com/articles/client-side-error-logging/
*/
app.factory('authInterceptor', function ($rootScope, $q, $cookies, $location, $timeout) {
@pyadav
pyadav / Child.js
Created August 25, 2016 18:11 — forked from eyesofkids/Child.js
Simple React Lifecycle methods test
import React from 'react'
var Child = React.createClass({
getInitialState: function(){
console.log('Child getInitialState');
return { value: 'start'}
},
getDefaultProps: function(){
console.log('Child getDefaultProps');