[ Launch: Tributary inlet ] 5752557 by hhimanshu
[ Launch: D3 Test ] 5751698 by hhimanshu
This file contains hidden or 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
# Project Structure | |
facebook/ | |
runserver.py | |
feed/ | |
__init__.py | |
views.py | |
chat/ | |
__init__.py | |
views.py | |
This file contains hidden or 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
Show hidden characters
Install this theme http://buymeasoda.github.com/soda-theme/ | |
and http://www.levien.com/type/myfonts/Inconsolata.otf font | |
then make changes in your Sublime Text -> Preferences -> Settings - User as following | |
{ | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"font_face": "Inconsolata-dz", | |
"font_size": 12.0, | |
"ignored_packages": |
This file contains hidden or 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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.3.1</version> | |
<configuration> | |
<archive> | |
<addMavenDescriptor>false</addMavenDescriptor> | |
<manifest> |
This file contains hidden or 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 org.apache.hadoop.conf.Configured; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.io.LongWritable; | |
import org.apache.hadoop.io.Text; | |
import org.apache.hadoop.mapreduce.Job; | |
import org.apache.hadoop.mapreduce.Mapper; | |
import org.apache.hadoop.mapreduce.Reducer; | |
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; | |
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; | |
import org.apache.hadoop.util.Tool; |
This file contains hidden or 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
package com.hadoop.patent; | |
/** | |
* This program collect data about how many times a patent has been cited | |
* input data - http://data.nber.org/patents/ | |
* use the citation data set cite75_99.txt and the patent description data set apat63_99.txt. | |
*/ | |
import org.apache.hadoop.conf.Configuration; |
This file contains hidden or 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
Node predecessor(Node node) { | |
if ((node.left == null) && (node.right==null)) { | |
return node; | |
} | |
if (node.right != null) { | |
return predecessor(node.right); | |
} | |
if (node.left != null) { | |
return predecessor(node.left); | |
} |
This file contains hidden or 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 Gist will show you how to verify a postal address using CDYNE advanced address verification web service | |
The following code assumes that you have a valid license key | |
Document Reference : http://pav3.cdyne.com/Pavservice.svc/help/operations/VerifyAddressAdvanced | |
""" | |
import json | |
import urllib2 | |
import urllib |
This file contains hidden or 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
var ajaxSuggest = false | |
function submitSuggestion() { | |
url = '/suggest/' | |
ajaxSuggest = false; | |
if (window.XMLHttpRequest) { // if we're on Gecko (Firefox etc.), KHTML/WebKit (Safari/Konqueror) and IE7 | |
ajaxSuggest = new XMLHttpRequest(); // create our new Ajax object | |
if (ajaxSuggest.overrideMimeType) { // older Mozilla-based browsers need some extra help | |
ajaxSuggest.overrideMimeType('text/xml'); | |
} | |
} |