This file contains 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
RewriteEngine on | |
RewriteCond $1 !^(index\.php) | |
RewriteRule ^(.*)$ index.php/$1 [L] |
This file contains 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
// Invert the color spectrum | |
Surface::Iter iter(newSurface.getIter()); | |
while(iter.line()) { | |
while(iter.pixel()) { | |
iter.r() = 255 - iter.r(); | |
iter.g() = 255 - iter.g(); | |
iter.b() = 255 - iter.b(); | |
} | |
} |
This file contains 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<iostream> | |
#include<stdlib.h> | |
#include<sys/time.h> | |
using namespace std; | |
class quick | |
{ | |
public: | |
int partition(int a[],int high ,int low); |
This file contains 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
#http://www.team2053.org/docs/bashcgi/postdata.html | |
#This code for getting code from post data is from http://oinkzwurgl.org/bash_cgi and | |
#was written by Phillippe Kehi <phkehi@gmx.net> and flipflip industries | |
# (internal) routine to store POST data | |
function cgi_get_POST_vars() | |
{ | |
# check content type | |
# FIXME: not sure if we could handle uploads with this.. | |
[ "${CONTENT_TYPE}" != "application/x-www-form-urlencoded" ] && \ |
This file contains 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
#!/usr/local/bin/perl | |
# | |
# Subroutine to read CGI input. | |
# Script stuck together from work by S.E.Brenner@bioc.cam.ac.uk | |
# and ronnie@scs.leeds.ac.uk by nik@scs.leeds.ac.uk | |
# | |
# Subroutine &read_input takes and decodes data either from | |
# QUERY_STRING (for GET method, default) or STDIN (for POST method) | |
# Returned is an associative array of names and values. | |
# |
This file contains 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
# Perl Routines to Manipulate CGI input | |
# cgi-lib@pobox.com | |
# $Id: cgi-lib.pl,v 2.18 1999/02/23 08:16:43 brenner Exp $ | |
# | |
# Copyright (c) 1993-1999 Steven E. Brenner | |
# Unpublished work. | |
# Permission granted to use and modify this library so long as the | |
# copyright above is maintained, modifications are documented, and | |
# credit is given for any use of the library. | |
# |
This file contains 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
#!/usr/local/bin/perl | |
# Perl Routines to Manipulate CGI input | |
# | |
# Copyright (c) 1995 Steven E. Brenner | |
# Permission granted to use and modify this library so long as the | |
# copyright above is maintained, modifications are documented, and | |
# credit is given for any use of the library. | |
# | |
# Thanks are due to many people for reporting bugs and suggestions |
This file contains 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
awk '{if($2!=""){if(min==""){min=max=$2}; if($2>max) {max=$2}; if($2< min) {min=$2}; total+=$2; count+=1; if($2>10){print $0}}} END {print total, count, min, max}' test_vec.log |
This file contains 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
my $qry = "SELECT * FROM table WHERE UPPER(name1) LIKE DECODE(NVL('" . $start . "',0),0,'%" . $contain . "%','" . $start . "%') AND UPPER(name1) LIKE DECODE(NVL('" . $contain . "',0),0,'" . $start . "%','%" . $contain . "%') ORDER BY ....."; |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# To use this script and prepare your build environment, run the following | |
# command in the same directory as the Vagrantfile. | |
# B2G_PATH={path to your B2G directory} vagrant up | |
VAGRANTFILE_API_VERSION = "2" | |
# This script will be run on the first start and it will set up the build |
OlderNewer