All pastesPublic feed

Public feed

Pastes people chose to make public. Author names hidden.
  • Mine

    2052572·text·439 B·2011-05-01 17:45 UTC
    em@leibniz:~/pyopencl-0.92$ PYTHONPATH=/usr/local/lib/python2.6/ python
    Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) 
    [GCC 4.4.5] on linux2
    Type "help", "copyright", "credits" or "license" for
  • Something

    2052571·perl·1.2 KB·2011-05-01 17:43 UTC
    #!/usr/bin/perl
    use strict;
    use warnings;
    sub average {
     my ($summ, $count) = "0";
     foreach (@{ $_["0"] }) {
     $count++;
     $summ = $summ + $_;
  • Anonymous

    2052570·text·445 B·2011-05-01 17:41 UTC
    em@leibniz:~/pyopencl-0.92$ sudo ldconfig
    em@leibniz:~/pyopencl-0.92$ python
    Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) 
    [GCC 4.4.5] on linux2
    Type "help", "copyright", "credits" or "license
  • Something

    2052569·text·4.4 KB·2011-05-01 17:37 UTC
    em@leibniz:~/pyopencl-0.92$ sudo make install
    ctags -R src || true
    /bin/sh: ctags: not found
    /usr/bin/python setup.py install
    running install
    install_dir /usr/local/lib/python2.6/dist-packages/
  • Something

    2052568·perl·1.2 KB·2011-05-01 17:35 UTC
    #!/usr/bin/perl
    use strict;
    use warnings;
    sub average {
     my ($summ, $count) = "0";
     foreach (@{ $_["0"] }) {
     $count++;
     $summ = $summ + $_;
  • Something

    2052567·perl·1.2 KB·2011-05-01 17:35 UTC
    #!/usr/bin/perl
    use strict;
    use warnings;
    sub average {
     my ($summ, $count) = "0";
     foreach (@{ $_["0"] }) {
     $count++;
     $summ = $summ + $_;
  • Untitled

    2052566·text·1.0 KB·2011-05-01 17:35 UTC
    n
    gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -Isrc/cpp -Ibpl-subset/bpl_subset -I/home/em/AMD-APP-SDK-v2.4-lnx64/include/ -I/usr/li
  • Something

    2052565·perl·1.2 KB·2011-05-01 17:34 UTC
    #!/usr/bin/perl
    use strict;
    use warnings;
    sub average {
     my ($summ, $count) = "0";
     foreach (@{ $_["0"] }) {
     $count++;
     $summ = $summ + $_;
  • Untitled

    2052564·text·785 B·2011-05-01 17:31 UTC
    em@leibniz:~$ cd pyopencl-0.92/
    em@leibniz:~/pyopencl-0.92$ ls
    aksetup_helper.py doc PKG-INFO README_SETUP.txt test
    bpl-subset examples pyopencl setup
  • Something

    2052562·text·599 B·2011-05-01 17:27 UTC
    em@leibniz:~/pyopencl-0.92$ make
    ctags -R src || true
    /bin/sh: ctags: not found
    /usr/bin/python setup.py build
    running build
    running build_py
    running build_ext
    em@leibniz:~/pyopencl-0.92$ cat s
  • Untitled

    2052561·text·126 B·2011-05-01 17:23 UTC
    ./configure.py --cl-inc-dir=/home/em/AMD-APP-SDK-v2.4-lnx64/include/ --cl-lib-dir=/home/em/AMD-APP-SDK-v2.4-lnx64/lib/x86_64
  • Unnamed

    2052560·text·1.4 KB·2011-05-01 17:13 UTC
    NOTE: Running task 1632 of 1706 (ID: 102, /foobar/beagle/beagle-oe/setup-scripts/sources/openembedded/recipes/u-boot/u-boot_git.bb, do_fetch)
    NOTE: package u-boot-2010.06+gitr0+bd2313078114c4b44c4a5c
  • Something

    2052559·text·120 B·2011-05-01 17:10 UTC
    int count (int*a, int n, int x)
    {
    int i,result=0;
    for (i= 0; i< n; i++)
    if (a[i] == x)
    result++;
    return result;
    }
  • Someone

    2052557·text·402 B·2011-05-01 16:58 UTC
    em@leibniz:~/pyopencl-0.92$ python
    Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) 
    [GCC 4.4.5] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import pyopenc
  • Miscellany

    2052555·text·5.9 KB·2011-05-01 16:56 UTC
    Reset chassis ... done.
    Testing RAM...
    134,217,728 RAM OK.
    
    Initializing...
    Attaching to file system ... done.
    
    Loading nos.img ... done.
    Starting at 0x10000...
    
    Current time is Sun Jan
  • Unnamed

    2052551·text·204 B·2011-05-01 16:43 UTC
    /* escreve um array de 'n' inteiros no ecrã */
     void escreve_array( int *a, int n )
     {
     int i;
     
     for( i=0; i<n; i++ )
     printf("%d ", a[i] );
     printf("\n");
  • Something

    2052549·text·265 B·2011-05-01 16:41 UTC
    /* calcula o máximo elemento de um array de 'n' inteiros*/
     int max_array( int *a, int n )
     {
     int i, max;
     
     max = a[0];
     for( i=1; i<n; i++ )
     if( a[i] > ma
  • Untitled

    2052548·text·772 B·2011-05-01 16:40 UTC
    void BubbleSort(int a[], int n)
    {
     int i, j;// needed for the loops
     int tmp;// needed for swapping values between two variables
     
     if (n <= 1) return;// check if the array has no
  • Stuff

    2052547·text·162 B·2011-05-01 16:26 UTC
    x y z res 
    0 0 0 1
    0 0 1 1
    0 1 0 1
    0 1 1 1
    1 0 0 1
    1 0 1 1
    1 1 0 0 --> problematic line - if I use signals instead of vars, I get this result as 1
    1 1 1 1
  • Someone

    2052545·python·471 B·2011-05-01 16:17 UTC
    class Poi(GeoPoint):
     MAX_GEOCELL_RESOLUTION = 8
     poi_type = db.StringProperty()
     poi_name = db.StringProperty()
    
    class Spot(GeoPoint):
     like_count = db.IntegerProperty()
     disl

older pastes →