A Pen by Takuma YOSHITANI on CodePen.
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
import React from 'react' | |
import { Form, FormRenderProps } from 'react-final-form' | |
interface Props<Values> { | |
initialValues?: Partial<Values> | |
onSubmit: (values: Values) => Promise<void> | |
pages: React.ReactElement<WizardPageProps<Values>>[] | |
children: ( | |
props: FormRenderProps<Values> & { |
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
%%%% Preamble >>> | |
\usepackage{subcaption} | |
\newlength{\twosubht} | |
\newsavebox{\twosubbox} | |
%%%%% <<< | |
\begin{figure}[htp] | |
% preliminary | |
\sbox\twosubbox{% | |
\resizebox{\dimexpr.99\textwidth-1em}{!}{% {(num of image)-1}em |
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
(* Sort list of polynomial functions (fs) based on degree of x in ascending order *) | |
SortByDegree[fs_, x_] := Module[{}, | |
Comp[f1_,f2_] := Exponent[f1,x] < Exponent[f2,x]; | |
Sort[fs,Comp] | |
]; | |
(* Calculate pseud-remainder *) | |
Rem[f_, g_, x_] := Module[{q,r,u}, | |
{q,r} = Together[#]&/@PolynomialQuotientRemainder[f,g,x]; | |
u = PolynomialLCM[Denominator[q], Denominator[r]]; |
- x : not worked
- o: worked (able to open in quicktime but need conversion)
- oo: worked well (preview worked but wrong aspect ratio)
- ooo: worked very well (preview worked, and aspect ratio’s right)
(Codecs are extracted from https://web.archive.org/web/20120722124832/http://opencv.willowgarage.com/wiki/QuickTimeCodecs )
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
puts "Hello World" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
MacにHomebrewが入っていない場合はインストールする
highlightをインストールする
brew install 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
# coding: utf8 | |
import a2 | |
import csv | |
reader = csv.DictReader(open("evaluation-values.csv")) | |
leapAvg = 0 | |
leapNum = 0 | |
nonLeapAvg = 0 |
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
# coding: utf8 | |
def isLeapYear(x): | |
return x%4 == 0 and x%100 != 0 or x%400 == 0 |
NewerOlder