View prime.c
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 <stdio.h> | |
#include <math.h> | |
#define TARGET 1000000 | |
int main() { | |
long long found = 0; | |
long long num = 2; | |
while (found < TARGET) { | |
long long till = sqrtl(num); |
View sinebow.go
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
package main | |
import ( | |
"errors" | |
"fmt" | |
"image" | |
"image/color" | |
"image/png" | |
"math" | |
"os" |
View main.go
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
// go build | |
// ./main "random string" | |
// 2f4563a971944e00 | |
package main | |
import ( | |
"fmt" | |
"os" | |
) |
View main.py
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 turtle | |
import random | |
def randColor(): | |
t.color(random.random(), random.random(), random.random()) | |
def draw_sierpinski(length, depth): | |
if depth==0: | |
for i in range(0,3): |
View duckcoin.exe.base64
This file has been truncated, but you can view the full file.
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
TVqQAAMABAAAAAAA//8AAIsAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAABQRQAAZIYNAAAAAAAAMGoAuxsAAPAAIgILAgMAAMolAADAAwAAAAAAgDwGAAAQAAAAAEAAAAAAAAAQAAAAAgAABgABAAEAAAAGAAEAAAAAAAAAdgAABgAAAAAAAAMAYIEAACAAAAAAAAAQAAAAAAAAAAAQAAAAAAAAEAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAHAAfAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQcAD6kQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4DNJAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAudGV4dAAAAOrIJQAAEAAAAMolAAAGAAAAAAAAAAAAAAAAAAAgAABgLnJkYXRhAAAoRSMAAOAlAABGIwAA0CUAAAAAAAAAAAAAAAAAQAAAQC5kYXRhAAAAYMoJAAAwSQAAwAMAABZJAAAAAAAAAAAAAAAAAEAAAMAvNAAAAAAAACcBAAAAAFMAAAIAAADWTAAAAAAAAAAAAAAAAABAABBCLzE5AAAAAADMHwYAABBTAAAgBgAA2EwAAAAAAAAAAAAAAAAAQAAQQi8zMgAAAAAA+jUBAAAwWQAANgEAAPhSAAAAAAAAAAAAAAAAAEAAEEIvNDYAAAAAADkAAAAAcFoAAAIAAAAuVAAAAAAAAAAAAAAAAABAABBCLzY1AAAAAAC3uwsAAIBaAAC8CwAAMFQAAAAAAAAAAAAAAAAAQAAQQi83OAAAAAAA7KYHAABAZgAAqAcAAOxfAAAAAAAAAAAAAAAAAEAAEEIvOTAAAAAAAIYDAgAA8G0A |
View AssertVerifier.java
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
package assertion; | |
import java.util.ArrayList; | |
public class AssertVerifier { | |
static int numConditions = 3; | |
static int numPoints = 5; | |
// numbers to test | |
static int start = -100000; |
View Projectile.java
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
public class Projectile { | |
public double angleOfLaunch; // in radians | |
public double initialX; // in meters | |
public double initialVelocity; // in m/s | |
public boolean useTimeToMaxHeight = false; | |
private double gravity; // m/s^2 |
View dogelang.go
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
package main | |
import ( | |
"bufio" | |
"io" | |
"io/ioutil" | |
"math/rand" | |
"os" | |
"strings" | |
"time" |
View kolakoski.go
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
package main | |
import ( | |
"fmt" | |
"strconv" | |
"strings" | |
) | |
var ( | |
// n is the number of terms to calculate |
View RGB_Model.c
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
//Pins | |
int redled = 11; | |
int greenled = 10; | |
int blueled = 9; | |
int an2 = 2; | |
//Colours | |
int red = 255; | |
int green = 255; | |
int blue = 255; |