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
;;;; Path: ~/quicklisp/local-projects/foo/src/bar.lisp | |
(defpackage foo.bar | |
(:nicknames :foo.bar) | |
(:use :cl) | |
(:export :my-function)) | |
(in-package :foo.bar) | |
;; :arrows is not imported, but I can still access it | |
;; |
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
;; | |
;; Making a deeply nested map by following parent-child relations between items | |
;; | |
(defn make-items [n] | |
(concat [{:id 0 :name "item-root"}] | |
(for [x (range 1 n)] {:id x :parent (dec x) :item (format "item-%d" x)}))) | |
(defn item-children [item coll] | |
(if-let [children (-> (filter #(= (:parent %) (:id item)) coll) seq)] |
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
;;; validate-step validates whether a given step is a valid one. | |
(define validate-step | |
(lambda (step) | |
(let ((s | |
(cond | |
((and (list? step) (not (null? step))) (car step)) | |
((and (list? step) (null? step)) 1) | |
((string? step) (string->number step)) | |
((integer? step) step)))) |
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> | |
typedef struct | |
{ | |
const char *key; |
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
extern crate libc; | |
use std::{boxed, ffi, ptr}; | |
use libc::c_char; | |
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
extern crate libc; | |
extern crate libzmq; | |
use std::ffi; | |
use std::thread; |
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
/* Example C header file for libtest */ | |
... | |
#define LIB_VERSION 1 | |
... | |
/* End of header file */ | |
// Example Rust code | |
extern crate libc; |
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 a/extra/zabbix/vsphere-import/zabbix-vsphere-import b/extra/zabbix/vsphere-import/zabbix-vsphere-import | |
index 01cd0c4..3958e6a 100755 | |
--- a/extra/zabbix/vsphere-import/zabbix-vsphere-import | |
+++ b/extra/zabbix/vsphere-import/zabbix-vsphere-import | |
@@ -436,8 +436,14 @@ class ZabbixVSphere(object): | |
host | |
) | |
+ # Fix for issue #128 | |
+ # Split the VM name which consists of '<vm> (uuid)' |
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 a/extra/zabbix/vsphere-import/zabbix-vsphere-import b/extra/zabbix/vsphere-import/zabbix-vsphere-import | |
index 01cd0c4..8f797a8 100755 | |
--- a/extra/zabbix/vsphere-import/zabbix-vsphere-import | |
+++ b/extra/zabbix/vsphere-import/zabbix-vsphere-import | |
@@ -436,8 +436,14 @@ class ZabbixVSphere(object): | |
host | |
) | |
+ # Fix for issue #128 | |
+ # Split the VM name which consists of '<vm> (uuid)' |