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
class Foo; | |
class Bar { | |
friend class Foo; | |
protected: | |
void aProtectedMethod() { | |
} | |
}; |
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
diff --git gio/kqueue/kqueue-thread.c gio/kqueue/kqueue-thread.c | |
index 6781c73..a08534d 100644 | |
--- gio/kqueue/kqueue-thread.c | |
+++ gio/kqueue/kqueue-thread.c | |
@@ -24,6 +24,7 @@ | |
#include <sys/event.h> | |
#include <sys/time.h> | |
#include <unistd.h> | |
+#include <errno.h> | |
#include <glib.h> |
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 <glib.h> | |
#include <gio/gio.h> | |
#include <glib/gstdio.h> | |
#include <sys/resource.h> | |
static GHashTable *g_all_entries = NULL; | |
G_GNUC_INTERNAL G_LOCK_DEFINE (hash_lock); | |
static void | |
on_file_change (GFileMonitor *, GFile *, GFile *, GFileMonitorEvent, gpointer); |
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
Object subclass: ActivityProducer [ | |
| root allEntries actions | | |
ActivityProducer class >> root: aString [ | |
<category: 'instance creation'> | |
^(self new) | |
init: aString; | |
yourself | |
] |
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 elisp-header (len text) | |
(interactive "p\nsHeader: ") | |
(let* ((total-len (if (< len 10) 80 len)) | |
(text-len (length text)) | |
(bar-len (/ (- total-len (+ 2 text-len)) 2)) | |
(left-len (- total-len (+ (* 2 bar-len) 2 text-len))) | |
(inserter (lambda (len) (dotimes (i len) (insert ";"))))) | |
(funcall inserter bar-len) | |
(insert (concat " " text " ")) | |
(funcall inserter bar-len) |
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 <iostream> | |
class Foo { | |
int bar; | |
int &baz; | |
public: | |
Foo() : bar(0), baz(bar) { | |
} |
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
PackageLoader fileInPackage: #PetitParser. | |
Object subclass: InfoParser [ | |
InfoParser class >> fileParser [ | |
<category: 'parsers'> | |
^self sectionParser trim star | |
=> [:nodes | Dictionary from: nodes] | |
] | |
InfoParser class >> sectionParser [ |
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
;; (in-package :aer-core) | |
(defclass backprop () | |
()) | |
(defgeneric process (neural-object input) | |
(:documentation "Process the input vector")) | |
(defgeneric calculate-deltas (layer context) | |
(:documentation "Calculate the deltas")) |
NewerOlder