Print

Author Topic: What's on your Paste?  (Read 551138 times)

« Reply #1275 on: September 11, 2011, 08:48:43 PM »
"Animated" and "gif" are givens.
YYur  waYur n beYur you Yur plusYur instYur an Yur Yur whaYur

Luigison

  • Old Person™
« Reply #1276 on: September 12, 2011, 07:00:13 PM »
“Evolution has shaped us with perceptions that allow us to survive. But part of that involves hiding from us the stuff we don’t need to know."

« Reply #1277 on: September 13, 2011, 10:45:52 AM »
"Animated" and "gif" are givens.

You could say they are gif-ens.


Now for my paste..


Vicky
Kinopio is the ultimate video game character! Who else can drive a kart, host parties, play tennis, give good advice and items, and is almost always happy??

BriGuy92

  • Luck of the Irish
« Reply #1278 on: September 13, 2011, 10:55:25 AM »
Know the most important contribution of the organ Fund science girls type. It's true!

Turtlekid1

  • Tortuga
« Reply #1279 on: September 13, 2011, 11:11:27 AM »
"It'll say life is sacred and so is death
but death is life and so we move on"

« Reply #1280 on: September 13, 2011, 11:57:51 PM »
Choisissez une scène qui vous émeut. Celle-ci doit contenir un paysage et un ou plusieurs personnages.
If she is indeed genetically mutated such that she has an eye in the back of her head, then I guess that she is genetically mutated and has an eye in the back of her head.

« Reply #1281 on: September 14, 2011, 05:13:00 PM »
>>4481179
I will not tolerate your flagrant use of racial slurs in my thread. Get out, bigot.

Intolerant hatemonger.
YYur  waYur n beYur you Yur plusYur instYur an Yur Yur whaYur

BriGuy92

  • Luck of the Irish
« Reply #1282 on: September 14, 2011, 06:56:02 PM »
Code: [Select]
#define MODULUS 127
#include <stdio.h>
#include <strings.h>
/* Corrected the code found in  href=http://www.sparknotes.com/cs/searching/hashtables/section4.rhtml */
int rksearch(char* pattern, char* text)
{
  int pattern_hash, text_hash, pattern_len, num_iterations, i;


  /* are the pattern and the text legitimate strings? */
  if (pattern == NULL || text == NULL) return -1;

  /* get the lengths of the strings and the number of iterations */
  pattern_len = strlen(pattern);
  num_iterations = strlen(text) - pattern_len + 1 ;



  /* Do initial hashes */
  pattern_hash = hash(pattern);
  text_hash = hashn(text, pattern_len);


 
  /* Main comparison loop */
 
  for (i = 0; i < num_iterations; i++) {
    if (pattern_hash == text_hash &&
   !strncmp(pattern, &(text[i]), pattern_len)) return i;

    text_hash = hash_increment(text, i, text_hash, pattern_len);

  }
   
  /* Pattern not found so return -1 */
  return -1;
}

/* hash function for fingerprinting */
int hash(char* str)
{
  int sum = 0;
  int k;
  int i=0;
  k = strlen(str);
  while (i<k) {
    sum = (sum+ (int) (str)); i++;
  }
  return sum % MODULUS;
}

int hashn(char* str, int n)
{
  int sum;
  char *str1;
  int i;
 
  str1 = (char *) malloc(n);
  for (i=0;i<n;i++)
    str1=str;
  str1[n]='\0';

  sum = hash(str1);
  return sum;
}

int hash_increment(char* str, int prevIndex, int prevHash, int keyLength)
{
  int val = (prevHash - ((int) str[prevIndex])
        + ((int) str[prevIndex + keyLength])) % MODULUS;

  return (val < 0) ? (val + MODULUS) : val;
}

int main()
{
  char *text;
  char *pattern;
  text = (char *) malloc(300);
  pattern = (char *) malloc(45);
  scanf("%s %s", text, pattern);
  printf("Text String %s\n", text);
  printf("Pattern String %s\n", pattern);

  printf("Pattern is found in position %d\n", rksearch(pattern,text));
  exit(0);
}
[/i]
Know the most important contribution of the organ Fund science girls type. It's true!

Turtlekid1

  • Tortuga
« Reply #1283 on: September 14, 2011, 07:12:02 PM »
HM9oSHPZhwM
"It'll say life is sacred and so is death
but death is life and so we move on"

« Reply #1284 on: September 14, 2011, 08:02:01 PM »
I was just about to suggest something along the same lines. Reporting underscored, redundant (e.g. /h/ threads with "hentai" or /vp/ threads with "Pokemon") and obscure (i.e., ones which will only ever be used for one thread) tags has become tedious as of late
YYur  waYur n beYur you Yur plusYur instYur an Yur Yur whaYur

BriGuy92

  • Luck of the Irish
« Reply #1285 on: September 15, 2011, 07:59:18 AM »
Know the most important contribution of the organ Fund science girls type. It's true!

Turtlekid1

  • Tortuga
« Reply #1286 on: September 15, 2011, 08:03:50 AM »
Ays5DP1m1JQ
"It'll say life is sacred and so is death
but death is life and so we move on"

ShadowBrain

  • Ridiculously relevant
« Reply #1287 on: September 15, 2011, 09:19:28 AM »
Day and night black and white
 You take it all for granted
 I'm the one who turns you on

 When you don't know where you belong
 And nothin' seems to matter
 I'm the one who's holding on

 It's alright to be wrong
 All we need's a little time
 But nothing here can last that long

 We show the world a brand new face
 It's taken us all this time
 All this time

 All of this doubt
 We get to work it out
 All of this doubt
 We get to work it out

 Yesterday lost your way
 Still looking for an answer
 I'm the one who holds the key

 When you don't know where you belong
 And nothing seems to matter
 I'll unlock this mystery

 We show the world a brand new face
 It's taken us all this time
 All this time
 All of this doubt
 We get to work it out
 All of this doubt
 We get to work it out

 We show the world a brand new face
 It's taken us all this time
 All this time
 All of this doubt
 We get to work it out
 All of this doubt
 We get to work it out

 All of this doubt
 Day and night - Black and White
 Take it all for granted
 We get to work it out
 I'm the one who turns you on
 Turns you on - Turns you on
 All of this doubt

 When you don't know where you belong
 And nothin' seems to matter
 We get to work it out
 I'm the one who's holdin' on
 Holdin' on - Holdin' on
"Mario is your oyster." ~The Chef

« Reply #1288 on: September 15, 2011, 01:17:11 PM »
    Overlay transition: 'Matrix 4 wipe'      0:00:00.10   0:00:00.00
    Title overlay: '_x0005'      0:00:05.15   0:00:00.00
    Overlay transition: 'Matrix 4 wipe'      0:00:00.10   0:00:05.05
If she is indeed genetically mutated such that she has an eye in the back of her head, then I guess that she is genetically mutated and has an eye in the back of her head.

ShadowBrain

  • Ridiculously relevant
« Reply #1289 on: September 15, 2011, 05:38:15 PM »
http:// blip.tv/slowbeef/ retsupurae-vs-the- nostalgia-critic-5535142
"Mario is your oyster." ~The Chef

Print