The following is a list of programming languages and their syntax for doing metaprogramming.
Macros in C are just glorified string substitution.
<?php | |
add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) | |
{ | |
$meta_boxes[] = array( | |
'id' => 'brand_product', | |
'title' => 'Brands and Products', | |
'post_types' => array( 'post', 'page' ), | |
'context' => 'normal', | |
'priority' => 'high', | |
// Conditional Logic can be applied to Meta Box |
; Had this | |
(let [g (nf.graph6/graph6-to-set (:graph6 rec)), | |
unfairness (nf.graphs/unfairness g)] | |
...) | |
; and replaced with this | |
(let [unfairness (-> rec | |
:graph6 |
\begin{figure} | |
\centering | |
\subfloat[] | |
{ | |
\includegraphics[scale=.6]{fig-1.pdf} | |
\label{fig:foo-1} | |
} | |
\par | |
\subfloat[] | |
{ |
% Typesetting | |
%\usepackage[margin=1in]{geometry} | |
%\usepackage{fullpage} | |
\usepackage{verbatim} | |
% Fonts and stuff | |
%\usepackage{times} | |
%\usepackage{soul} | |
\usepackage{color} | |
%\usepackage[usenames,dvipsnames]{color} |
lst = [] | |
def foo1(bar=lst): | |
bar.append(1) | |
print(bar) | |
foo1() | |
foo1() | |
foo1() |
// Adds a pseudo element :after that clears floats, preventing them from riding | |
// up into the element, while still allowing the element to wrap around floats | |
// before it. This is useful for ensuring floating elements remain in place, | |
// vertically, when the non-floating elements are too short to push them down. | |
=postclear($side: both) | |
&:after | |
content: " " | |
display: block | |
clear: $side |
// | |
// rui_test.h | |
// Quanta | |
// | |
// Created by Justin Bowes on 2014-11-06. | |
// Copyright (c) 2014 Informi Software Inc. All rights reserved. | |
// | |
#ifndef rui_test__B2BD1D7_F65A_4026_B67F_437E3C640A18_h | |
#define rui_test__B2BD1D7_F65A_4026_B67F_437E3C640A18_h |
#!/usr/bin/env ruby | |
require 'optparse' | |
$ctable = Hash.new(0) # table of string => count | |
def clearTerm | |
print "\e[2J\e[f" | |
end |