Idiomatic Python [video]
neckbeardrepublic.com
neckbeardrepublic.com
vector<string> naughtyList {"Bob", "Tom", "Rod", "God"}; string member = "Jerry"; for (string & each : naughtyList) if (member == each) // do stuff
/rant
bool xIsMember = std::find(v.begin(), v.end(), x) != v.end();
Edit: I admit this is terrible API design. When you want the v.begin()/v.end() combination 90% of the time, why not at least have a std::find() overload that does that for you? Or simply add "std::contains(v, x) -> bool"? You can write your own version of that, of course, but... my take-home point: API design is very important.Also, containers that are most well suited to membership searches (std::set and std::multiset) do include find(Key const& key) as a member.
What browser are you using? what version? What operating system are you using?
Windows 7 Professional x64 SP1. No video on the following 3 browsers: Firefox 19.0.2, Chrome 25.0.1.1364.172, and Cyberfox 19.0.2 (a 64-bit build of Firefox). I get video, but the audio is choppy on IE 9.
It seems to work on my iPhone with Safari (iOS 6.1.2) but the bandwidth required is too great for my 4G connection.
So see ya in 4 months?
See also:
https://github.com/Lokaltog/vim-powerline and *-powerline for shells, etc.