This file contains hidden or 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; |
This file contains hidden or 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 |
This file contains hidden or 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" |
This file contains hidden or 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 |
This file contains hidden or 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; |
This file has been truncated, but you can view the full file.
This file contains hidden or 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 |
This file contains hidden or 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): |
This file contains hidden or 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" | |
) |
This file contains hidden or 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" |
This file contains hidden or 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); |
OlderNewer