Straight from the programming trenches, The Pragmatic Programmer: From Journeyman to Master cuts through the increasing specialization and technicalities of modern software development to examine the core process—what do you do, as an individual and as a team, if you want to
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
// ------------------------------------------------ | |
// question: Given two arrays, find common items in both arrays. | |
var a = [ 1,2,13,11,6,7,4, 8,9,10] | |
var b = [ 2,4,5,11,13 ] | |
// ------------------------------------------------ | |
// ------------------------------------------------ | |
// solution: compare each item of the array containing least items, with the other array, and return the common ones. | |
var a = [ 1,2,13,11,6,7,4,8,9,10 ]; | |
var b = [ 2,4,5,11,13 ]; |
Table of Contents
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
Exceptional Ruby (Avdi Grimm) | |
Objects on Rail (Avdi Grimm) | |
Confident Ruby (Avdi Grimm) | |
Eloquent Ruby (Russ Olsen) | |
Growing Object-Oriented Software Guided by Tests (Steve Freeman and Nat Pryce) | |
Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation (Jez Humble and David Farley) | |
Clean Code (Robert C. Martin) | |
Working with UNIX processes (Jesse Storimer) | |
Working With TCP Sockets (Jesse Storimer) | |
Founders at Work (Livingston) |
As pointed out by @johntyree in the comments, using git reflog is easier and more reliable. Thanks for the suggestion!
$ git reflog
1ed7510 HEAD@{1}: checkout: moving from develop to 1ed7510
3970d09 HEAD@{2}: checkout: moving from b-fix-build to develop
1ed7510 HEAD@{3}: commit: got everything working the way I want
70b3696 HEAD@{4}: commit: upgrade rails, do some refactoring
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
The initial source comes from sdcuike/issueBlog#4
https://github.com/PacktPublishing free to download books code by Packet
https://love2.io Chinese site
This file has been truncated, but you can view the full file.
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
["Afghanistan","Herat (Afghanistan)","Kabul (Afghanistan)","Kandahar (Afghanistan)","Molah (Afghanistan)","Rana (Afghanistan)","Shar (Afghanistan)","Sharif (Afghanistan)","Wazir Akbar Khan (Afghanistan)","Albania","Elbasan (Albania)","Petran (Albania)","Pogradec (Albania)","Shkoder (Albania)","Tirana (Albania)","Ura Vajgurore (Albania)","Algeria","Algiers (Algeria)","Annaba (Algeria)","Azazga (Algeria)","Batna City (Algeria)","Blida (Algeria)","Bordj (Algeria)","Bordj Bou Arreridj (Algeria)","Bougara (Algeria)","Cheraga (Algeria)","Chlef (Algeria)","Constantine (Algeria)","Djelfa (Algeria)","Draria (Algeria)","El Tarf (Algeria)","Hussein Dey (Algeria)","Illizi (Algeria)","Jijel (Algeria)","Kouba (Algeria)","Laghouat (Algeria)","Oran (Algeria)","Ouargla (Algeria)","Oued Smar (Algeria)","Relizane (Algeria)","Rouiba (Algeria)","Saida (Algeria)","Souk Ahras (Algeria)","Tamanghasset (Algeria)","Tiaret (Algeria)","Tissemsilt (Algeria)","Tizi (Algeria)","Tizi Ouzou (Algeria)","Tlemcen (Algeria)","Andorra","Andorra l |
This file has been truncated, but you can view the full file.
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
{"Afghanistan":["Herat","Kabul","Kandahar","Molah","Rana","Shar","Sharif","Wazir Akbar Khan"],"Albania":["Elbasan","Petran","Pogradec","Shkoder","Tirana","Ura Vajgurore"],"Algeria":["Algiers","Annaba","Azazga","Batna City","Blida","Bordj","Bordj Bou Arreridj","Bougara","Cheraga","Chlef","Constantine","Djelfa","Draria","El Tarf","Hussein Dey","Illizi","Jijel","Kouba","Laghouat","Oran","Ouargla","Oued Smar","Relizane","Rouiba","Saida","Souk Ahras","Tamanghasset","Tiaret","Tissemsilt","Tizi","Tizi Ouzou","Tlemcen"],"Andorra":["Andorra la Vella","Canillo","Encamp","Engordany","Escaldes-Engordany","La Massana","Llorts","Ordino","Santa Coloma","Sispony","Soldeu"],"Angola":["Ambriz","Benguela","Cabinda","Cacole","Camabatela","Cazeta","Huambo","Kuito","Lobito","Luanda","Lubango","Lucapa","Lumeje","Malanje","Menongue","Muxaluando","Namibe","Ondjiva","Piri","Saurimo","Talatona"],"Antigua and Barbuda":["All Saints","Cassada Gardens","Codrington","Old Road","Parham","Woods"],"Argentina":["28 de Noviembre","Abasto","Acass |
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
const { createServer } = require('http'); | |
createServer((req, res) => { | |
res.writeHead(200, { | |
Connection: 'Transfer-Encoding', | |
'Content-Type': 'text/html; charset=utf-8', | |
'Transfer-Encoding': 'chunked' | |
}); | |
res.write(` |
NewerOlder