It is time, /g/!
roll
Rollin up
Give me an easy one.
>>56061789
Rolling for something to do later today.
>>56061914
does anyone have the version where spürdö's head spins instead of the "propeller"?
I lost mine, fugg :DD
>>56062990
Oh god no thanks, rerolling.
ez pls
>>56063002
Temperature converter is easy.
You can do it now, anon! I know you can!
>>56063029
FUCK NO reroll
>>56063050
wtf i hate this now
>>56061789
Rolling for more plugins for muhh system
(does anyone have the other image btw?)
>>56062990
>>56063002
please more pics of girls with tiny petite bodys without an ounce of fat but still magically have crazy hip to waist ratio
>>56063120
There's this one.
You can use that too, if you want...
>>56061789
>>56063195
>not posting the new v4
>>56061789
rell
>>56063258
Didn't post it because no one will do it.
Hell, I even used the noob version and the thread is still slow...
come on baby, daddy needs a new pair of shoes
>>56061789
bbbrap
>>56063265
fuck that, rolling for >>56063258
>>56063258
>>56063195
rolling. i'll see if I do the easier
I probably won't end up doing it
>>56063292
do you always use that line joey
>>56061789
>the boring shit version
Someone bring the new version some fag created some days ago.
>>56063338
nvm, it's already here
>>56063258
>>56063288
>assuming anyone wants to do the pointless CS exercises with no gain
>>56061789
Roll
>>56063294
>94
>ray tracer
good luck
Most of them are just too hard for me :(
>>56063324
All I gotta say is,
how you doin'?
>>56063306
did the bmi calculator
>>56063294
reeee
These are all badly laid out. They should be sorted from easy to hard. That way someone can generate a number and get a challenge matching their skillset with ease.
>>56063258
>>56063195
Okay let me roll for the both and pick one because I'm not writing a damn BMI calculator
>>56063422
Also, they shouldn't be a light font on dark background.
>>56061789
rolling
>>56063506
>he knew his roll was going to be the bmi calculator
>>56063557
Wow, seriously? Give me something less trivial
>>56061789
>061 - Linked list
linked list are tools that make your life easy when you are in a project... not a project per-se...
>>56063599
really makes you think...
>>56063611
>Not using STL for that porpouse
>Trying to reinvent the wheel...
>>56063258
rolling rolling rolling
>>56063566λ let sieve n xs = [ x | x <- xs, x `rem` n /= 0 ]
λ take 50 $ unfoldr (\(x:xs) -> Just (x, sieve x xs)) [2..]
[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229]
I'm sure it can be improved, I just don't know how. That ‘unfoldr’ type signature sort of annoys me.
Rolling. I barely know Java and could use some practice.
>>56061789
>basic lisp interpreter
>n00b
>>56061789
Gimme something good. Got hour and a half to kill.
>>56063133
>>56063258
Roland
>>56063980
I can't do this shit
>>56061789
boawl
rolling but i can't see how i will make these in html
>>56064000
Nice trips
>>56063996
>>56063980
why not ? You just have to know C..
>>56063133
>>56061789
>000 - 099
Why
Rello,I am bored
I'll bite.
>>56061789
easy please
OK rolling
>>56061789
Pls be gentle
I can program "Hello, world" printout in java
pls no bully ;__;
this shit makes me want to give up...
>>56063081
>Game of Life
You're fucked.
>>56061789
asd
>>56063195
>Perlin/simplex noise with parameters.
I don't even know what it means.
>>56063258
I really like this one. Especially for being kind and giving some good advice.
I roll.
FUCK IT LETS GO
>>56064521
ID3 reader. I'll start with it!
>>56061789
eh sure
>>56064058
I don't know C
>>56064553
age in seconds for >>56061789
fizzbuzz for >>56063195
irc for >>56063258
alright let's try it
>>56064174
Did some cursory research into a quine, do you literally just put everything from the source code into a string and properly format it? I thought it'd be a bit more technical than that.
>>56061789
come one 002
>>56064635
Fuck this thread.
>>56064610
If you just copy and paste the source code into a string you will have to do that again inside the string infinite times
>>56061789
id roll to that
>>56061789
Roll
>>56061789
adsfasdf
>>56061789
rollan
>>56061789
MORTAL KOMBAT
DUN DUN DUN DUN DUN DUN DUN DUN DUN DUN DUN DUN DUN DUN
>>56061789
this probably shouldn't be on /g/ but fuck it
>>56061789
Rolling.
>>56061789
Fuck it, im bored anyway
>>56065651
Already have like 7 of these god damnit, reroll
>>56065671
This actually aint a bad project
before mod sweep
>>56061789
Roll
>>56064071
>>56063817
thanks /g/uys
Lmao at the difficulty variation here. #21 a single line of bash #22 a p=np or recursive hell hole
>>56065812
np
Rollan
>>56061789
Rollin'
>>56061789
roll
>>56066107
Roll 22
>>56066130
[spoiler]can you please link the tumblr blog youre getting these from?[/spoiler]
>>56061789
bored af
>>56063195
>>56063258
How the fuck do I roll for either of these?
>>56066775
>not knowing missalice
It's like you never been to >>>/gif/
>our system thinks your post is spam
search missalice_94 you should find her twitter, mfc profile and then her tumblr
>>56061789
rolling
>>56063258
roll
>>56061789
oh god
>>56067009
sorry friend, that was my failure to lurkm04r
gooday
>>56061789
A few years ago I made this... 073 - Towers of Hanoi...
http://hostcode.sourceforge.net/view/7784
>>56061789
rollin, for later
rolllllan
>>56061789
What the fuck is the name generator supposed to be? I honestly never understood this.
scRollin
>>56068978
just use something that can display a random name, or put to words together.
Roll em
Roll me daddy
>>56061789
>>56061789
>rollo
>>56061789
roll...
>>56069294
what the fuq
>reroll
Rolando
>>56063002#include <stdio.h>
main()
{
it fahr;
while(fahr=0; fahr <=100; fahr +20)
printf("%3d %8.1f", fahr, (5.0/9.0) * (fahr - 32));
}
>>56069362
*int
>>56063258
Roll
>>56061789
rolling... let's see...
Give me something, I'm bored to death
>>56069849
Worth a shot
>>56061789
why not?
>>56061789
baby show me the fizzbuzz
>>56061789
I never did any of this shit. Rolling :^)
>>56070293
I got binary search I don't even know what that is. Input welcome
starting here
https://en.wikipedia.org/wiki/Binary_search_algorithm
>>56061789
Wake me up inside
>>56070514
I actually like that result, give me one more
Roland
>>56069357
bump. I'm close enough that I want to to post here but I may need to go to bed. Also I am possibly retarded.
>>56061789
rollinnnnn
>>56061789
okay
>>56073083
Whelp, see you in a week
rollio
>>56061789
rolle
>>56061789
hit me
Rolly rolly
Rolling for later
>>56061789
oh boy here we go
>>56061789
Roll!
>>56075069
>Oil Spill Game
what is that?
>>56063258
Here we go!
>>56074916
function countVowels(str) {
return (new Array(str)).reduce( (p,c) => {
return p + ( ['a','e','i','o','u'].includes(c) ? 1 : 0 );
});
};
inputStr = `I'd just like to interject for moment.
What you're refering to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.
There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux!`;
console.log(countVowels(inputStr));
// This did not do What I Thought It Would Do
>>56063258
roll
>>56061789
rololol
blah
Roll, no programming experience.
>>56063258
roll
>>56074916
>>56075098
echo """I'd just like to interject for moment.
What you're refering to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.
There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux!""" | sed 's/\(.\)/\1\n/g' | grep -e a -e e -e i -e o -e u | wc | awk '{ print $1 }'
# This worked.
>>56063258
Rollendo
>>56075377
Fuck off, roll again.
>>56061789
meh
>>56074916
>>56075098
>>56075291
// This one got deep
#include <stdio.h>
int main() {
char in[] = "I'd just like to interject for moment.\n\nWhat you're refering to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.\n\nMany computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.\n\nThere really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux!";
int numVowels = 0;
for (int i = 0; i < sizeof(in); i++) {
switch(i) {
case 'a':case 'e':case 'i':case 'o':case 'u': numVowels++;
}
};
printf("%d\n", numVowels);
}
>>56075405
kek, at least give me a challenge
roll again
>>56075427
what is this, Job Interview Questions 101?
roll again
>>56075401
>>56075427
>>56075439
I'm literally just trying to count vowels, and am running into issues. Don't be a faggot, just do the challenge. You're not paid to do what you want, it's a good simulator.
Gimme gimme
>>56075472
FizzBuzz and Fibonacci are so easy I can write them from memory
FizzBuzz:#include <stdio.h>
main()
{
int i;
for (i = 1; i <= 100; i++)
{
if ( !(i % 3) && !(i % 5) )
puts("FizzBuzz");
else if ( !(i % 3) )
puts("Fizz");
else if ( !(i % 5) )
puts("Buzz");
else printf("%d\n", i);
}
}
Fibonacci:#include <stdio.h>
main()
{
int a = 0; int b = 1; int c;
int i;
for (i = 1; i <= 10; i++)
{
printf("%d, ", a);
c = a + b; a = b; b = c;
}
}
Strong password generator is extremely vague.
>>56061789
roll
>>56061789
napf
>>56075651
strong password generator is probably just a >10 letter random number/letter string, so generating strlen random bytes and interpreting them as characters would do the job already.
or you could reverse engineer pwmake, which would be more challenging, since its output needs to be pronouncable by humans.
>>56063258
roll
Rollan
>>56061789
Rollllllll
>>56075098countVowels :: String -> Int
countVowels = length . filter . elem "aeiouAEIOU"
shiggery didgeridoo
>>56061789
g i b m e
>>56063258
rooollin
Give me something interesting
>>56078249
Pff boring, reroll
>>56078261
Linked list
Oh come whats this basics of cs101, reroll
>>56078277
Is there harder version of this but not silly hard that i have to spend week on it
>>56078249
>>56078261
>>56078277
>>56078298
>I can't do easy things or hard things
Maybe don't roll then
>>56064702#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char **argv) {
char buffer[16];
double temperature=0;
int i=0;
int nbDigits=0;
if(argc != 2) {
printf("Need a temperature\n");
exit(EXIT_FAILURE);
}
while(argv[1][i] >= '0' && argv[1][i] <= '9' || argv[1][i] == '.') {
buffer[i] = argv[1][i];
i++;
}
buffer[i] = '\0';
temperature = strtod(buffer, NULL);
nbDigits = i;
while(argv[1][i] != '\0') {
buffer[i - nbDigits] = argv[1][i];
i++;
}
buffer[i-nbDigits] = '\0';
if(strcmp(buffer, "c") == 0 || strcmp(buffer, "C") == 0 || strcmp(buffer, "°c") == 0 || strcmp(buffer, "°C") == 0) {
printf("%.1lf°C = %.1lfK = %.1lf°F\n", temperature, (temperature + 273.15) , (temperature * 1.8 + 32));
}
else if(strcmp(buffer, "f") == 0 || strcmp(buffer, "F") == 0 || strcmp(buffer, "°f") == 0 || strcmp(buffer, "°F") == 0) {
printf("%.1lf°F = %.1lfK = %.1lf°C\n", temperature, ((temperature + 459.67) / 1.8) , ((temperature - 32) / 1.8));
}else if (strcmp(buffer, "k") == 0 || strcmp(buffer, "K") == 0) {
printf("%.1lfK = %.1lf°C = %.1lf°F\n", temperature, (temperature - 273.15) , (temperature * 1.8 - 459.67));
}else {
printf("Unit %s unknown.\n", buffer);
exit(EXIT_FAILURE);
}
return 0;
}
>>56061789
roll
>>56078298
Nvm basic lisp sounds good
lemon key face
sure
>>56063258
>image to ascii art
>easy
wat
>tfw can only do fizzbuzz and a few simple things in c++
r-roll
>>56078375
roll again in hopes of fizzbuzz
>>56061789
raul
rololo
>>56078305
>>56064702#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char **argv) {
int i, j;
char words[1024][32];
int wordsCounter[1024];
int nbWords=0;
for(i=1 ; i<argc ; i++) {
j=0;
while(j<nbWords && strcmp(words[j], argv[i])) {
j++;
}
if(j == nbWords) {
strcpy(words[j], argv[i]);
wordsCounter[j] = 1;
nbWords++;
}
else {
wordsCounter[j]++;
}
}
for(i=0 ; i<nbWords ; i++) {
printf("%s was found %d time.\n", words[i], wordsCounter[i]);
}
return 0;
}
A bit lazy to manage the punctuation... but that's not very difficult. For each words you look for them and remove them from the list. Or count them as separate words.
>>56078440#include <stdio.h>
main()
{
int kek[] = {23,1,5,9,86,3,4,7};
int i, *p;
for (i = 0; i < sizeof kek / sizeof *kek; i++)
if (kek[i] > *p) p = &kek[i];
printf("Position of largest number: %d", p - kek);
}
>>56061789
Roll, come on big money.
Rolo, thanks for posting this. Gotta learn some python.
>>56078327#include <stdio.h>
int main(int argc, char *argv[])
{
int max = 10000;
int i;
int num1 = 1, num2 = 1, num3 = 2;
printf(" %d", num1);
for (num1 = num2; num1 <= max; num1 = num2) {
num2 = num3;
num3 = num1 + num2;
printf(" --- %d", num1);
}
printf("\n\n");
num1 = 1, num2 = 1, num3 = 2;
printf("%d\n", num1);
for (num1 = num2; num1 <= max; num1 = num2) {
num2 = num3;
num3 = num1 + num2; // you get
printf("%d", num1); // no comments
i = num1;
int jimmy = 0;
while (i > 0) {
i /= 10;
jimmy++;
}
for (i = 0; i < num1 - jimmy; ++i) {
printf("-");
}
printf("\n");
}
printf("\n\n");
return 0;
}
Rollando tbqhfamalando
>>56078815def reverseString(str):
"Reverses a string"
return str[::-1]
Rolling..
>>56063258
rolling
>>56075291
>sed 's/\(.\)/\1\n/g' | grep -e a -e e -e i -e o -e u | wc | awk '{ print $1 }'
isn't it possible to do that using grep only ?
>>56061789
roll
>>56061789
Something not stupid please
>>56079324
Fuck that shit you don't need a program to do that
>>56079363
it's the noob programming list. Roll this one >>56063258
>>56061789
WHAT THE FUCK IS AN OIL SPILL GAME WHY DO I ALWAYS ROLL THAT SHIT
Just finished one project, let's see.
>>56079509
Reroll for god's sake
>>56063258
Roll
>>56079588
Reroll for green/yellow
>>56063050
too easy? i did game of life in C after 1 semester of programming
>>56079488
Bump, want to know, too
>>56062991
if you still want it :DDD
>>56061789
>>56063195
>>56063258
Three to choose from, I do what I want ROLL.
>>56061789
rollandito
>>56079717main = getLine >>= print . length . words
>>56061789
Feed
>>56075801
rell
>>56061789
Fuck my shit up, senpai..
>>56061789
>ywn get this many (you)s
rolex
rrrrrreeeeee
>>56061789
Money shot
>>56061789
roll = random.randint(0,99)
print roll
>>56081558
shit i dont even know what convert markup to html means
>>56061789
roll
>>56081656
>Mandelbrot set in ascii
Are you fucking kidding me
>>56063258
roll
rolly rolly
>>56061789
ROLL!
rolling for the best pair!
>>56061789
rollan
rolla
>over a hundred rolls
>like 5 actually completed challenges
/g/ is fucking dogshit
>>56063258
hmm
>>56081558
ffs, use a modulus operator like a man
>>56061789
Roll
>>56061789
rollerino
rolla
Fuck it roll
>>56063258
roll
>>56082094
Some projects require more than a day to complete. Maybe more than a week for some of them.
But you're right. People in /g/ doesn't seems that good when it comes to program something.
>>56082488
because [s]my noob self dosnt know how[/s] it skews the results to be not equal
>>56061789
>>56063258
Rollin for something I won't do anyways.
>>56086813
Ok, I did the easy one in Ruby.
>pic relatedputs ["It is certain", "It is decidedly so", "Without a doubt", "Yes, definitely", "You may rely on it", "As I see it, yes", "Most likely", "Outlook good", "Yes", "Signs point to yes", "Reply hazy try again", "Ask again later", "Better not tell you now", "Cannot predict now", "Concentrate and ask again", "Don't count on it", "My reply is no", "My sources say no", "Outlook not so good", "Very doubtful"].sample
Beep boop
r011
>>56063258
*rolls*
REPELL
rolll
>>56061789
rollan
>>56063258
Done a bunch of these but rolling anyway~
>>56087428
Image board client?
>>56087402PROGRAM F2C
c Temp converter
DOUBLE PRECISION degf, temp
WRITE (*,*) 'TEMP:'
READ (*,*) degf
temp = 5D0 / 9D0 * (degf - 32D0)
WRITE (*,*) 'Conv: ', temp
END PROGRAM F2C
>>56061789
roll
Imma install mint on my chromebook and try this tomorrow hopefully i dont get something too hard
>>56078305
>using arbitrary buffer sizes
TRASH
R
A
S
H
>>56069357
It... it's supposed to be a merge sort. It just kept growing and growing.mergesort <- function(...){
x <- as.list(c(...))
merger<- function(y){
unmerged <- y
if(length(unmerged)==2){
unm1 <- unmerged[[1]]
unm2 <- unmerged[[2]]
merged <- NULL
i <- 1
j <- 1
while(i <= length(unm1)){
if(j > length(unm2)){
merged <- c(merged, unm1[i:length(unm1)])
break
}else if(unm1[i] < unm2[j]){
merged <- c(merged, unm1[i])
i <- i + 1
}else{
merged <- c(merged, unm2[j])
j <- j + 1
}
}
if(j <= length(unm2)){
merged <- c(merged, unm2[j:length(unm2)])
}
}else{
merged <- unmerged
}
merged
}
while(length(x) > 1){
odd <- F
lastpair <- length(x)
if(lastpair%%2 == 1){
odd <- T
lastpair <- lastpair - 1
}
newlist <- NULL
n <- 1
for(i in seq(1, lastpair, 2)){
newlist[[n]]<- merger(list(x[[i]], x[[i+1]]))
n <- n+1
}
if(odd){
newlist[[n]]<- x[[length(x)]]
}
x <- newlist
}
x[[1]]
}
It does actually "work". Commented code in the pic. Any tips an making my code more readable? Stylistically I mean. Not referring to the inefficiency in the algorithm.
I imagine many of you share my situation:
I have several different directories on my drive that I dump pics from 4chan into. One for /s/, /h/, /e/, /hc/ etc. and I frequently have several pics in the wrong place.
Since there's so many pics I needed something that lets me flick through a directory and just tap a single key to move a file to a pre-specified directory rather than doing the copy-paste dance every time.
So I wrote a little tool to let me do that.
http://pastebin.com/imd5zLcD
You'll need Ruby installed along with tk and tk-image. On Ubuntu 16.04 you'll need to "sudo apt-get install ruby libtcltk-ruby libtk-img".
Press left and right to go to the previous and next image.
Press ctrl + h to set your hotkeys for moving files.
I just want to help and perhaps provide an example for someone interested in learning Ruby and Tk. I'm not taking it all seriously or anything; so use it or don't it's up to you.
>>56086942
Nice one-liner.
>>56061789
ROLLING
>>56061789
roll
>>56088795
i like your color theme. i have use similar styles, muted colors. Idk how anyone can use dozens of bright colors all over the screen, seems to detract from the actual code
>>56063258
Rell
>>56061789
let's see
>>56061789
HERE I GO
>>56089305
>context
eh? The subject?
May do that, going to reroll for another one anyway.
>>56063258
gonna do this one instead
>>56063258
Roll
>>56061789
roll
>>56061789
re roll
>>56061789
roll
>>56063258
rollllll
>>56061789
rolling, haven't been programming enough lately
>>56063258
lets get an easy one
>>56061789
rolll
>>56061789
Let's do it
>>56061789
> first day at work after vacations
let's roll for something to do
>>56061789
some of them are so easy.. others way too hard
>>56061789
BasedGod
>>56061789
rolling
>>56061789
Be kind to me.
Rollin''''''
>>56063258
Rollin'
>>56064447
Kek