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
--- tex.web 2019-09-09 14:16:36.022037462 -0700 | |
+++ tex2.web 2019-12-13 09:39:24.865189980 -0800 | |
@@ -1956,7 +1956,7 @@ | |
end; | |
"R":print_esc("nonstopmode"); | |
"S":print_esc("scrollmode"); | |
-end; {there are no other cases} | |
+endcases; {there are no other cases} | |
print("..."); print_ln; update_terminal; return; | |
end |
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
#include <assert.h> | |
#include <array> | |
#include <functional> | |
#include <numeric> | |
template<typename T, int N> | |
class MultiArrayBase | |
{ | |
public: | |
MultiArrayBase(T* data, const std::array<int, N>& dim) |
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
#include <assert.h> | |
#include <ctype.h> | |
#include <stdio.h> | |
#include <deque> | |
struct Node | |
{ | |
Node(char v) : val(v) {} | |
bool isOperator() const |
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
#include "nontype.h" | |
const char tag[] = "abc"; | |
int main() | |
{ | |
} |
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
import java.util.concurrent.ArrayBlockingQueue; | |
import java.util.concurrent.BlockingQueue; | |
public class ThreadTest { | |
enum Work { | |
RUN, STOP | |
} | |
static class Worker implements Runnable { |
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
#include <assert.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <zlib.h> | |
#include <boost/noncopyable.hpp> | |
#include <deque> | |
// FIXME: re-implement this with disk buffer. | |
class Buffer : boost::noncopyable | |
{ |
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
#pragma once | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <type_traits> | |
typedef uint32_t khint_t; | |
typedef khint_t khiter_t; |
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
#include <boost/rational.hpp> | |
#include <iostream> | |
#include <vector> | |
#include <stdio.h> | |
using boost::rational; | |
using std::cout; | |
using std::vector; | |
typedef vector<rational<int>> Numbers; |
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
#include <atomic> | |
#include <mutex> | |
#include <condition_variable> | |
#include <memory> | |
#include <queue> | |
#include <thread> | |
#include <unistd.h> | |
// Listing 4.5 | |
template<typename T> |
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
#include <string> | |
#include <unordered_set> | |
#include <boost/intrusive_ptr.hpp> | |
#include <boost/noncopyable.hpp> | |
#include <gperftools/malloc_extension.h> | |
#include <assert.h> | |
#include <string.h> |
NewerOlder