This text will be italic
This file contains 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
//url | |
$url = 'http://www.imdb.com/title/tt0367882/'; | |
//get the page content | |
$imdb_content = get_data($url); | |
//parse for product name | |
$name = get_match('/<title>(.*)<\/title>/isU',$imdb_content); | |
$director = strip_tags(get_match('/<h5[^>]*>Director:<\/h5>(.*)<\/div>/isU',$imdb_content)); | |
$plot = get_match('/<h5[^>]*>Plot:<\/h5>(.*)<\/div>/isU',$imdb_content); |
This file contains 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
{% assign gist_id = 3273735 %} | |
<script src="http://gist.github.com/{{ gist_id }}.js"></script> |
This file contains 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
http://stats.wordpress.com/csv.php?api_key=32bf3227c61d&blog_uri=http://YOURBLOG.com&days=1&format=josn&table=views |
This file contains 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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains 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
Chirag Notation | |
tf_ - boolean | |
cnt_ - counter | |
arr_ - array | |
str_ - string | |
arr[i] - index | |
db_ - database | |
g_, m_ : scope |
This file contains 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
Stevey's Google Platforms Rant | |
It now 404's so I've posted it here: | |
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it. | |
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don' |
This file contains 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
The WorldWideWeb application is now available as an alpha release in source | |
and binary form from info.cern.ch. | |
WorldWideWeb is a hypertext browser/editor which allows one to read information | |
from local files and remote servers. It allows hypertext links to be made and | |
traversed, and also remote indexes to be interrogated for lists of useful | |
documents. Local files may be edited, and links made from areas of text to | |
other files, remote files, remote indexes, remote index searches, internet news | |
groups and articles. All these sources of information are presented in a | |
consistent way to the reader. For example, an index search returns a hypertext | |
document with pointers to documents matching the query. Internet news articles |
This file contains 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
install node.js on ubuntu | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs npm |
OlderNewer