Skip to content

Instantly share code, notes, and snippets.

View kashif's full-sized avatar

Kashif Rasul kashif

  • Berlin, Germany
  • 05:31 (UTC +02:00)
  • X @krasul
View GitHub Profile
#include "scalarProd_kernel.cu"
void scalarProd(void)
{
float *h_A, *h_B, *h_C_GPU;
float *d_A, *d_B, *d_C;
char **heads_A, **heads_B;
int *dims_A, *dims_B;
int rank_A, rank_B;
:Begin:
:Function: scalarProd
:Pattern: ScalarProd[ a_List, b_List ]
:Arguments: { a, b }
:ArgumentTypes: { Manual }
:ReturnType: Manual
:End:
#!/usr/bin/env ruby
require 'rubygems'
require 'sqlite3'
db = SQLite3::Database.new( "test-2.3.sqlite" )
db.enable_load_extension( 1 )
db.load_extension( "libspatialite.so" )
db.enable_load_extension( 0 )
IUSE="debug doc load-extension soundex tcl +threadsafe"
src_configure() {
# Enable column metadata, bug #266651
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
# not available via configure and requested in bug #143794
use soundex && append-cppflags -DSQLITE_SOUNDEX
# Support R-trees, bug #257646
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit autotools eutils versionator
KEYWORDS="~amd64 ~x86"
DESCRIPTION="SpatiaLite extension enables SQLite to support spatial data in a way conformant to OpenGis specifications."
HOMEPAGE="http://www.gaia-gis.it/spatialite"
import java.util.Date;
import java.text.SimpleDateFormat;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.List;
import java.util.regex.*;
import java.util.*;
import thinktank.twitter.*;
import org.json.*;