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
function output = mat2latex(varargin) | |
%This function produces Latex code for any matlab matrix of any dimension. | |
%It requires the package amsmath in latex for successful operation. This | |
%code utilizes bmatrix environment.This code produces square brackets to | |
%enclose the elements of the matrix.This function has to be run as an | |
%argument for the builtin fprintf() function to work properly. For example | |
%this fprintf(mat2latex(A)).Decimal numbers are left as decimal numbers by default. | |
%If you want the decimal numbers to be formatted as rational numbers, pass | |
%in a second parameter 'ratio' with your matrix. For example,fprintf(mat2latex(A,'ratio')) |
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
function output = mat2latexOctave(varargin) | |
%This function produces Latex code for any matlab matrix of any dimension. | |
%It requires the package amsmath in latex for successful operation. This | |
%code utilizes bmatrix environment.This code produces square brackets to | |
%enclose the elements of the matrix.This function has to be run as an | |
%argument for the builtin fprintf() function to work properly. For example | |
%this fprintf(mat2latex(A)).Decimal numbers are left as decimal numbers by default. | |
%If you want the decimal numbers to be formatted as rational numbers, pass | |
%in a second parameter 'ratio' with your matrix. For example,fprintf(mat2latex(A,'ratio')) |
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
function output = mat2DetLatex(varargin) | |
%This function produces Latex code for any octave/matlab matrix of any dimension as a determinant. | |
%It requires the package amsmath in latex for successful operation. This | |
%code utilizes vmatrix environment.This code produces absolute value brackets to | |
%enclose the elements of the matrix.This function has to be run as an | |
%argument for the builtin fprintf() function to work properly. For example | |
%this fprintf(mat2DetLatex(A)).Decimal numbers are left as decimal numbers by default. | |
%If you want the decimal numbers to be formatted as rational numbers, pass | |
%in a second parameter 'ratio' with your matrix. For example,fprintf(mat2DetLatex(A,'ratio')) |
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
function output = mat2latex(varargin) | |
%This function produces Latex code for any matlab matrix of any dimension. | |
%It requires the package amsmath in latex for successful operation. This | |
%code utilizes bmatrix environment.This code produces square brackets to | |
%enclose the elements of the matrix.This function has to be run as an | |
%argument for the builtin fprintf() function to work properly. For example | |
%this fprintf(mat2latex(A)).Decimal numbers are left as decimal numbers by default. | |
%If you want the decimal numbers to be formatted as rational numbers, pass | |
%in a second parameter 'ratio' with your matrix. For example,fprintf(mat2latex(A,'ratio')) |
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
function output = mat2DetLatex(varargin) | |
%This function produces Latex code for any octave/matlab matrix of any dimension as a determinant. | |
%It requires the package amsmath in latex for successful operation. This | |
%code utilizes vmatrix environment.This code produces absolute value brackets to | |
%enclose the elements of the matrix.This function has to be run as an | |
%argument for the builtin fprintf() function to work properly. For example | |
%this fprintf(mat2DetLatex(A)).Decimal numbers are left as decimal numbers by default. | |
%If you want the decimal numbers to be formatted as rational numbers, pass | |
%in a second parameter 'ratio' with your matrix. For example,fprintf(mat2DetLatex(A,'ratio')) |
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
function output = mat2DetLatexOctave(varargin) | |
%This function produces Latex code for any octave/matlab matrix of any dimension as a determinant. | |
%It requires the package amsmath in latex for successful operation. This | |
%code utilizes vmatrix environment.This code produces absolute value brackets to | |
%enclose the elements of the matrix.This function has to be run as an | |
%argument for the builtin fprintf() function to work properly. For example | |
%this fprintf(mat2DetLatex(A)).Decimal numbers are left as decimal numbers by default. | |
%If you want the decimal numbers to be formatted as rational numbers, pass | |
%in a second parameter 'ratio' with your matrix. For example,fprintf(mat2DetLatex(A,'ratio')) |
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
def generate_random_number_with_n_digits(input_n_digit) | |
smallest_number_of_nplus1_digits = 10**input_n_digit | |
smallest_number_of_n_digits = 10**(input_n_digit-1) | |
random_n_digit_number = Random.rand(smallest_number_of_nplus1_digits-smallest_number_of_n_digits)+smallest_number_of_n_digits | |
return random_n_digit_number |
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[margin = 0.8in]{geometry} | |
\usepackage{soul} | |
\usepackage{color} | |
\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
\documentclass{article} | |
\usepackage[margin = 0.8in]{geometry} | |
\usepackage{soul} | |
\begin{document} | |
\hl{This is a wonderful highlight} |
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
/******************************************************************************************************************** | |
Countdown.js is a simple script to add a countdown timer | |
for your website. Currently it can only do full minutes | |
and partial minutes aren't supported. This script is a fork of http://jsfiddle.net/HRrYG/ with some | |
added extensions. Since the original code that I forked was released under Creative Commons by SA license, | |
I have to release this code under the same license. You can view a live demo of this code at http://jsfiddle.net/JmrQE/2/. | |
********************************************************************************************************************/ | |
function countdown(minutes) { | |
var seconds = 60; | |
var mins = minutes |
OlderNewer