This file contains hidden or 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
| import turtle | |
| turtle = turtle.Turtle() | |
| radius = input("Input radius of circle(Ideally it's 200): ") | |
| turtle.penup() | |
| turtle.right(90) | |
| turtle.forward(radius) | |
| turtle.right(270) | |
| turtle.pendown() | |
| turtle.circle(radius) |
This file contains hidden or 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 x = document.getElementsByClassName("uiButton _1sm"); | |
| var i = 0; | |
| var time = setInterval( | |
| function(){ | |
| i++; | |
| x[i].click(); | |
| startTime(); | |
| if(i<100) //Autoscroll | |
| { | |
| window.scrollTo(0,document.body.scrollHeight); |
This file contains hidden or 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
| #include<stdio.h> | |
| # define INF 999999 | |
| int vertices,edges; | |
| int check(int queue[vertices]) | |
| { | |
| int i; | |
| for(i=0;i<vertices;i++) | |
| { | |
| if(queue[i]==1) |
This file contains hidden or 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
| #include<stdio.h> | |
| # define INF 999999 | |
| int vertices,edges; | |
| void floydWarshall(int graph[vertices][vertices],int vertices) | |
| { | |
| int k,i,j; | |
| int distance[vertices][vertices]; | |
| for(i=0;i<vertices;i++) | |
| { | |
| for(j=0;j<vertices;j++) |
This file contains hidden or 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
| import re | |
| fo = open("follower.txt", "rw+") | |
| final = " " | |
| i=0 | |
| num_of_lines =len(fo.readlines()) | |
| fo.seek(0, 0) | |
| while i<num_of_lines: | |
| line = fo.readline() | |
| #print line | |
| final =final + re.sub(r'\d+:',' ',line) |
This file contains hidden or 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
| //Takes out twitter handle of all your followers | |
| var x = document.getElementsByClassName("u-linkComplex-target"); | |
| var i = 0; | |
| var followers_handle = ["iam_kartikmaji"] | |
| var following_counter = 1; | |
| var time = setInterval( | |
| function(){ | |
| i++; | |
| followers_handle[followers_handle.length] = x[i].innerText; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Trippy Design 1</title> | |
| </head> | |
| <body> | |
| <canvas id="myCanvas" width="400" height="400" style="border:1px solid #000000; position: absolute;"> | |
| </canvas> | |
| <script> | |
| var canvas = document.getElementById("myCanvas"); |
This file contains hidden or 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
| import java.awt.Image; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import javax.imageio.ImageIO; | |
| import org.apache.commons.io.FileUtils; | |
| public class MyProfilePicture { | |
| public static int num; | |
| public static void main(String[] args) throws IOException |
This file contains hidden or 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
| #include<stdio.h> | |
| #include<string.h> | |
| int main() | |
| { | |
| char s[10000]; | |
| int a[26]={0}; | |
| int i; | |
| int count=1; | |
| scanf("%s",s); | |
| for(i=0;i<strlen(s);i++) |