- Aho, Alfred Vaino, John Edward Hopcroft, and Jeffrey David Ullman. 1976. The design and analysis of computer algorithms. Reading, Mass. [usw.]: Addison-Wesley.
- Stepanov, Alexander A. 2015. From mathematics to generic programming. Upper Saddle River, N.J. [etc.]: Addison-Wesley.
- Stroustrup, Bjarne. 2013. The C++ programming language: [C++11]. Upper Saddle River (NJ) [etc.]: Addison-Wesley.
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
#!/bin/bash | |
# install qemu utils | |
sudo apt install qemu-utils | |
# install nbd client | |
sudo apt install nbd-client |
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
#ifndef defer | |
struct defer_dummy {}; | |
template <class F> struct deferrer { F f; ~deferrer() { f(); } }; | |
template <class F> deferrer<F> operator*(defer_dummy, F f) { return {f}; } | |
#define DEFER_(LINE) zz_defer##LINE | |
#define DEFER(LINE) DEFER_(LINE) | |
#define defer auto DEFER(__LINE__) = defer_dummy{} *[&]() | |
#endif // defer |
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
GRUB_CMDLINE_LINUX_DEFAULT="usb-storage.quirks=0bda:1a2b:i" |
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
/* | |
* Removes power management and keeps USB hard drive alive in Linux | |
* You can dissable the powermanagement of your device with the following command (no powermanagement = no spindown - no standby for the harddrive) | |
*/ | |
hdparm -B 255 /dev/sdX | |
/* | |
* replace sdX with the name of your harddrive | |
* This will only last till you restart your pc. |
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
yum list | |
yum update pulseaudio | |
wget http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/blueman-1.21-8.2.src.rpm | |
pair and connect with blueman |
test blog
So, you might be asking yourself, what is Gistlog?
Gistlog is a blogging "platform" for people who want to quickly write and publish content, in Markdown, and don't want to bother with yet another platform and yet another login and yet another group hoarding their content. With Gistlog, you use your pre-existing Github login, you store the data in your own Github account, and you can publish with a single click.
- Create a public gist with a single file using Markdown. Set the gist description to be the title of your blog post
- Copy the gist URL, and paste it into the text box on the Gistlog home page
- Copy your resulting URL and share it as your blog post--note that it will be in the form of
http://gistlog.co/your-github-username/gist-id
- If you want to have your own Gistlog landing page (e.g. gistlog.co/mattstauffer), read all about it
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
-module(rotate). | |
-export([rotate/2]). | |
rotate(N, List) -> | |
if | |
is_number(N) -> | |
rot([N], List); | |
true -> rot(N, List) | |
end. |