Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

newfags can't

Name: Anonymous 2012-10-07 19:34

SUPERBOLD

Name: Anonymous 2012-10-07 19:42

AM I DOIN IT RITE

#!/usr/bin/perl -l40
use encoding utf8;
y/!-~/\x{ff01}-\x{ff5e}/ and print for @ARGV

Name: Anonymous 2012-10-07 19:51

スパボールド

Name: Anonymous 2012-10-07 19:59

>>2
U MENA
perl -M'encoding(utf8)' -p -e 'y/!-~/\x{ff01}-\x{ff5e}/'

Name: Anonymous 2012-10-08 1:42

>>2
>>4
Sweet! Now I can feel kind of bad about things!

Name: this goes in your .bashrc, 2012-10-08 2:22



kindabad () {
    if [ -z "$1" ]
    then
        perl -M'encoding(utf8)' -p -e 'y/!-~/\x{ff01}-\x{ff5e}/'
    else
        echo $@ | perl -M'encoding(utf8)' -p -e 'y/!-~/\x{ff01}-\x{ff5e}/'
    fi
}


i do feel kind of bad about this

Name: Anonymous 2012-10-08 3:36

(cons (car *star*))

Name: Anonymous 2012-10-08 3:37

(cons car *star*)

Name: Anonymous 2012-10-08 6:23

Superboldize my anus,〝faggot

Name: Anonymous 2012-10-08 6:56

(cons (car (cdr)))

Name: Anonymous 2012-10-08 13:56

>>10
IS THIS LAZY SCHEMEMMMMM

Name: Anonymous 2012-10-08 15:14

SUPERBOLD?

Name: Anonymous 2012-10-08 18:38

SUPERBOLD

suck my ANUS

Name: Anonymous 2012-10-08 19:35

supbold?;_;

Name: Anonymous 2012-10-08 20:25

>>6
.bashrc
HAHAHAHAHAHAHA FAGGOT!

Name: Anonymous 2012-10-08 20:37

NEWFAG ATTEMPTING STAND BACK
[b]SUPERBOLD[/b]

Name: Anonymous 2012-10-08 20:38

godammit
SUPERBOLD

Name: Anonymous 2012-10-09 0:38

SUPERBOLD?

Name: Anonymous 2012-10-09 2:19

test

Name: Anonymous 2012-10-09 5:26

testing

Name: Anonymous 2012-10-09 7:12

SUPERANUS

Name: Anonymous 2012-10-09 12:15

SUPER DUBS

Name: James Gosling 2013-05-20 8:26

GAWWZMACS FLABBERGASTS MY AUDIENCE

Name: Anonymous 2013-05-20 9:21

I just use windows IDE to switch to full-width
How does that feel, that even with all your GNAA/linux tricks you’re just as good as windows?
I think you just got
SUPERTOLD

Name: Anonymous 2013-05-20 10:34

>>24
I love the nvidia drivers crashing when playing Civ5

Name: Anonymous 2013-05-20 13:35

This thread is supergay

Name: Anonymous 2013-05-20 14:26

F U C K   O F F

Name: Anonymous 2013-05-20 14:38

>>27


   

Name: Anonymous 2013-05-20 15:02

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <time.h>
#include <stdlib.h>

const char a = "[]!@#$%^&*()1234567890-=abcdefghjklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
const char b = "[]!@#$%^&*()1234567890-=abcdefghjklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";

int main(void)
{
    char * c = (char*) malloc(10000000 * sizeof(char)); // no one will type ten mibibytes
    char * d = (char*) malloc(10000000 * sizeof(char)); // output
    for(int i = 0; i < 10000000 * sizeof(char) - 1; i++) d[i] = c[i] = '\0';
    printf("String:");
    scanf("%s", &c);
    int l = strlen(c);
    int l2 = strlen(a);
    int matched = 0;
    for(int j = 0; j < l - 1; j++)
    {
        matched = 0;
        for(int k = 0; k < l2 - 1; k++)
        {
            if(c[j] == a[k])
            {
                d[j] = b[k];
                matched = 1;
                break; // we are done here :)
            }
        }
        if(matched == 0) // we didn't match anything :(
        {
            d[j] = c[j];
            continue;
        }
    }
    printf("\a\a\a\a\nDone!\n\n%s%d\r%s",c,sleep(5),d); // show the original, sleep a bit, then use \r to overright the the first with the output

}

Name: Anonymous 2013-05-20 15:19

~*LOLLOLLOLLOLLOLLOLLOLLOLLOLLOLLOLLOL*~

Name: Anonymous 2013-05-20 18:17

printf("\a\a\a\a\nDone!\n\n%s%d\r%s",c,sleep(5),d);
NIGGER

Name: Anonymous 2013-05-20 18:50

>>29
const char a = "[]!@#$%^&*()1234567890-=abcdefghjklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
Re-read your code.

Name: Anonymous 2013-05-20 20:23

>>32
That's the least of his problems.

I don't think any C standard allows this in a for loop.
i < 10000000 * sizeof(char) - 1; i++) d[i] = c[i] = '\0';

Name: Anonymous 2013-05-21 2:07

>>29
mebibytes
10000000

For fuck's sake, that's the one time when the SI prefixes are actually valid.  And why would you use scanf over simple getchar or ... wait, why aren't you just using constant offsets what the fuck are you doing.

Name: Anonymous 2013-05-21 2:46

>>34
sage field

Name: Anonymous 2013-05-21 2:59

>>29
That's terrible. It doesn't hit all of the ASCII set, it gets the brackets wrong, it uses too much memory and has a hardcoded limit... I'm so ashamed to be on the same board as that that I have to post an improved version.


#include <locale.h>
#include <stdio.h>

int main(void)
{
  int c;

  if (setlocale(LC_ALL, "") == NULL)
    return -1;

  while (EOF != (c = getchar())) {
    if (c <= '~' && c >= '`')
      printf("%c%c%c", -17, -67, (-128 + (c - '`')));
    else if (c < '`' && c >= '!')
      printf("%c%c%c", -17, -68, (-128 + (c - ' ')));
    else
      printf("%c", c);
  }
}


Lrn2Un1[0d3, n00b!

Name: Anonymous 2013-05-21 3:00

>>36
I program, not code, kid.

Name: Anonymous 2013-05-21 3:04

>>37
PROGRAM MY ANUS

Name: Anonymous 2013-05-21 5:10

check 'em

Name: Anonymous 2013-05-21 7:38

>>39
nope not SUPERBOLD

Name: Anonymous 2013-05-21 14:33

>>37
I DEVELOP, not program, peasant.

Name: Anonymous 2013-05-21 14:46

lol nub

Name: Anonymous 2013-05-21 17:21

[b]HAX MY Un1[0d3 MY ANUS[/b]

Name: Anonymous 2013-05-21 21:23

>>36
But it doesn't beep like >>29.

Name: Anonymous 2013-05-21 21:41

>>36
Does not work on Windows.

Name: Anonymous 2013-05-21 21:54

>>45
That's a feature.

Name: Anonymous 2013-05-23 15:32

How do you guys like my enhanced version?

#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>

// transform an integer (up to 16 bits) to a 3 byte utf-8 block and print it
// 1110xxxx 10xxxxxx 10xxxxxx
void printtchar(uint32_t u) {
    putchar(u >> 12 & 0x0F | 0xE0);
    putchar(u >>  6 & 0x3F | 0x80);
    putchar(u       & 0x3F | 0x80);
}

// transform an integer (up to 21 bits) to a 4 byte utf-8 block and print it
// 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
void printqchar(uint32_t u) {
    putchar(u >> 18 & 0x07 | 0xF0);
    putchar(u >> 12 & 0x3F | 0x80);
    putchar(u >>  6 & 0x3F | 0x80);
    putchar(u       & 0x3F | 0x80);
}

// transform a string to a special area (1D400..1D7FF) string and print it
void transformq(const char *s, uint32_t u) {
    size_t i;
    if(s == NULL)
        return;
    for(i = 0; s[i] != '\0'; i++) {
        if(isupper(s[i]))
            printqchar(s[i] - 'A' + u);
        else if(islower(s[i]))
            printqchar(s[i] - 'a' + u + 26);
        else
            putchar(s[i]);
    }
}

// transform a string to a superbold string and print it
void superbold(const char *s) {
    size_t i;
    if(s == NULL)
        return;
    for(i = 0; s[i] != '\0'; i++) {
        if(s[i] >= '!' && s[i] <= '~')
            printtchar(s[i] - '!' + 0xFF01);
        else
            putchar(s[i]);
    }
}

int main(int argc, char *argv[]) {
    // not enough args
    if(argc < 2) {
        printf("Usage: superfont text [font]\n"
            "  font options:\n"
            "    -f for fraktur\n"
            "    -h for helvetica style\n"
            "    -H for helvetica bold style\n"
            "    -i for italic\n"
            "    -m for monospace\n"
            "    defaults to superbold\n");
        return 0;
    }
    // 2+ args -> try to get option in third arg
    else if(argc > 2) {
        if(!strcmp("-f", argv[2]))
            transformq(argv[1], 0x1D56C);
        else if(!strcmp("-h", argv[2]))
            transformq(argv[1], 0x1D5A0);
        else if(!strcmp("-H", argv[2]))
            transformq(argv[1], 0x1D5D4);
        else if(!strcmp("-i", argv[2]))
            transformq(argv[1], 0x1D4D0);
        else if(!strcmp("-m", argv[2]))
            transformq(argv[1], 0x1D670);
        else
            superbold(argv[1]);
    }
    // 2 args -> superbold
    else {
        superbold(argv[1]);
    }
    return 0;
}

Name: Anonymous 2013-05-23 18:44

>>47
I sure am happy you added those informative comments! I would be lost without them!
Especially the ones inside your main().

Name: Anonymous 2013-05-23 19:06

>>47
Why post your code? Now we are no longer VIP you dumbass. For how else can we tell who who is a true /prog/rider and who is a fa/g/got.

Name: Anonymous 2013-05-23 19:27

>>49
I guess we'll just have to come up with something else, now won't we.

Name: ???????????????????????? 2013-05-23 19:39

>>48
No problem mate - I'm glad you appreciate it.

Don't change these.
Name: Email:
Entire Thread Thread List