- www.gideondsouza.com
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
public class HomeController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
return View(); | |
} | |
public ActionResult Upload() | |
{ | |
var file = Request.Files["Filedata"]; | |
string savePath = Server.MapPath(@"~\Content\" + file.FileName); |
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
<div class="gallery-img2"> | |
<div class=""></div> | |
<a href="somelink"> | |
<img src="MY TARGET FILE IS HERE" alt="" width="225" height="225" border="0" /> | |
</a> | |
</div> |
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/perl | |
#updated on tryperl.com | |
# Created by Gideon Dsouza on 2012-12-11 | |
use strict; | |
use warnings; | |
use WWW::Mechanize; | |
use HTML::TokeParser; | |
#create a new instance of mechanize |
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
SELECT yr | |
FROM movie | |
WHERE title='Citizen Kane' |
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
SELECT id, title FROM movie WHERE yr = 1962 |
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
SELECT a.name | |
FROM casting c JOIN actor a ON | |
a.id = c.actorid | |
WHERE | |
a.name <> 'Art Garfunkel' AND | |
c.movieid | |
IN ( | |
SELECT m.id | |
FROM casting c JOIN movie m ON | |
m.id = c.movieid |
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
SELECT m.title, Count(c.actorid) | |
FROM casting c JOIN movie m ON | |
m.id = c.movieid | |
WHERE m.yr = 1978 | |
GROUP BY m.title | |
ORDER BY Count(c.actorid) DESC |
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
SELECT a.name | |
FROM casting c JOIN movie m ON | |
m.id = c.movieid | |
JOIN actor a ON | |
a.id = c.actorid AND | |
c.ord = 1 | |
GROUP BY a.name | |
Having Count(m.id) >= 30 |
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
SELECT m.title, a.name | |
FROM casting c JOIN movie m ON | |
m.id = c.movieid AND | |
c.ord = 1 | |
JOIN actor a ON | |
a.id = c.actorid | |
WHERE m.id IN ( | |
SELECT m.id | |
FROM casting c JOIN movie m ON | |
m.id = c.movieid |
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
SELECT yr,COUNT(title) FROM | |
movie JOIN casting ON movie.id=movieid | |
JOIN actor ON actorid=actor.id | |
WHERE name='John Travolta' | |
GROUP BY yr | |
HAVING COUNT(title)=(SELECT MAX(c) FROM | |
(SELECT yr,COUNT(title) AS c FROM | |
movie JOIN casting ON movie.id=movieid | |
JOIN actor ON actorid=actor.id | |
WHERE name='John Travolta' |