All pastesPublic feed

Public feed

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

    2073848·text·1.2 KB·2011-06-02 20:40 UTC
    int main() {
     float[4] v = [1.0f, 2.0f, 3.0f, 4.0f];
     return cast(int)v[0];
    }
    
    is compiled to
    
    define x86_stdcallcc i32 @_Dmain(%"char[][]" %unnamed) {
    entry:
     %v = alloca <4 x float>, a
  • Untitled

    2073847·text·3.4 KB·2011-06-02 20:39 UTC
    06-02 13:35:26.867: DEBUG/dalvikvm(211): Trying to load lib /data/data/com.example/lib/libexample-class-jni.so 0x44c06878
    06-02 13:35:26.907: DEBUG/dalvikvm(211): Added shared lib /data/data/com.exam
  • Mine

    2073842·text·924 B·2011-06-02 20:24 UTC
    #!/usr/bin/python
    
    import os, re
    arch = os.uname()[4]
    if re.search('64', arch):
     arch_libdir = 'lib64'
    else:
     arch_libdir = 'lib'
    
    name = "XXX"
    uuid = "XXX"
    
    vcpus = 1
    memor
  • Mine

    2073837·text·1.2 KB·2011-06-02 20:06 UTC
    #include "Aufgabe34.h"
    #include <iostream>
    
    int main() {
    
     int zaehler1 = 10;
     int zaehler2 = 4;
     int nenner1 = 3;
     int nenner2 = 9;
     Bruch bruch1;
     Bruch bruch2;
     bruch1.setZaehler(zaehler
  • Untitled

    2073835·text·1.2 KB·2011-06-02 20:06 UTC
    #include "Aufgabe34.h"
    
    Bruch::Bruch(int z, int n) {
     zaehler = z;
     nenner = n;
    }
    
    Bruch::Bruch() {
     zaehler = 1;
     nenner = 1;
    }
    
    void Bruch::setZaehler(int z) {
     zaehler = z;
    }
    
    voi
  • Someone

    2073834·text·36 B·2011-06-02 20:01 UTC
    3ff7a663-1ad8-4588-9d5b-696f7d9d43e2
  • bred

    2073832·text·5.3 KB·2011-06-02 19:52 UTC
    [23:43:48] <lentul> если фильм станет популярен как звёдные войны то может и рилигия появится
    [23:44:15] <lentul> ну как в GB есть свой храм джедаев
    [23:47:27] <@ibh> да. для начала нам нужны светов
  • Nick

    2073831·text·3.1 KB·2011-06-02 19:51 UTC
    INSERT INTO person (person_id, first_name, last_name, address, phone, email, photo) 
    VALUES
    (NULL, 'Bob', 'Bobbison', '32 The Main Street', 4564587, 'bob@bobby.com', NULL),
    (NULL, 'Nick', 'Little
  • Unnamed

    2073829·text·1.2 KB·2011-06-02 19:41 UTC
    ./daily/100.clean-disks
    ./daily/110.clean-tmps
    ./daily/120.clean-preserve
    ./daily/200.backup-passwd
    ./daily/330.news
    ./daily/400.status-disks
    ./daily/404.status-zfs
    ./daily/405.status-ata-raid
  • asdf

    2073827·html·4 B·2011-06-02 19:39 UTC
    111
  • Something

    2073823·text·1.2 KB·2011-06-02 19:33 UTC
    Jun 2 14:31:36 alias mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql
    Jun 2 14:31:36 alias mysqld: Unknown suffix '-' used for variable 'max_connections' (value '--table_cache
  • Stuff

    2073821·text·1.0 KB·2011-06-02 19:25 UTC
    <?php
    include_once('includes/bootstrap.inc');
    error_reporting(E_ALL & ~E_NOTICE);
    // let's bootstrap: we will be able to use drupal apis
    drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
    
    $db = db_query(
  • Miscellany

    2073815·text·181 B·2011-06-02 18:58 UTC
    ]$ spec spec/config_parser_spec.rb 
    
    Aeolus::Image::ConfigParser
    Command is: list
    - should parse the specified command
    
    Finished in 0.030797 seconds
    
    1 example, 0 failures
  • Miscellany

    2073814·java·347 B·2011-06-02 18:56 UTC
    public static double maxAbs (double [] signal){
     double gross = Double.NEGATIVE_INFINITY;
    
     if (signal != null) {
     for (int i = 0; i < signal.length - 1; i++) {
     double value = signal[i];
  • Girlfriend says she can no longe

    2073809·text·3.0 KB·2011-06-02 18:50 UTC
    How can we repair her trust?
    
    Long version:
    
    I've known my girlfriend for over two years now, and we've been together for a year and a few months. We love each other very much, and for the most pa
  • Matrix

    2073806·cpp·1.5 KB·2011-06-02 18:40 UTC
    #ifndef MATRIX_H
    #define MATRIX_H
    
    template<int size,typename T>
    class Matrix
    {
    
    public:
     typedef T value_type;
    
     explicit Matrix(const T &val = T());
     Matrix(const Matrix &);
  • Something

    2073805·text·1.5 KB·2011-06-02 18:39 UTC
    #ifndef MATRIX_H
    #define MATRIX_H
    
    template<int size,typename T>
    class Matrix
    {
    
    public:
     typedef T value_type;
    
     explicit Matrix(const T &val = T());
     Matrix(const Matrix &);
  • json sample

    2073801·javascript·63 B·2011-06-02 18:37 UTC
    // ejemplo de notacion json
    var punto2d = {
     x: 1
     , y: 1
    }
  • Stuff

    2073800·text·611 B·2011-06-02 18:36 UTC
    CREATE TRIGGER ntdel AFTER UPDATE ON nodetext
     FOR EACH ROW
     BEGIN
     IF NEW.is_deleted = 1 THEN
     BEGIN
     IF (SELECT COUNT(*) FROM nodetext WHERE is_deleted=0 AND textbox_id=NEW.textbox_id) =
  • Read FQDN from file then tracero

    2073795·bash·920 B·2011-06-02 18:13 UTC
    #!/bin/bash
    
    processLine(){
     line="$@" # get all args
     traceroute -I -z 5 -w 2 $line
    }
     
    ### Main script stars here ###
    # Store file name
    FILE=""
     
    # Make sure we get file name as command

older pastes →