Skip to content

Commit 65f085d

Browse files
committed
Replaced http:// with https://
1 parent 6c580bf commit 65f085d

File tree

79 files changed

+85
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+85
-85
lines changed

Converters/any2mp3.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Daniel "Trizen" Șuteu
44
# Date: 17 June 2014
55
# Edit: 21 March 2020
6-
# Website: http://github.com/trizen
6+
# Website: https://github.com/trizen
77

88
# Convert any media file to MP3, using `n` parallel processes of ffmpeg.
99

Digest/md5.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/MD5/Implementation
4+
## https://rosettacode.org/wiki/MD5/Implementation
55
#
66

77
class MD5(String msg) {

Games/bulls_and_cows.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Bulls_and_cows#Sidef
4+
## https://rosettacode.org/wiki/Bulls_and_cows#Sidef
55
#
66

77
var size = 4;

Games/bulls_and_cows_player.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Bulls_and_cows/Player#Sidef
4+
## https://rosettacode.org/wiki/Bulls_and_cows/Player#Sidef
55
#
66

77
# Build a list of all possible solutions. The regular expression weeds

Games/maze_generation.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Maze_generation#Sidef
4+
## https://rosettacode.org/wiki/Maze_generation#Sidef
55
#
66

77
var(w, h) = (5, 5);

Games/rock-paper-scissors.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Rock-paper-scissors
4+
## https://rosettacode.org/wiki/Rock-paper-scissors
55
#
66

77
const rps = %w(r p s)

Games/snake_game_oo.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Snake
4+
## https://rosettacode.org/wiki/Snake
55
#
66

77
class SnakeGame(w, h) {

Graph/dijkstra_s_algorithm.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Dijkstra%27s_algorithm
4+
## https://rosettacode.org/wiki/Dijkstra%27s_algorithm
55
#
66

77
class Graph(*args) {

Image/color_wheel.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Color_wheel
4+
## https://rosettacode.org/wiki/Color_wheel
55
#
66

77
require('Imager')

Image/curlicue_fractal.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Generates a Curlicue Fractal
44

55
# See also:
6-
# http://mathworld.wolfram.com/CurlicueFractal.html
6+
# https://mathworld.wolfram.com/CurlicueFractal.html
77

88
require('GD::Simple')
99

Image/plasma_effect.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Plasma_effect
4+
## https://rosettacode.org/wiki/Plasma_effect
55
#
66

77
require('Imager')

Image/pythagoras_tree.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Pythagoras_tree
4+
## https://rosettacode.org/wiki/Pythagoras_tree
55
#
66

77
require('Imager')

LICENSE

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GNU GENERAL PUBLIC LICENSE
22
Version 3, 29 June 2007
33

4-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
55
Everyone is permitted to copy and distribute verbatim copies
66
of this license document, but changing it is not allowed.
77

@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
645645
GNU General Public License for more details.
646646

647647
You should have received a copy of the GNU General Public License
648-
along with this program. If not, see <http://www.gnu.org/licenses/>.
648+
along with this program. If not, see <https://www.gnu.org/licenses/>.
649649

650650
Also add information on how to contact you by electronic and paper mail.
651651

@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
664664
You should also get your employer (if you work as a programmer) or school,
665665
if any, to sign a "copyright disclaimer" for the program, if necessary.
666666
For more information on this, and how to apply and follow the GNU GPL, see
667-
<http://www.gnu.org/licenses/>.
667+
<https://www.gnu.org/licenses/>.
668668

669669
The GNU General Public License does not permit incorporating your program
670670
into proprietary programs. If your program is a subroutine library, you
671671
may consider it more useful to permit linking proprietary applications with
672672
the library. If this is what you want to do, use the GNU Lesser General
673673
Public License instead of this License. But first, please read
674-
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
674+
<https://www.gnu.org/philosophy/why-not-lgpl.html>.

Math/AGM_calculate_pi.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# The AGM method for efficiently computing an arbitrary number of digits of PI.
44

55
# See also:
6-
# http://rosettacode.org/wiki/Arithmetic-geometric_mean/Calculate_Pi
6+
# https://rosettacode.org/wiki/Arithmetic-geometric_mean/Calculate_Pi
77
# https://en.wikipedia.org/wiki/Arithmetic%E2%80%93geometric_mean#The_number_%CF%80
88

99
func AGM_PI(digits=100) {

Math/bernoulli_numbers_seidel.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Seidel's algorithm for computing Bernoulli numbers.
44

55
# Algorithm from:
6-
# http://oeis.org/wiki/User:Peter_Luschny/ComputationAndAsymptoticsOfBernoulliNumbers#Seidel
6+
# https://oeis.org/wiki/User:Peter_Luschny/ComputationAndAsymptoticsOfBernoulliNumbers#Seidel
77

88
func bernoulli_seidel(n) {
99

Math/cauchy_numbers_of_first_type_recurrence.sf

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# C_n = a(n) * n!
1616

1717
# See also:
18-
# http://oeis.org/A006232 (numerators)
19-
# http://oeis.org/A006233 (denominators)
18+
# https://oeis.org/A006232 (numerators)
19+
# https://oeis.org/A006233 (denominators)
2020

2121
func a((0)) { 1 }
2222

Math/central_trinomial_triangle.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# See also:
44
# https://oeis.org/A097893
5-
# http://mathworld.wolfram.com/CentralTrinomialCoefficient.html
5+
# https://mathworld.wolfram.com/CentralTrinomialCoefficient.html
66

77
func central_trinomial_triangle(num, callback) {
88
var row = [1]

Math/confluent_hypergeometric_function_of_the_first_kind.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# See also:
66
# https://en.wikipedia.org/wiki/Confluent_hypergeometric_function
7-
# http://mathworld.wolfram.com/ConfluentHypergeometricFunctionoftheFirstKind.html
7+
# https://mathworld.wolfram.com/ConfluentHypergeometricFunctionoftheFirstKind.html
88

99
func F1(a, b, z, limit=1000) {
1010
sum(0..limit, {|k|

Math/elementary_cellular_automaton_generalized.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See also:
1212
# https://en.wikipedia.org/wiki/Cellular_automaton
1313
# https://en.wikipedia.org/wiki/Elementary_cellular_automaton
14-
# http://rosettacode.org/wiki/Elementary_cellular_automaton
14+
# https://rosettacode.org/wiki/Elementary_cellular_automaton
1515

1616
# YouTube lectures:
1717
# https://www.youtube.com/watch?v=S3tYzCPuVsA

Math/faulhaber_double_series.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# where p is a positive integer.
88

99
# See also:
10-
# http://mathworld.wolfram.com/PowerSum.html
10+
# https://mathworld.wolfram.com/PowerSum.html
1111
# https://en.wikipedia.org/wiki/Faulhaber's_formula
1212

1313
func faulhaber_double_series(n, p) {

Math/fubini_numbers.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# A new algorithm for computing the first n Fubini numbers.
44

55
# See also:
6-
# http://oeis.org/A000670
6+
# https://oeis.org/A000670
77

88
func fubini_numbers(n) {
99

Math/gamma_function.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Gamma_function
4+
## https://rosettacode.org/wiki/Gamma_function
55
#
66

77
define = Num.e

Math/harmonic_numbers_of_k-th_order.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Formula in terms of the Harmonic numbers, due to Conway and Guy (1996), for computing the Harmonic numbers of the k-th order.
44

55
# See also:
6-
# http://mathworld.wolfram.com/HarmonicNumber.html
6+
# https://mathworld.wolfram.com/HarmonicNumber.html
77

88
func harmonic_kth_order(n, k) {
99
binomial(n + k - 1, k - 1) * (harmonic(n + k - 1) - harmonic(k - 1))

Math/haversine_formula.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Haversine_formula
4+
## https://rosettacode.org/wiki/Haversine_formula
55
#
66

77
class EarthPoint(lat, lon) {

Math/holf_factorization.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Hart’s One-Line Factoring Algorithm.
44

55
# See also:
6-
# http://wrap.warwick.ac.uk/54707/1/WRAP_Hart_S1446788712000146a.pdf
6+
# https://wrap.warwick.ac.uk/54707/1/WRAP_Hart_S1446788712000146a.pdf
77
# https://programmingpraxis.com/2014/01/28/harts-one-line-factoring-algorithm/
88

99
func HOLF_factor(n, iter=100000) {

Math/is_carmichael_number.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# https://en.wikipedia.org/wiki/Von_Staudt%E2%80%93Clausen_theorem
1212

1313
# C. Pomerance, J. L. Selfridge, and S. S. Wagstaff, Jr., The pseudoprimes to 25*10^9, Math. Comp., 35 (1980), 1003-1026.
14-
# http://www.ams.org/journals/mcom/1980-35-151/S0025-5718-1980-0572872-7/home.html
14+
# https://www.ams.org/journals/mcom/1980-35-151/S0025-5718-1980-0572872-7/home.html
1515

1616
func bernoulli_denominator (n) {
1717

Math/julia_set.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Julia_set
4+
## https://rosettacode.org/wiki/Julia_set
55
#
66

77
var (w, h) = (80, 30)

Math/knapsack_problem_0_1.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Knapsack_problem/0-1
4+
## https://rosettacode.org/wiki/Knapsack_problem/0-1
55
#
66

77
var raw = <<'TABLE'

Math/knapsack_problem_bounded.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Knapsack_problem/Bounded
4+
## https://rosettacode.org/wiki/Knapsack_problem/Bounded
55
#
66

77
var raw = <<'TABLE'

Math/knapsack_problem_unbounded.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Knapsack_problem/Unbounded
4+
## https://rosettacode.org/wiki/Knapsack_problem/Unbounded
55
#
66

77
struct KnapsackItem {

Math/laguerre_polynomials.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# See also:
66
# https://en.wikipedia.org/wiki/Laguerre_polynomials
7-
# http://mathworld.wolfram.com/LaguerrePolynomial.html
7+
# https://mathworld.wolfram.com/LaguerrePolynomial.html
88

99
func laguerre_polynomial(n, x) {
1010
sum(0..n, {|k|

Math/levenshtein_distance_iter.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Levenshtein_distance
4+
## https://rosettacode.org/wiki/Levenshtein_distance
55
#
66

77
func lev(s, t) {

Math/levenshtein_distance_rec.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Levenshtein_distance
4+
## https://rosettacode.org/wiki/Levenshtein_distance
55
#
66

77
func lev(s, t) is cached {

Math/linear_diophantine_equation.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# See also:
1010
# https://en.wikipedia.org/wiki/Diophantine_equation
11-
# http://mathworld.wolfram.com/DiophantineEquation.html
11+
# https://mathworld.wolfram.com/DiophantineEquation.html
1212

1313
func solve(a, b, c) {
1414

Math/linear_diophantine_equation_invmod_search.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# See also:
1010
# https://en.wikipedia.org/wiki/Diophantine_equation
11-
# http://mathworld.wolfram.com/DiophantineEquation.html
11+
# https://mathworld.wolfram.com/DiophantineEquation.html
1212

1313
func modular_inverse_search (a, n, z) {
1414

Math/log10_digit_by_digit.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# https://github.com/trizen/sidef/issues/37
55

66
# Computing Logarithms Digit-by-Digit:
7-
# http://brics.dk/RS/04/17/BRICS-RS-04-17.pdf
7+
# https://brics.dk/RS/04/17/BRICS-RS-04-17.pdf
88

99
func Log10 (x, prec=48) {
1010
var k = x.float

Math/lucas-pocklington_primality_proving.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# See also:
1010
# https://en.wikipedia.org/wiki/Pocklington_primality_test
1111
# https://en.wikipedia.org/wiki/Primality_certificate
12-
# http://mathworld.wolfram.com/PrattCertificate.html
12+
# https://mathworld.wolfram.com/PrattCertificate.html
1313
# https://math.stackexchange.com/questions/663341/n1-primality-proving-is-slow
1414

1515
func lucas_pocklington_primality_proving(n, lim=2**64) is cached {

Math/modular_bell_numbers_recurrence.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# See also:
99
# https://oeis.org/A166226 -- Bell number n modulo n.
1010
# https://oeis.org/A325630 -- Numbers k such that Bell(k) is divisible by k.
11-
# http://mathworld.wolfram.com/BellNumber.html
11+
# https://mathworld.wolfram.com/BellNumber.html
1212

1313
func modular_binomial(n, k, m) is cached {
1414

Math/modular_exponentiation.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/ruby
22

33
#
4-
## http://rosettacode.org/wiki/Modular_exponentiation
4+
## https://rosettacode.org/wiki/Modular_exponentiation
55
#
66

77
func expmod(a, b, n) {

Math/number_of_representations_as_sum_of_3_triangles.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Compute the number of ordered ways of writing `n` as the sum of 3 triangular numbers.
88

99
# See also:
10-
# http://oeis.org/A008443
10+
# https://oeis.org/A008443
1111
# https://projecteuler.net/problem=621
1212

1313
func count_sums_of_two_squares (n) {

Math/pell-holf_factorization.sf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# See also:
1010
# https://en.wikipedia.org/wiki/Pell%27s_equation
11-
# http://wrap.warwick.ac.uk/54707/1/WRAP_Hart_S1446788712000146a.pdf
11+
# https://wrap.warwick.ac.uk/54707/1/WRAP_Hart_S1446788712000146a.pdf
1212

1313
func pell_holf_factorization(n) {
1414

0 commit comments

Comments
 (0)