THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # How to sign your custom RPM package with GPG key | |
| # Step: 1 | |
| # Generate gpg key pair (public key and private key) | |
| # | |
| # You will be prompted with a series of questions about encryption. | |
| # Simply select the default values presented. You will also be asked | |
| # to create a Real Name, Email Address and Comment (comment optional). | |
| # | |
| # If you get the following response: |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| #include <stdio.h> | |
| #define SQ(x) (x)*(x) | |
| #define M0(x,y) SQ(x)+SQ(y)<4?0:0xe0 | |
| #define M1(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M0(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0)):0xc0 | |
| #define M2(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M1(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0xa0 | |
| #define M3(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M2(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0x80 | |
| #define M4(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M3(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0x60 | |
| #define M5(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M4(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0x40 |
| def xor_bytes(a, b): | |
| return bytearray([ai^bi for ai, bi in zip(a, b)]) | |
| def ff_divmod(r, b, q=0): | |
| while True: | |
| diff = r.bit_length() - b.bit_length() | |
| if diff < 0: break | |
| q ^= 1 << diff | |
| r ^= b << diff | |
| return q, r |
| #define F\ | |
| for(i=l;i\ | |
| <l*4; i++) | |
| main(){int | |
| i,j,w=512, | |
| n,l=w*w,o[ | |
| ]={~w,-w,- | |
| w+1,-1,1,w | |
| -1,w,w+1}, | |
| b[l*5];F b |
| #!/usr/bin/awk -f | |
| function hoop(h, w) { | |
| printf("l 0 %d ", -h); | |
| printf("c 0 -%u, %u -%u, %u 0 ", w, w, w, w); | |
| printf("l 0 %d", +h); | |
| } | |
| function hand(x, h, o, l) { | |
| printf("<g transform='translate(%d.5 %d)'>\n", x, h); |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int is_space[256]; | |
| int next_states[3 * 2]; | |
| int increments[3]; | |
| void initialize_tables(void) { | |
| is_space[' '] = 1; | |
| is_space['\n'] = 1; |
| import zlib | |
| WIDTH = 570 | |
| HEIGHT = 453 | |
| IMG_RGB = open("source.rgb", "rb") | |
| def pack_chunk(chunktype, chunkdata): | |
| chunk = len(chunkdata).to_bytes(4, "big") | |
| chunk += chunktype | |
| chunk += chunkdata |