-
Checkout LLVM:
- svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
-
Checkout Clang:
- cd llvm\tools
- svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
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
func TestBenchmarkListImages(t *testing.T) { | |
tmpDir := t.TempDir() | |
specFile := filepath.Join(tmpDir, "1.json") | |
testSpec := imagespec.Image{ | |
Author: "1", | |
Architecture: "2", | |
Variant: "3", | |
OS: "4", | |
Config: imagespec.ImageConfig{ | |
User: "c", |
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
$ curl http://127.0.0.1:3338/v1/metrics | |
# HELP container_cpu_kernel_nanoseconds The total kernel cpu time | |
# TYPE container_cpu_kernel_nanoseconds gauge | |
container_cpu_kernel_nanoseconds{container_id="test120",namespace="default",runtime_class="io.containerd.runtime.v1.linux"} 1e+07 | |
container_cpu_kernel_nanoseconds{container_id="test12345",namespace="default",runtime_class="io.containerd.other.v2"} 1e+07 | |
# HELP container_cpu_throttle_periods_total The total cpu throttle periods | |
# TYPE container_cpu_throttle_periods_total gauge | |
container_cpu_throttle_periods_total{container_id="test120",namespace="default",runtime_class="io.containerd.runtime.v1.linux"} 0 | |
container_cpu_throttle_periods_total{container_id="test12345",namespace="default",runtime_class="io.containerd.other.v2"} 0 | |
# HELP container_cpu_throttled_periods_total The total cpu throttled periods |
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
package compression_test | |
import ( | |
"bytes" | |
"crypto/md5" | |
"io" | |
"io/ioutil" | |
"os" | |
"os/exec" | |
"testing" |
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
Should pass: | |
http://foo.com/blah_blah | |
http://foo.com/blah_blah/ | |
http://foo.com/blah_blah_(wikipedia) | |
http://foo.com/blah_blah_(wikipedia)_(again) | |
http://www.example.com/wpstyle/?p=364 | |
https://www.example.com/foo/?bar=baz&inga=42&quux | |
http://✪df.ws/123 | |
http://userid:password@example.com:8080 |
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
$ ../External/ctags/ctags.exe --append --fields=+ian --c-types=+cefgmnpstuvx --recurse --totals=yes . | |
1 file, 110 lines (2 kB) scanned in 0.0 seconds (1420 kB/s) | |
56 tags added to tag file (now 56 tags) | |
56 tags sorted in 0.00 seconds |
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
git config --global core.editor "'c:/program files/sublime text 2/sublime_text.exe' -w" |
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
DialogTemplate::DialogTemplate(const wchar_t * caption, u32 x, u32 y, u32 width, u32 height) | |
: _size(0) | |
{ | |
Header header = { 0 }; | |
header.dlg.style = DS_SETFONT | DS_CENTER | WS_POPUP | WS_CAPTION; | |
header.dlg.dwExtendedStyle = 0; | |
header.dlg.x = x; | |
header.dlg.y = y; |
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 SYS_WIN32_H | |
#define SYS_WIN32_H | |
// Slim version of windows.h header | |
#ifndef WIN32_LEAN_AND_MEAN | |
#define WIN32_LEAN_AND_MEAN | |
#endif | |
#ifndef WIN32_EXTRA_LEAN |
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
http://paulboxley.com/blog/2011/06/git-caret-and-tilde | |
http://alblue.bandlem.com/2011/05/git-tip-of-week-git-revisions.html |
NewerOlder