Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'programming'

2004096 - prod_sort.c adv prog hw 3: programming unix sort fxp prog advanced m1o2 elsf pipes adv advprog braude eitan ronn
  1. /**
  2.         Programmed By : m1o2
  3. */
  4.  
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include <unistd.h>
  8. #include <fcntl.h>
  9.  
1997299 - GetString - m1o2: string programming file fxp m1o2 getstring captinmicael elsf
  1. char *GetString(void* inputSource ){
  2.        
  3.         int size=0,input;
  4.         char *string = NULL;
  5.  
  6.  
  7.         while( fscanf(inputSource,"%c",&input) == 1 && (char)input!='\n' && input!=EOF){
  8.  
  9.  
1511287 - [phear]crippler: programming windows visual basic.net
  1. Public Class BandForm
  2.     'Class level variables
  3.     'The Collection Array
  4.     Private bandStrings As String() = {"Gojira", _
  5.                                        "Lamb of God", _
  6.                                        "Black Flag", _
  7.                                        "Slayer", _
  8.                                        "Morbid Angel", _
  9.  
1291891 - ScriptHelper: help scripts programming basic website
  1. --Basic Website Script help.
  2.  
  3. Here are some basic website scripts. They are very useful to know when you are programming your own website.
  4. <img src="IMAGELINKHERE"> --This script will add an image to your site. Of course, IMAGELINKHERE is not an actual web link,
  5. and therefore it must be changed. Keep everything the same INCLUDING THE QUOTES (I cannot stress enough how important the
  6. quotes are!) except the text IMAGELINKHERE. That needs to be replaced with the actual link of the picture you want to upload
  7. to your site. If you have your image on an image upload site, copy the link in the section DIRECT LINK or whichever one
  8. that will work when the link is put into the code. With uploading sites that give multiple links, you may have to experiment
  9.  
1170565 - a note on design vs. elegance: programming dexen design engineering elegance
  1. Desig-by-elegance is conservative and suboptimal in its nature; not least because it converges to what we are accustomed to; follows form rather than idea. On the other hand, design-for-performance (in engineering), or design-for-correctness in computer science looks alien at first, but becomes elegant after a few iterations, and doubly so in hindsight; not least because designs which follow do converge to the original one, and we grow accustomed.
  2. -- dexen deVries
701150 - psych.c: c programming coding brainfuck brainf code interpreter
  1. /* psych, v.0.2 - a Brainfuck interpreter
  2.    Copyright (C) 2007 John T. Wodder II
  3.  
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2 of the License, or
  7.    (at your option) any later version.
  8.  
  9.  
  10.  
695067 - Area calculator: calculator programming basic area true
  1. PRINT "Please enter the length of the rectangle."
  2. INPUT L
  3. !Variable L stands for the length of the rectangle.
  4. CLEAR
  5. PRINT "Please enter the width of the rectangle."
  6. INPUT W
  7. !Variable W stands for the width of the rectangle.
  8. CLEAR
  9.  
655950 - g_hash_table problem: c glib programming g_hash_table
  1. Here is the problem:
  2.  
  3. I have a g_hash_table, using the direct hashing function. This hash table holds string(key)->int(value) pairs. In my program, there are two functions: one takes a hash table, and writes the values to GConf; the other reads the values from GConf and returns a new hash table.
  4.  
  5. To test my functions, I create some data and store it in the hash table, using the following code:
  6.  
  7.   GHashTable *tmp_outputs = g_hash_table_new (NULL, NULL);
  8.   gchar *tmp_output_id = g_strdup ("StringOfLettersWithNoSpaces");
  9.  
worth-right
fantasy-obligation