- 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
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, 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 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 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 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
#!/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
<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
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
@{ | |
Layout = null; | |
} | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width" /> | |
<title>::Uploadify Example::</title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.uploadify-3.1.min.js")"></script> |
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
#on the top | |
my $client_id = "YOUR CLIENT ID HERE"; | |
my $client_secret = "YOUR SECRET ID HERE"; | |
#route to login | |
get '/login' => sub { | |
#redirect the user to githubs login/authorize page | |
#we pass in a silly state (x12) ideally this should be generated | |
redirect "https://github.com/login/oauth/authorize?&client_id=$client_id&state=x12"; | |
}; |