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
| @Controller | |
| public class LoginLogoutController { | |
| @RequestMapping(value = "/login", method = RequestMethod.GET) | |
| public void login() { | |
| } | |
| ........ | |
| } |
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
| use strict; | |
| use LWP::UserAgent; | |
| use HTTP::Response; | |
| use URI::Heuristic; | |
| use HTML::Entities; | |
| use Text::Unidecode; | |
| sub get_html { | |
| my $raw_url = shift; | |
| my $url = URI::Heuristic::uf_urlstr($raw_url); |
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
| #!/usr/bin/ruby | |
| periodic_elements = ["h", "he", "li", "be", "b", "c", "n", "o", "f", "ne", "na", "mg", "al", "si", "p", "s", "cl", "ar", "k", "ca", "sc", "ti", "v", "cr", "mn", "fe", "co", "ni", "cu", "zn", "ga", "ge", "as", "se", "br", "kr", "rb", "sr", "y", "zr", "nb", "mo", "tc", "ru", "rh", "pd", "ag", "cd", "in", "sn", "sb", "te", "i", "xe", "cs", "ba", "la", "ce", "pr", "nd", "pm", "sm", "eu", "gd", "tb", "dy", "ho", "er", "tm", "yb", "lu", "hf", "ta", "w", "re", "os", "ir", "pt", "au", "hg", "tl", "pb", "bi", "po", "at", "rn", "fr", "ra", "ac", "th", "pa", "u", "np", "pu", "am", "cm", "bk", "cf", "es", "fm", "md", "no", "lr", "unq", "unp", "unh", "uns", "uno", "une", "unn"] | |
| $found_array = [] | |
| $solution_array = [] | |
| headless_word_arr = [] | |
| $word = ARGV[0] |
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
| #!/usr/bin/python | |
| # docdist8.py - treat whole file as a single "line" | |
| # | |
| # Original version by Erik D. Demaine on January 31, 2011, | |
| # based on code by Ronald L. Rivest (see docdist[1-7].py). | |
| # | |
| # Usage: | |
| # docdist8.py filename1 filename2 | |
| # | |
| # This program computes the "distance" between two text files |
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
| #!/usr/bin/ruby | |
| def read_file(filename) | |
| """ | |
| Read the text file with the given filename; | |
| return a list of the lines of text in the file. | |
| """ | |
| begin | |
| f = File.open(filename, "r") | |
| return f.read() |
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
| #!/usr/bin/ruby | |
| def read_file(filename) | |
| """ | |
| Read the text file with the given filename; | |
| return a list of the lines of text in the file. | |
| """ | |
| begin | |
| f = File.open(filename, "r") | |
| return f.read() |
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
| #!/usr/bin/ruby | |
| def read_file(filename) | |
| =begin | |
| Read the text file with the given filename; | |
| return a list of the lines of text in the file. | |
| =end | |
| begin | |
| f = File.open(filename, "r") | |
| return f.read() |
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
| mh-iMac:Russel mahboob$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install graphviz 2>&1 | |
| ==> Downloading http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.30.1.tar.gz | |
| Already downloaded: /Library/Caches/Homebrew/graphviz-2.30.1.tar.gz | |
| tar xf /Library/Caches/Homebrew/graphviz-2.30.1.tar.gz | |
| ==> Downloading patches | |
| /usr/bin/curl -f#LA Homebrew 0.9.4 (Ruby 1.8.7-358; Mac OS X 10.8.3) https://trac.macports.org/export/103168/trunk/dports/graphics/graphviz/files/patch-project.pbxproj.diff -o 000-homebrew.diff | |
| ######################################################################## 100.0% | |
| ==> Patching | |
| /usr/bin/patch -f -p0 -i 000-homebrew.diff | |
| patching file macosx/graphviz.xcodeproj/project.pbxproj |
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
| #!/usr/bin/python | |
| import urllib2 | |
| from BeautifulSoup import BeautifulSoup | |
| from BeautifulSoup import BeautifulStoneSoup | |
| from nltk import clean_html | |
| from HTMLParser import HTMLParser | |
| import feedparser | |
| import os |
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 java.net.UnknownHostException; | |
| import com.mongodb.Mongo; | |
| import com.mongodb.DB; | |
| import com.mongodb.DBCollection; | |
| import com.mongodb.BasicDBObject; | |
| import com.mongodb.DBCursor; | |
| import com.mongodb.MongoException; | |
| public class Mongo_Insert_Collection |