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 <xmmintrin.h> | |
| #include <pmmintrin.h> | |
| #include <float.h> | |
| #include "common.h" | |
| #include "linear_math.h" | |
| /************************************************************************** | |
| vec2: two-dimensional vector | |
| **************************************************************************/ |
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
| (eval-when-compile (require 'cl)) | |
| (defun ac-go-candidates () | |
| (ac-go-autocomplete)) | |
| (defvar ac-source-go | |
| '((candidates . ac-go-candidates) | |
| (prefix . "\\.\\(.*\\)") | |
| (requires . 0))) |
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
| [nsf @ go]$ nm _cmake_build/libtermbox.a -S --size-sort | |
| input.c.o: | |
| 00000000 000001ee T extract_event | |
| ringbuffer.c.o: | |
| 00000050 00000014 T free_ringbuffer | |
| 00000070 00000016 T clear_ringbuffer | |
| 000000d0 00000030 T ringbuffer_data_size | |
| 00000090 0000003c T ringbuffer_free_space |
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
| Syntax: | |
| [:CLASS ][!]ARG1 [!]ARG2 | |
| or | |
| [:CLASS ][!]ARG1.ARG2 | |
| Where CLASS is: | |
| c - const | |
| v - var |
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
| package main | |
| import ( | |
| "io/ioutil" | |
| "bytes" | |
| "exec" | |
| "path" | |
| "fmt" | |
| "os" | |
| ) |
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 ruby | |
| # encoding: utf-8 | |
| RED = "\033[0;31m" | |
| GRN = "\033[0;32m" | |
| NC = "\033[0m" | |
| PASS = "#{GRN}PASS!#{NC}" | |
| FAIL = "#{RED}FAIL!#{NC}" | |
| LINE = "████████████████████████████████████████████████████████████████████" |
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
| package main | |
| import "fmt" | |
| func worker(num int, done chan bool) { | |
| fmt.Printf("Worker: %d\n", num) | |
| done <- true | |
| } | |
| const NWorkers = 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
| package main | |
| import "fmt" | |
| type TableEntry struct { | |
| exectype string | |
| on int | |
| on2 int | |
| on3 int | |
| } |
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 <stdio.h> | |
| #include <functional> | |
| //------------------------------------------------------------------------- | |
| // Our main callback class, can be binded to function or member function | |
| // of a particular class easily(?) | |
| //------------------------------------------------------------------------- | |
| template <typename Ret, typename ...Args> | |
| struct funcptr_def { | |
| typedef Ret (*type)(Args...); |
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
| (defun ac-go-candidates () | |
| (ac-go-autocomplete)) | |
| (defvar ac-source-go | |
| '((candidates . ac-go-candidates) | |
| (prefix . "\\.\\(.*\\)") | |
| (requires . 0))) | |
| (defun ac-go-get-candidate-strings (tmpbuf) | |
| (split-string (with-current-buffer tmpbuf (buffer-string)) "\n")) |