All pastesPublic feed

Public feed

Pastes people chose to make public. Author names hidden.
  • 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
  • Miscellany

    2073793·text·3.4 KB·2011-06-02 18:03 UTC
    Reference ID No. 12-3456789
    
    You are being contacted on behalf of NBC Universal and its affiliates ("NBC Universal") because your Internet account was identified as having been used recently to ille
  • Something

    2073791·text·67.4 KB·2011-06-02 17:58 UTC
    
        
  • Anonymous

    2073789·text·11.4 KB·2011-06-02 17:51 UTC
    Thread 19 (Thread 0x7fb6d5b0f700 (LWP 24846)):
    #0 0x00007fb6dedbef93 in poll () from /lib/libc.so.6
    #1 0x00007fb6da4284a9 in ?? () from /lib/libglib-2.0.so.0
    #2 0x00007fb6da4288fc in g_main_cont
  • Something

    2073786·text·1.0 KB·2011-06-02 17:49 UTC
    truthiness(root):~# traceroute nsac.ca
    traceroute to nsac.ca (24.222.54.200), 30 hops max, 38 byte packets
     1 worm.research.cs.dal.ca (129.173.67.13) 0.156 ms 0.161 ms 0.133 ms
     2 GW81AD0D5C.B
  • jon

    2073782·text·16.3 KB·2011-06-02 17:47 UTC
    #include "bitmap.h"
    #include "trans-bitmap.h"
    #include <math.h>
    #include <iostream>
    
    /* FIXME: get rid of this dependancy */
    #include "paintown-engine/level/utils.h"
    
    #include "messages.h"
    #i
  • Mine

    2073781·text·352 B·2011-06-02 17:45 UTC
    #!/usr/bin/env ruby
    
    require 'rubygems'
    require 'json'
    
    lastgen = nil
    JSON.parse(STDIN.read).each do |s|
     if s["category"] == "generate" or s["category"] == "immature"
     s.each do |k|
  • Untitled

    2073780·text·3.2 KB·2011-06-02 17:45 UTC
    setText[サウンドなし]
    W/InputManagerService( 202): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@3394d218
    V/onTouchEvent( 1285): ==>MotionEvent{3
  • Stuff

    2073779·text·617 B·2011-06-02 17:44 UTC
    <rule enabled="true" grouping="all" source="incoming">
     <title>Spam Account</title>
     <partset>
     <part name="source">
     <value name="srcmatch-type" type="option" value=
  • Unnamed

    2073776·bash·2.1 KB·2011-06-02 17:42 UTC
    ## Openbox autostart.sh
    ## ====================
    ## When you login to your CrunchBang Openbox session, this autostart script 
    ## will be executed to set-up your environment and launch any applicatio
  • Mine

    2073767·text·15.0 KB·2011-06-02 17:25 UTC
    Cr 0.89158134101630 Cr 0.99999999999817 Cr 0.99999999999918 Cr 0.80035883939288 Cr 0.62137291667183 Cr 0.50802516635951
    Cr 1.07973931861173 Cr 0.99999991844070 Cr 0.99999999998180 Cr 0.988087598631
  • Anonymous

    2073765·python·1.1 KB·2011-06-02 17:18 UTC
    alphabet = {
    » 'a' : Letter('a', False, 6.51),
    » 'b' : Letter('b', True, 1.89), 
    » 'c' : Letter('c', True, 3.06), 
    » 'd' : Letter('d', True, 5.08), 
    » 'e' : Letter('e', False, 17.4),
    »

older pastes →