This Gist was automatically created by Carbide, a free online programming environment.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setup() { | |
createCanvas(500,500) //let’s create a 500x500 pixels artboard to draw in | |
} | |
draw() { | |
line(0,0,100,100) //let’s draw a line that starts from 0,0 and ends in 100,100 | |
line(100,100,0,0) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("._34Ym5").append("<span class='_34Ym5' style='color:green!important;'>"+$("._7q434").value+"</span>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id | date | text | |
---|---|---|---|
880639547134156801 | 2017-06-30 04:10:04 | @GuyMontag1983 @MLB @Padres I am | |
880638795644895233 | 2017-06-30 04:07:05 | @atf13atf Awww you're upset. This is adorable | |
880635268520439809 | 2017-06-30 03:53:04 | @MLB @Padres Although I can confirm this particular rating, please make sure all future ratings are run by us first. Thank you | |
880491445148372992 | 2017-06-29 18:21:33 | OH MY GOODNESS I HOPE HE KNOWS THE WHOLE PERFORMANCE IS FOR HIM. 13/10 FOR MUSICALLY COHERENT GOOD BOY https://t.co/jfXqCVIWIP | |
880465832366813184 | 2017-06-29 16:39:47 | This is Bella. She had her first beach experience this morning. Complete success. 12/10 would perform a sandy boop https://t.co/4VsFysDmiw | |
880448805430333442 | 2017-06-29 15:32:07 | RT @UploadVR: AR's killer app might just be Dogmented Reality - https://t.co/9ERpCZdRPS https://t.co/MXxqwxSLYJ | |
880398125948653568 | 2017-06-29 12:10:44 | @GlasgowAlumni @UofGlasgow OMG LOKI DESERVES EVERYTHING TBH GLASGOW | |
880390422585069568 | 2017-06-29 11:40:08 | @FeastsOnBrains PICKLES OMG I HOPE YOU ENJO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:void function(e)%7Bvar a%3Dfunction(e)%7Be("html,body").animate(%7BscrollTop:e("._2SEng").offset().top-80%7D,"slow")%7D,o%3De%26%26e.fn%26%26parseFloat(e.fn.jquery)>%3D1.7%3Bif(o)a(e)%3Belse%7Bvar t%3Ddocument.createElement("script")%3Bt.src%3D"//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js",t.onload%3Dt.onreadystatechange%3Dfunction()%7Bvar e%3Dthis.readyState%3Be%26%26"loaded"!%3D%3De%26%26"complete"!%3D%3De%7C%7Ca(jQuery.noConflict())%7D%7Ddocument.getElementsByTagName("head")%5B0%5D.appendChild(t)%7D(window.jQuery)%3B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fetchJSON( url ) { | |
var request = NSMutableURLRequest.new(); | |
[request setHTTPMethod:@"GET"]; | |
[request setURL:[NSURL URLWithString:url]]; | |
var error = NSError.new(); | |
var responseCode = null; | |
var oResponseData = [NSURLConnection sendSynchronousRequest:request returningResponse:responseCode error:error]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tryParseJSON (jsonString){ | |
try { | |
var o = JSON.parse(jsonString); | |
// Handle non-exception-throwing cases: | |
// Neither JSON.parse(false) or JSON.parse(1234) throw errors, hence the type-checking, | |
// but... JSON.parse(null) returns 'null', and typeof null === "object", | |
// so we must check for that, too. | |
if (o && typeof o === "object" && o !== null) { | |
return o; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//color palette from https://klart.co/colors/59c774786fb55d3948befd3b | |
var colors = ["#246A9E","#8BB3C8","#9E5C71","#FC9C78","#F1F2F9"]; | |
var colIdx = 0; | |
var angle = 0; | |
var maxDist = 0; | |
var diam = 8; | |
var rate = 0.13; | |
var chance = 0.75; | |
function setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var angles = [ 30, 10, 45, 35, 60, 38, 75, 67 ]; | |
function setup() { | |
createCanvas(400, 300); | |
noStroke(); | |
} | |
function draw() { | |
background(0); | |
pieChart(250, angles); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(400, 300); | |
} | |
function draw() { | |
background(0,0,0); | |
stroke(255,255,255); | |
line(0,0,200,150); | |
} |
OlderNewer