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
9 ['ballonets', 'balloters', 'champerty', 'collarets', 'composers', 'machinery', 'minimised', 'minimiser', 'minimises', 'patentees', 'patenters', 'photomaps', 'quarterns', 'reversers', 'reversist', 'sheathers', 'sheathery'] |
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
inp = int(input("k = ")) | |
inp = inp//7 | |
out = [] | |
chars = ["░", "█"] | |
for i in range(17): | |
out.append("") | |
for i in range(106): | |
for j in range(17): | |
out[j]+=chars[inp&1] | |
inp = inp>>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
#!/usr/bin/env python3 | |
""" | |
Command line use: | |
$ python3 base_pi.py -3 -1 0 2 3.141592653589793238462643383279502 -9.8696044010893586188344909998761511353136 4 0.5 0.333333333333333333333 | |
-3 | |
-1 | |
0 | |
2 |
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
ToPitch[x_] := 440 2^((x - 9)/12) | |
Song[t_] := Piecewise[{{ToPitch[2], 0 <= t <= 2.5},{ToPitch[5], 3 <= t <= 5.5},{ToPitch[2], 6 <= t <= 7.5},{ToPitch[2], 8 <= t <= 8.5},{ToPitch[5], 9 <= t <= 10.5},{ToPitch[7], 11 <= t <= 11.5},{ToPitch[9], 12 <= t <= 13.5},{ToPitch[12], 14 <= t <= 14.5},{ToPitch[9], 15 <= t <= 16.5},{ToPitch[5], 17 <= t <= 17.5},{ToPitch[2], 18 <= t <= 19.5},{ToPitch[0], 20 <= t <= 20.5},{ToPitch[2], 21 <= t <= 22.5},{ToPitch[2], 24 <= t <= 31.5}}, 0] | |
Play[SquareWave[Song[6 t] t], {t, -0.1, 5.5}] | |
Play[2 SawtoothWave[Song[6 t] t] - 1, {t, -0.1, 5.5}] | |
Play[TriangleWave[Song[6 t] t], {t, -0.1, 5.5}] | |
Play[Sin[Song[6 t] t 2 Pi], {t, -0.1, 5.5}] |
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
total=100 | |
def A(m,l): | |
return 5*m + 10*l | |
def B(m,l): | |
return 10*m + 5*l | |
def C(m,l): | |
return 8*m + 6*l |
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 <fstream> | |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
class solution { | |
public: | |
int structure[8][8]; | |
bool operator== (solution other) { |
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
[ | |
(P->(Q&~Q)) Premise | |
[ | |
P Premise | |
(P->(Q&~Q)) Carry-Over | |
(Q&~Q) Detachment | |
Q Separation | |
~Q Separation | |
[ | |
P Premise |
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
type Subset = [Int] | |
-- choose n xs is a list of all ways of choosing n things from xs | |
choose :: Int -> [a] -> [[a]] | |
choose 0 _ = [[]] -- one way to choose nothing | |
choose _ [] = [] -- no way to choose non-zero number of things from nothing | |
choose n (x:xs) | |
| n < 0 = undefined -- no way to choose negative number of things | |
| otherwise = with ++ without where | |
with = (x:) <$> choose (n-1) xs -- choices including x |
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
#! /usr/bin/env python3 | |
identity = lambda x: x | |
b_true = lambda x: lambda y: x | |
b_false = lambda x: lambda y: y | |
b_not = lambda b: b(b_false)(b_true) | |
b_and = lambda x: lambda y: x(y)(x) | |
b_or = lambda x: lambda y: x(x)(y) | |
b_xor = lambda x: lambda y: x(b_not(y))(y) |
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
loadMore = function($) { if ($(".yt-uix-load-more")) { $(".yt-uix-load-more").click(); setTimeout(loadMore, 2000, $); } }; loadMore($); |
OlderNewer