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
| public class Main { | |
| public static String nestedReplace(String s) { | |
| int nested =0,i=0; | |
| StringBuilder o = new StringBuilder(); | |
| while(i<s.length()) | |
| { | |
| if(nested==0 && s.regionMatches(i,"[yes]",0,4)) | |
| { | |
| o.append("Yes"); |
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> | |
| void main() { | |
| char input[100],l[50],r[50],temp[10],tempprod[20],productions[25][50]; | |
| int i=0,j=0,flag=0,consumed=0; | |
| printf("Enter the productions: "); | |
| scanf("%1s->%s",l,r); | |
| printf("%s",r); | |
| while(sscanf(r+consumed,"%[^|]s",temp) == 1 && consumed <= strlen(r)) { | |
| if(temp[0] == l[0]) { |
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
| ### A program to download wallpapers from alphacoders.com | |
| ###Author: N.V.Pruthvi Raj, Anantapur, India. | |
| ###Date: 23/12/2014 | |
| ###Modified on 1/11/2015 according to the new thumbnail system by the site | |
| import requests,urllib2 | |
| import shutil | |
| import re | |
| import os | |
| from bs4 import BeautifulSoup | |
| url = 'http://wall.alphacoders.com/search.php?search=digital+art&name=Naruto&page=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> | |
| #include<string.h> | |
| void main() { | |
| char input[100],l[50],r[50],temp[10],tempprod[20],productions[25][50]; | |
| int i=0,j=0,flag=0,consumed=0; | |
| printf("Enter the productions: "); | |
| scanf("%1s->%s",l,r); | |
| while(sscanf(r+consumed,"%[^|]s",temp) == 1 && consumed <= strlen(r)) { | |
| if(temp[0] == l[0]) { | |
| flag = 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> | |
| #include<string.h> | |
| int checkState(char ele[20][20],char array[50][3],int arrlength){ | |
| int i; | |
| for(i=0;i<arrlength;i++) | |
| if(strcmp(ele[0],array[i]) ==0) | |
| return i; | |
| return -1; | |
| } | |
| void main(){ |
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> | |
| int mm, frs, p[15], fre1, fre2, fr, i = -1, fre; | |
| int main() | |
| { | |
| char ch; | |
| void insert(); | |
| void del(); | |
| void display(); |
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 "stdafx.h" | |
| #include<stdio.h> | |
| #include<conio.h> | |
| #define true 1 | |
| #define false 0 | |
| int available[10], allocation[10][10], max[10][10], need[10][10], work[10], finish[10], maxres[10], safe[10], req[10], m, n; | |
| int find() | |
| { | |
| int i, 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
| from mutagen.mp3 import MP3 | |
| import subprocess,math | |
| filepath = 'H:/Music/temp/' | |
| filename = 'notafraid.mp3' | |
| a = MP3(filepath + filename) | |
| parts = int(math.ceil(a.info.length / 60)) | |
| for each in range(0,parts): | |
| command = 'ffmpeg -ss {} -i {} -c copy -t {} {}{}'.format(each*60,filepath+filename,60,each,filename) | |
| subprocess.call(command,shell=True) |
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> | |
| <meta charset="utf-8"> | |
| <title>Sample Breakout Game</title> | |
| <style type="text/css" media="screen"> | |
| * | |
| { | |
| padding: 0; | |
| margin: 0; |