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
| rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="817" x-info="http://www.rsyslog.com"] start | |
| rsyslogd: rsyslogd's groupid changed to 104 | |
| rsyslogd: rsyslogd's userid changed to 101 | |
| kernel: Initializing cgroup subsys cpuset | |
| kernel: Initializing cgroup subsys cpu | |
| kernel: Initializing cgroup subsys cpuacct | |
| kernel: Linux version 3.13.0-44-generic (buildd@lamiak) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 (Ubuntu 3.13.0-44.73-generic 3.13.11-ckt12) | |
| kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-3.13.0-44-generic root=UUID=946c230f-28fc-4512-874e-14a400c778a8 ro quiet splash | |
| kernel: KERNEL supported cpus: | |
| kernel: Intel GenuineIntel |
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
| %*[^"]"%f"%*\D%l: %m | |
| "%f"%*\D%l: %m | |
| %-G%f:%l: (Each undeclared identifier is reported only once | |
| %-G%f:%l: for each function it appears in.) | |
| %-GIn file included from %f:%l:%c: | |
| %-GIn file included from %f:%l:%c\, | |
| %-GIn file included from %f:%l:%c | |
| %-GIn file included from %f:%l | |
| %-G%*[ ]from %f:%l:%c | |
| %-G%*[ ]from %f:%l: |
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
| " This works on Windows, but is ineffective on Linux | |
| set guifont="Ubuntu Mono 10" | |
| " This works on Linux | |
| set guifont=Ubuntu\ Mono\ 10 |
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
| <?xml version="1.0"?> | |
| <!DOCTYPE module PUBLIC | |
| "-//Puppy Crawl//DTD Check Configuration 1.2//EN" | |
| "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
| <module name="Checker"> | |
| <!-- Checks that property files contain the same keys. --> |
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/env python | |
| """ | |
| This module provides methods to read values from a INI file. | |
| """ | |
| import ConfigParser | |
| class Config(object): |
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/env python | |
| """ | |
| Illustration of Google Python Style Guide: | |
| https://google-styleguide.googlecode.com/svn/trunk/pyguide.html | |
| This module provides a class to play TicTacToe game. | |
| """ | |
| __author__ = "Gamer Dude" |
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
| :%s/\<foo\>/abracadabra/ |
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
| #include <getopt.h> | |
| #include <iostream> | |
| int num = -1; | |
| bool is_beep = false; | |
| float sigma = 2.034; | |
| std::string write_file = "default_file.txt"; | |
| void PrintHelp() | |
| { |
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
| #include <mutex> | |
| #include <queue> | |
| std::queue<int> q; // Queue which multiple threads might add/remove from | |
| std::mutex m; // Mutex to protect this queue | |
| void AddToQueue(int i) | |
| { | |
| std::lock_guard<std::mutex> lg(m); // Lock will be held from here to end of function | |
| q.push(i); |
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
| #include <mutex> | |
| #include <queue> | |
| std::queue<int> q; // Queue which multiple threads might add/remove from | |
| std::mutex m; // Mutex to protect this queue | |
| void AddToQueue(int i) | |
| { | |
| m.lock(); | |
| q.push(i); |