jenkins_url
+ /api/json?tree=jobs[name,color]
jenkins_url
+ /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]
;;-------------------------------------------------------------------- | |
;;-- Types | |
;; slot-number type | |
(defun within-slot-number-rangep (n) | |
(not (or (< n 0) (> n 255)))) | |
(deftype slot-number () | |
`(and fixnum (satisfies within-slot-number-rangep))) |
#!/usr/bin/env perl | |
use v5.14; | |
use Path::Class; | |
use Class::Date qw(date now); | |
use Getopt::Mini var => 'opts' ; | |
my %mods ; | |
my $k = 0; | |
#use YAML; |
;; A Church-Numberal is a function, which takes a function f(x) | |
;; as its argument and returns a new function f'(x). | |
;; Church-Numerals N applies the function f(x) N times on x. | |
; predefined Church-Numerals 0 to 9 | |
(define zero (lambda (f) (lambda (x) x))) | |
(define one (lambda (f) (lambda (x) (f x)))) | |
(define two (lambda (f) (lambda (x) (f (f x))))) | |
(define three (lambda (f) (lambda (x) (f (f (f x)))))) | |
(define four (lambda (f) (lambda (x) (f (f (f (f x))))))) |
This post also appears on lisper.in.
Reader macros are perhaps not as famous as ordinary macros. While macros are a great way to create your own DSL, reader macros provide even greater flexibility by allowing you to create entirely new syntax on top of Lisp.
Paul Graham explains them very well in [On Lisp][] (Chapter 17, Read-Macros):
The three big moments in a Lisp expression's life are read-time, compile-time, and runtime. Functions are in control at runtime. Macros give us a chance to perform transformations on programs at compile-time. ...read-macros... do their work at read-time.
$('#container').highcharts({ | |
chart: { | |
alignTicks: true, // When using multiple axis, the ticks of two or more opposite axes will automatically be aligned by adding ticks to the axis or axes with the least ticks. | |
animation: true, // Set the overall animation for all chart updating. Animation can be disabled throughout the chart by setting it to false here. | |
backgroundColor: '#FFF', // The background color or gradient for the outer chart area. | |
borderColor: '#4572A7', // The color of the outer chart border. | |
borderRadius: 5, // The corner radius of the outer chart border. In export, the radius defaults to 0. Defaults to 5. | |
borderWidth: 0, // The pixel width of the outer chart border. | |
className: null, // A CSS class name to apply to the charts container div, allowing unique CSS styling for each chart. | |
defaultSeriesType: 'line', // Alias of type. |
;;; ox-confluence --- Confluence Wiki Back-End for Org Export Engine | |
;; Copyright (C) 2012, 2014 Sébastien Delafond | |
;; Author: Sébastien Delafond <sdelafond@gmail.com> | |
;; Keywords: outlines, confluence, wiki | |
;; This file is not part of GNU Emacs. | |
;; This program is free software: you can redistribute it and/or modify |