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 test | |
| { | |
| public void run() | |
| { | |
| System.out.println("Hello World"); | |
| } | |
| } |
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 Palin | |
| { | |
| public static void main(String args[]) | |
| { | |
| Palin ob = new Palin(); | |
| int max=0;int tmp=0; | |
| for(int i=100;i<999;i++) | |
| { | |
| for(int j=100;j<999;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
| <?php | |
| include βconnection.phpβ; | |
| $query = βSELECT * FROM peopleβ; | |
| $result = mysql_query($query); | |
| while($person = mysql_fetch_array($result)) | |
| { | |
| echo β<h3>β.$person[βNameβ].β</h3>β; | |
| } | |
| echo β<h2>YIPEEE , I finally outputted data from mysql !!</h2>β; | |
| echo βGREAT SUCCESS!!!!!!!!!β; |
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
| def gen_fibo(n): | |
| a,b=0,1 | |
| while(a<n): | |
| print(a,end=' ') | |
| a,b=b,a+b | |
| print() | |
| gen_fibo(100) |
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
| class Student(list): | |
| def __init__(self,a_name,a_age,a_branch,a_pointers): | |
| list.__init__([]) | |
| self.name=a_name | |
| self.age=a_age | |
| self.branch=a_branch | |
| self.append(a_pointers) | |
| def top_pointer(self): | |
| return(sorted(self)[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
| import math | |
| def isprime(n): | |
| for num in range(2,math.floor(math.sqrt(n))+1): | |
| if n%num==0: | |
| return(False) | |
| return(True) | |
| def findfactors(n): |
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 collections | |
| import e3#importing previous pyton file for findfactor() function , sorry for seperating ! | |
| a=e3.findfactors(100)#Called the opther function using namespace | |
| print(a) | |
| counter=collections.Counter(a)#Return a dictionary of frequency of elements in the prime list | |
| pro=1#will store the product of (a+1)*(b+1).. explained in the blog | |
| for each_key in counter: | |
| pro*=(counter[each_key]+1)#Calculate (a+1)*(b+1)*...etc |
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
| package com.company; | |
| public class Main { | |
| public static void main(String[] args) { | |
| // write your code here | |
| System.out.println("Hello world"); | |
| int a []={1,2,3,4}; | |
| for(int i=0;i<a.length;i++) | |
| { |
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
| <link href="../topeka-elements/category-images.html" rel="import"> | |
| <link href="../core-icon/core-icon.html" rel="import"> | |
| <link href="../core-icons/core-icons.html" rel="import"> | |
| <link href="../core-icons/av-icons.html" rel="import"> | |
| <link href="../paper-fab/paper-fab.html" rel="import"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> |
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
| <link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
| <link rel="import" href="../core-input/core-input.html"> | |
| <polymer-element name="my-element"> |
OlderNewer