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 main | |
import ( | |
"fmt" | |
"log" | |
"github.com/marcusolsson/tui-go" | |
) | |
func 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
diff --git a/sshd/net.go b/sshd/net.go | |
index 8305696..154ec45 100644 | |
--- a/sshd/net.go | |
+++ b/sshd/net.go | |
@@ -2,6 +2,7 @@ package sshd | |
import ( | |
"net" | |
+ "time" |
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 <stdlib.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/timerfd.h> | |
typedef struct TimeEvent { | |
int fd; | |
char* message; | |
struct timespec added_time; |
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
╭─[email protected] ~/dev/nothing ‹master*› | |
╰─➤ scc . | |
─────────────────────────────────────────────────────────────────────────────── | |
Language Files Lines Code Comments Blanks Complexity | |
─────────────────────────────────────────────────────────────────────────────── | |
C Header 67 2334 1738 23 573 44 | |
C 65 11394 9278 77 2039 1292 | |
Lisp 8 30 24 0 6 0 | |
Plain Text 5 140 132 0 8 0 | |
Markdown 5 264 194 0 70 0 |
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 main | |
import ( | |
"encoding/csv" | |
"encoding/xml" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"sort" |
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
use std::io; | |
use std::env; | |
use std::fs::{self, DirEntry}; | |
use std::path::Path; | |
fn visit_dirs(dir: &Path, cb: &Fn(&DirEntry)) -> io::Result<()> { | |
if dir.is_dir() { | |
for entry in fs::read_dir(dir)? { | |
let entry = entry?; | |
let path = entry.path(); |
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 <dirent.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <stdbool.h> | |
static | |
bool startswith(const char* str, const char* prefix) { | |
if ((str == NULL) || (prefix == NULL)) { |
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
╭─[email protected] ~/dev/nothing ‹master*› | |
╰─➤ cloc . 2 ↵ | |
167 text files. | |
161 unique files. | |
22 files ignored. | |
github.com/AlDanial/cloc v 1.80 T=0.37 s (392.4 files/s, 38714.8 lines/s) | |
------------------------------------------------------------------------------- | |
Language files blank comment code | |
------------------------------------------------------------------------------- |
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 <stdio.h> | |
#include <stdarg.h> | |
#define DEBUG | |
#ifdef DEBUG | |
#define DEBUG_MSG(fmt, ...) print_debug(fmt, ##__VA_ARGS__) | |
#else | |
#define DEBUG_MSG(fmt, args...) ((void) 0) | |
#endif |
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] | |
name = "first" | |
version = "0.1.0" | |
authors = ["Your Name <[email protected]>"] | |
[dependencies] | |
serde = "1.0.81" | |
serde_json = "1.0.33" | |
serde_derive = "1.0.81" |
NewerOlder