New paste›Public feed

Public feed

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

    913901·cpp·366 B·2008-02-22 13:12 UTC
    #include <iostream>
    void tid(int timmar,int minuter);
    
    using namespace std;
    
    int main()
    {
    
    int time;
    cout << "Ange timmar: ";
    cin >> time;
    cout << "Ange minuter: ";
    int min;
    cin >> min;
  • Something

    913900·cpp·592 B·2008-02-22 13:06 UTC
    #include <iostream>
    void tid(int);
    
    using namespace std;
    
    int main()
    {
    
    int time;
    cout << "Ange timmar: ";
    cin >> time;
    tid(time); // Skickar variabeln time till funktionen
    cout << "Ange m
  • Something

    913899·perl·594 B·2008-02-22 13:06 UTC
    #include <iostream>
    void tid(int);
    
    using namespace std;
    
    int main()
    {
    
    int time;
    cout << "Ange timmar: ";
    cin >> time;
    tid(time); // Skickar variabeln time till funktionen
    cout << "Ange m
  • Something

    913898·text·559 B·2008-02-22 13:05 UTC
    Rockbox UMS - iPod Mounted with "sync" option
     ▻ time dd if=usb_write_test_file of=/mnt/ipod/Data/usb_write_test_file
    4000+0 records in
    4000+0 records out
    2048000 bytes (2.0 MB) copied, 110.994 se
  • Something

    913895·text·742 B·2008-02-22 12:58 UTC
    [root@localhost ~]# apt-get install kdenetwork
    Reading Package Lists... Done
    Building Dependency Tree... Done
    Some packages could not be installed. This may mean that you have
    requested an impossi
  • Something

    913893·text·233 B·2008-02-22 12:55 UTC
    ▻ time dd if=usb_write_test_file of=/mnt/ipod/Data/usb_write_test_file
    64000+0 records in
    64000+0 records out
    32768000 bytes (33 MB) copied, 1760.75 seconds, 18.6 kB/s
    
    real 29m21.057s
    user
  • Stuff

    913891·text·321 B·2008-02-22 12:50 UTC
    int atcommand_pk(const int fd, struct map_session_data* sd, const char* command, const char* message)
    {
     if (sd->state.killer != sd->state.killable){
     sd->state.killer = 0;
     sd->s
  • pat

    913890·text·4.8 KB·2008-02-22 12:50 UTC
    root@siduxbox:/home/pat# sensors-detect 
    # sensors-detect revision 5108 (2008-01-22 13:22:47 +0100)
    
    This program will help you determine which kernel modules you need
    to load to use lm_sensors mo
  • Untitled

    913889·pli·816 B·2008-02-22 12:46 UTC
    SELECT lig_id||';'||gist_pav||';'||lig_pav||';'||COUNT(lig_kodas)
    FROM diagnozes, ligos, gydymo_lapai, gydymo_rez_tipai, gydymo_istaigos
    WHERE diag_lig_id = lig_id
    AND gist_id = gal_gist_id
    AND di
  • Anonymous

    913887·text·249 B·2008-02-22 12:46 UTC
    usbmadness:~# /usr/sbin/grub-install --recheck /dev/sdb
    Probing devices to guess BIOS drives. This may take a long time.
    Searching for GRUB installation directory ... found: /boot/grub
    The file /bo
  • Untitled

    913886·cpp·274 B·2008-02-22 12:39 UTC
    #include <iostream>
    double far(double);
    
    using namespace std;
    int main()
    {
    
    cout << "Skriv in ett celsius värde: ";
    double cel;
    cin >> cel;
    far(cel);
    return 0;
    }
    
    double far(double sts
  • Something

    913885·perl·1.2 KB·2008-02-22 12:38 UTC
    #!/usr/bin/perl
    use strict;
    
    for my $arg (@ARGV) {
     open DATA, "</proc/$arg/smaps" or die("Cannot open smaps file for PID $arg");
     my %lines;
     while (<DATA>) {
     /(\w+):\s*(\d+)
  • Mine

    913882·text·499 B·2008-02-22 12:31 UTC
    SOURCES = board.cpp chat.cpp graphic.cpp input.cpp socket.cpp talk.cpp
    HEADERS = board.hpp chat.hpp graphic.hpp input.hpp socket.hpp talk.hpp
    OBJECTS = $(subst .cpp,.o, $(SOURCES))
    
    CXXF
  • Mine

    913881·text·1.1 KB·2008-02-22 12:31 UTC
    import java.util.ArrayList;
    /**
     * 
     */
    public class Purse
    {
     public Purse()
     {
     coins = new ArrayList<String>();
     }
     
     void addCoin(String coinName)
     {
     c
  • Unbenannt

    913880·text·195 B·2008-02-22 12:28 UTC
    gzipin = new GZIPInputStream(socket.getInputStream());
    oisgz = new ObjectInputStream(gzipin);
    Object object = (Object) oisgz.readObject();
    ois = new ObjectInputStream(socket.getInputStream());
  • Anonymous

    913879·sql·751 B·2008-02-22 12:28 UTC
    SELECT 
    `propriete`.`propriete`
    , `cout`.`prix` 
    , `cout`.`coeff` 
    , `cout`.`coeff_detail` 
    , (`cout`.`prix` * `cout`.`coeff`) AS total
    , cout.type as cout_type
    , societe_composant_desordre.id_
  • Mine

    913878·text·2.4 KB·2008-02-22 12:24 UTC
    ++ test -e /dev/sdb
    ++ :
    ++ case "$host_os" in
    ++ case $1 in
    +++ echo /dev/sdb
    +++ sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' -e 's%\(d[0-9]*\)p[0-9]*$%\1%' -e 's%\(fd[0-9]*\)$%\1%' -e 's%/part[0-9]*$%
  • Something

    913877·text·478 B·2008-02-22 12:18 UTC
    void Stylus::onScrollBar(int currY)
     {
     
    
     
     int linesToMove = 0;
     int dy = currY-lastY;
     
     //scroll speed depends on cursor movement
     if(ABS(dy)>0 && (ABS(dy)<4))
     linesToMove = 1
  • Someone

    913876·text·19.9 KB·2008-02-22 12:17 UTC
    ±±±± ±±±±±±±± 
     ±±±±±±
  • Meins

    913875·text·478 B·2008-02-22 12:15 UTC
    Index: pgm/utils/benchmark.py
    ===================================================================
    --- pgm/utils/benchmark.py (revision 1082)
    +++ pgm/utils/benchmark.py (working copy)
    @@

older pastes →