This file contains 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
% Original Tex question at: https://tex.stackexchange.com/questions/730485/difficulty-changing-legend-marker-and-resizing-in-pgfplots | |
\documentclass{article} | |
\usepackage{pgfplots} | |
\usepackage{amsmath} | |
\pgfplotsset{compat=1.18} | |
\usepackage{pdflscape} | |
\begin{document} | |
\begin{landscape} |
This file contains 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{article} | |
\usepackage{pgfplots} | |
\usepackage{amsmath} | |
\pgfplotsset{compat=1.18} | |
\usepackage{pdflscape} | |
\begin{document} | |
\begin{landscape} | |
\pagestyle{empty} | |
\begin{tikzpicture}[scale=1] |
This file contains 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{article} | |
\usepackage{tcolorbox} | |
\newtcolorbox{shadedsection}[1][]{ % Custom box with options / Caja personalizada con opciones | |
colback=blue!20, % Background color of the box / Color de fondo de la caja | |
colframe=blue!50, % Border color of the box / Color del borde de la caja | |
boxrule=0pt, % Border thickness (0pt = no border) / Grosor del borde (0pt = sin borde) | |
width=\textwidth, % Box width, same as the text width / Ancho de la caja, igual al ancho del texto | |
sharp corners, % No rounded corners / Sin esquinas redondeadas | |
left=0pt, right=0pt, top=2pt, bottom=2pt, % Padding / Relleno |
This file contains 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 response to the stackexchange question: https://tex.stackexchange.com/questions/680066/customising-gradetable-to-group-multiple-choice-into-1-column-with-the-exam-cl | |
% You can compile and view the pdf version of this Latex document at: https://crixet.com/?gist=d433f7deda0eb630dad9b98bb3b281b9 | |
\documentclass[addpoints]{exam} | |
\usepackage{tabularx} | |
\usepackage{xcolor} | |
\usepackage{multicol} | |
\begin{document} | |
This file contains 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
% Original question on Reddit: https://www.reddit.com/r/LaTeX/comments/1gi75el/these_commands_arent_working_any_help/ | |
% To view the source code or fork it, see: https://gist.github.com/vicapow/fd736f10b9382e924875f4e093a63d33 | |
% Note, you may need to compile twice to ensure the refernces get updated completely. | |
\documentclass{article} | |
\usepackage{amsmath} % Required for split and align environments |
This file contains 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
test 1 |
This file contains 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
(async function() { | |
async function fetchData(date) { | |
var date_split = date.split('-'), | |
year = date_split[0], | |
month = date_split[1], | |
day = date_split[2]; | |
if (parseInt(day) < 10){ | |
day = parseInt(day); | |
} | |
month = parseInt(month) - 1; |
This file contains 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> | |
#include <vector> | |
using namespace std; | |
struct A { | |
int * ptr; | |
A() { | |
cout << "Constructor" << endl; | |
ptr = new int; |
This file contains 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
export default function transformer(file, api) { | |
const j = api.jscodeshift; | |
const root = j(file.source); | |
let body; | |
root.find(j.Program).map(program => { | |
body = program.value.body; | |
}); | |
const lodashImports = root |
This file contains 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
// @flow | |
declare module 'styled-components' { | |
// { type: '__styled' } is really only used ot avoid type collisions | |
// betwteen the interpolation unions types of (props: P) => string | number) | |
// and StyledComponent<any>. | |
declare export type StyledComponent<Props> = { type: '__styled' } & React$ComponentType<Props>; | |
declare export type Interpolation<P> = | |
| StyledComponent<any> // Order seems to matter unexpectedly. |
NewerOlder