content.
- item1
- item2
- item3
orderd list.
import sys | |
import os | |
import math | |
import Image | |
def create_shadow_image(image_size, shadow_size): | |
mergin = (shadow_size, shadow_size) | |
new_size = map(sum, zip(image_size, mergin, mergin)) | |
im = Image.new('RGBA', new_size, 0xFFFFFFFF) | |
buf = im.load() |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <GLUT/glut.h> | |
#define SCREEN_WIDTH 640 | |
#define SCREEN_HEIGHT 360 | |
static int curr_width = 0; | |
static int curr_height = 0; |
#include <stdio.h> | |
int | |
main() { | |
printf("Hello world!\n"); | |
return 0; | |
} |
diff --git a/src/concrete/libraries/3rdparty/adodb/adodb-active-record.inc.php b/src/concrete/libraries/3rdparty/adodb/adodb-active-record.inc.php | |
index 474f2a7..4a214ed 100644 | |
--- a/src/concrete/libraries/3rdparty/adodb/adodb-active-record.inc.php | |
+++ b/src/concrete/libraries/3rdparty/adodb/adodb-active-record.inc.php | |
@@ -343,20 +343,11 @@ class ADODB_Active_Record { | |
$table = $this->_table; | |
$tables = $activedb->tables; | |
$tableat = $this->_tableat; | |
- if (!$forceUpdate && !empty($tables[$tableat])) { | |
- |
<?php | |
error_reporting(E_ALL); | |
define('WIDTH', 256); | |
define('HEIGHT', 256); | |
define('NSUBSAMPLES', 2); | |
define('NAO_SAMPLES', 8); | |
class vec |
#include <stdio.h> | |
int lcg() { | |
static int seed = 8; | |
seed = (1664525 * seed + 1013904223) & 2147483647; | |
return seed; | |
} | |
int | |
main() { |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <GLUT/glut.h> | |
int | |
main(int argc, char** argv) | |
{ | |
GLint red_bits, green_bits, blue_bits, alpha_bits; | |
GLint depth_bits, stencil_bits; | |
GLint accum_red_bits, accum_green_bits, accum_blue_bits, accum_alpha_bits; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <GLUT/glut.h> | |
#define KEY_ESC 27 | |
#define WINDOW_POS_X 100 | |
#define WINDOW_POS_Y 100 | |
#define DEF_SCREEN_WIDTH 640 | |
#define DEF_SCREEN_HEIGHT 360 |
import sys | |
import socket | |
if __name__ == '__main__': | |
host = sys.argv[1] | |
port = sys.argv[2] | |
timeout = sys.argv[3] if 4 <= len(sys.argv) else 30 | |
s = socket.socket(socket.AF_INET) | |
s.settimeout(int(timeout)) | |
try: |