Richard Cosgrove
2,603 followers -
Screenwriter • Script reader • Copy editor
Screenwriter • Script reader • Copy editor

2,603 followers
Posts
Post has attachment
I want a freebie. OK?
Post has attachment
A break news piece I wrote for IBTimes UK.

#journalism
Post has attachment
An overview of the Rotherham child abuse scandal report, which I wrote for International Business Times UK.

#rotherham   #journalism   #unitedkingdom
Post has attachment
Post has attachment
I wrote this: a look at the military equipment Ferguson police are using, and how it could be making the situation worse.

#ferguson   #policemilitarization
Post has shared content
More people need to be like this granddad.
Post has attachment
Help with newcomer to coding and Javascript
Creating a grid of dots

I've decided to start learning how to code, and have settled with taking my first steps with Javascript. The reason is that Javascript is used to write scripts for software I use at work, which can help speed up my workflow.

I've found that OpenTechSchool is starting free training courses in my area, so I'm trying out its intro to Javascript course: http://opentechschool.github.io/js-beginners-4h-workshop-1/page2.html

I have now started on a section about loops. You are required to write a Javascript program that'll draw a 20x20 grid of circle, using the following sandbox page: http://opentechschool.github.io/js-beginners-4h-workshop-1/sandbox/#drawing_loop.js

We're instructed to use two loops, two variables, and that loops can go inside loops.

My idea was to write two loops: one to draw a line of circles, and another to move the origin point up 10 pixels, and for both loops to cut after 19 runs.

This is the code I came up with. All it seems to do is crash its tab (I'm using Chrome for these exercises).

function drawing() {
color("red");
//counts along the horizontal to create the line of circles
var xcount = 0;
//counts vertically to stack the lines
var ycount = 0;
//counts the number of stacked lines, and increases ycount after origin moved.
while (ycount < 20) {
moveTo(0, ycount+10);
ycount +1;
//draws a row of 20 circles, 4 pixels in diameter)
while (xcount < 20) {
circle(xcount * 10, 0, 4);
xcount = xcount + 1;
}
}
}

I've tried various different versions of this code, but I can't get rows to appear: I can get columns or arcs made of circles, but not a grid.

Can anyone suggest where I may be going wrong?

This is the first piece of coding I've attempted in decades. The last time I did coding I used BASIC on my Acorn Electron, and I was 10 years old.
Post has shared content
1. Create A Killer Hovercard: goo.gl/ifDhJW
2. Sharing to Circles vs. Publicly: goo.gl/1qr0YO
4. Share Your G+ Posts on Other SM : goo.gl/QeefiD
5. Report Issues With G+ or Suggest Ideas: goo.gl/FywX2c
6. Create A "Save For Later" Circle: goo.gl/PmBRWf
8. The Various G+ Keyboard Shortcuts : goo.gl/7BaxMs
9. Share Someone Else's G+ Post : goo.gl/DYJo3U
10. Create A Mini Blog on G+: goo.gl/zEVIOM
11. Host A Google+ Hangout: goo.gl/2P0n0Q

15. How To Find Things On G+: goo.gl/rY18uQ
16. Formatting For Beautiful, Engaging Posts: goo.gl/mnfP5d
17. How To Disable Comments & Shares: goo.gl/Bkc6Mp
18. Attract More Comments With Gifs & Image Posts: goo.gl/VGcNhl
19. Start A Conversation With Someone : goo.gl/VXOVmy
20. Create An Event Using G+: goo.gl/IUFmlP
21. Enable Automatic Hash-tagging: goo.gl/MuoV9h
22. Don’t Give Up At The First Hurdle: goo.gl/2zdPQ8
23. The Benefits of Link Shorteners: goo.gl/pwfGXo

More to come...
Post has shared content
One for RPGers of a certain generation.

#RPG
Post has attachment
Painfully accurate and very funny look at independent British films cliches.

#britishfilm   #filmmaking