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
<html> | |
<head> | |
<style> | |
* { | |
padding:0; | |
margin:0; | |
border:0; | |
outline:0; | |
overflow:hidden | |
} |
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
/* | |
u(t) is called 60 times per second. | |
t: elapsed time in seconds. | |
c: A 1920x1080 canvas. | |
x: A 2D context for that canvas. | |
S: Math.sin | |
C: Math.cos | |
T: Math.tan | |
R: Generates rgba-strings, ex.: R(255, 255, 255, 0.5) | |
*/ |
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
#!/bin/python2 | |
import sys | |
dctNANDCount = {'Nand' : 1, 'DFF': 4, 'Screen': 0} | |
dctSubChipCount = {} | |
nChipTotal = 0 | |
# Get the NANDs in a chip |
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
// Always include C headers before C++ headers | |
#include <cctype> | |
#include <iostream> | |
#include <string> | |
// Use this with caution | |
using namespace std; | |
string compress(const string& sIn) |
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
// Always include C headers before C++ headers | |
#include <cctype> | |
#include <iostream> | |
#include <string> | |
// Use this with caution | |
using namespace std; | |
string compress(const string& sIn) |
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 <bits/stdc++.h> | |
#define mp make_pair | |
#define vstr vector<string> | |
#define pb push_back | |
#define all(x) begin(x), end(x) | |
#define sz(x) int(x.size()) | |
#define P(X) cout << X << "\t" |
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 <bits/stdc++.h> | |
#define mp make_pair | |
#define vstr vector<string> | |
#define pb push_back | |
#define all(x) begin(x), end(x) | |
#define sz(x) int(x.size()) | |
#define P(X) cout << X << "\t" | |
#define NL cout << endl | |
#define FOR(I,N) for(int I = 0; I < N; ++I) |
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 <bits/stdc++.h> | |
#define mp make_pair | |
#define vstr vector<string> | |
#define pb push_back | |
#define all(x) begin(x), end(x) | |
#define sz(x) int(x.size()) | |
#define P(X) cout << X << "\t" |
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 <bits/stdc++.h> | |
#define mp make_pair | |
#define vstr vector<string> | |
#define pb push_back | |
#define all(x) begin(x), end(x) | |
#define sz(x) int(x.size()) | |
#define P(X) cout << X << "\t" | |
#define NL cout << endl |
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 <bits/stdc++.h> | |
#define vint vector<int> | |
#define vstr vector<string> | |
#define eb emplace_back | |
#define st string | |
#define cstref const string& | |
#define sz(x) int(x.size()) |