Skip to content

Instantly share code, notes, and snippets.

@keyframes snowfall {
0% {
top: -40px;
}
25% {
top: 250px;
left: 100px;
}
50% {
top: 500px;
float[] keycount = new float[26];
float[] xCoords = new float[26];
float[] yCoords = new float[26];
float spaceCount = 0;
float spaceXCoords; float spaceYCoords;
int count = 0;
PImage img;
void setup() {
String url = "http://www.moshi.com/image/clearguard/layout-us.jpg";
@cursorial
cursorial / Efficient Swap
Last active December 20, 2015 09:30
Swap two integers without using a temporary variable
a = input('Enter Number 1: ')
b = input('Enter Number 2: ')
print 'Number 1: ', a
print 'Number 2: ', b
a -= b
b += a
a = b - a