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 <stdlib.h> | |
#include <string.h> | |
#define BUF_SIZE 512 | |
size_t next_buffer(const size_t buffer, const size_t count) | |
{ | |
return (buffer + 1) % count; | |
} |
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 <stdlib.h> | |
#include <stdio.h> | |
#define BYTE_SIZE 8 | |
size_t compress_code(const int *code, const size_t code_length, unsigned char **compressed) | |
{ | |
if (code == NULL || code_length == 0 || compressed == NULL) { | |
return 0; | |
} |
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
""" | |
PyLogo is a lightweight library that uses PyGame to provide a LOGO-like | |
drawing interface for Python, to provide a simple and fun way to learn | |
programming in Python. | |
""" | |
import pygame | |
from math import cos, radians, sin | |
# Functions that 'from pylogo import *' exports |
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
.cloth-bg { | |
background: #777; | |
background: -webkit-radial-gradient(rgba(0, 0, 0, 0.1) 50%, rgba(255, 255, 255, 0.1) 50%), | |
-webkit-linear-gradient(45deg, rgba(50, 50, 50, 0.95), rgba(200, 200, 200, 0.95)), | |
url('http://f.cl.ly/items/3h0j172n2i3q1z0t2G1P/noise.jpg'); | |
background-size: 3px 3px, | |
auto auto, | |
auto auto; | |
} |