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
<?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 |
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
; Had this | |
(let [g (nf.graph6/graph6-to-set (:graph6 rec)), | |
unfairness (nf.graphs/unfairness g)] | |
...) | |
; and replaced with this | |
(let [unfairness (-> rec | |
:graph6 |
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
\begin{figure} | |
\centering | |
\subfloat[] | |
{ | |
\includegraphics[scale=.6]{fig-1.pdf} | |
\label{fig:foo-1} | |
} | |
\par | |
\subfloat[] | |
{ |
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
% Typesetting | |
%\usepackage[margin=1in]{geometry} | |
%\usepackage{fullpage} | |
\usepackage{verbatim} | |
% Fonts and stuff | |
%\usepackage{times} | |
%\usepackage{soul} | |
\usepackage{color} | |
%\usepackage[usenames,dvipsnames]{color} |
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
lst = [] | |
def foo1(bar=lst): | |
bar.append(1) | |
print(bar) | |
foo1() | |
foo1() | |
foo1() |
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
// 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// | |
// 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 |
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
#!/usr/bin/env ruby | |
require 'optparse' | |
$ctable = Hash.new(0) # table of string => count | |
def clearTerm | |
print "\e[2J\e[f" | |
end |
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
\documentclass[12pt]{article} | |
% math typesetting | |
\usepackage{array, amsmath, amssymb, amsfonts} | |
% layout control | |
\usepackage[paper=a4paper,left=25mm,right=25mm,top=20mm,bottom=25mm]{geometry} | |
\usepackage[onehalfspacing]{setspace} | |
\setlength{\parskip}{.5em} | |
\usepackage{rotating} |