diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md index b238686..bcf3b9d 100644 --- a/PULL_REQUEST_TEMPLATE.md +++ b/PULL_REQUEST_TEMPLATE.md @@ -1,6 +1,8 @@ -Fixes or introduces: - +:warning: This is a Pull Request Template :warning: +> Checkout all the things you've done by placing an \*x*\ within the square braces. ## Proposed Changes - - - - - +- [ ] I've forked the repository. +- [ ] I've created a branch and made my chagnes in it. +- [ ] I've read the [CODE OF CONDUCT](https://github.com/my-first-pr/hacktoberfest-2018/blob/master/CODE_OF_CONDUCT.md) and abide to it. +- [ ] I've read the [CONTRIBUTING.md](https://github.com/my-first-pr/hacktoberfest-2018/blob/master/CONTRIBUTING.md) +- [ ] I understand opening a PULL REQUEST doesn't mean it will be merged for sure. diff --git a/README.md b/README.md index 4dc9da5..6d09d97 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Open Source Love](https://img.shields.io/badge/Open%20Source-%E2%9D%A4-pink.svg) +![Open Source Love](https://img.shields.io/badge/Open%20Source-%E2%9D%A4-pink.svg) ![First Timers Only](https://img.shields.io/badge/first--timers--only-friendly-blue.svg?style=flat) ![Up For Grabs](https://img.shields.io/badge/up--for--grabs-friendly-green.svg?style=flat) @@ -68,6 +68,16 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - [![twitter-alt][twitter-img]](https://twitter.com/adeonir) [![github-alt][github-img]](https://github.com/adeonir) +### Adhish Anand +- Student, Chitkara University +- Self-taught Developer, Aspiring Entreprenuer +- I am currently work on: + - Android Development + - Python + - Machine Learning +- [![github-alt][github-img]](https://github.com/adhishanand9) + + ### Aditya Choudhary - Software Engineer in India - [![twitter-alt][twitter-img]](https://twitter.com/webmasteradi) @@ -105,6 +115,12 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - [![twitter-alt][twitter-img]](https://twitter.com/alokraj68) [![github-alt][github-img]](https://github.com/alokraj68) +### Ana Carolina Ferreira +- I am a software developer undergraduate student, from Brasil +- Me: Punk Rock, Open Source, Makeup +- [![twitter-alt][twitter-img]](https://twitter.com/anadedavid) + [![github-alt][github-img]](https://github.com/anacdf) + ### Ananya - I'm a junior year student. - I am an Android Developer. I also work on other technologies such as web development using Django and Machine Learning. @@ -245,6 +261,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - [![github-alt][github-img]](https://github.com/TheByteStuff ) [![twitter-alt][twitter-img]](https://twitter.com/thebytestuff) +### Bruno Dulcetti +- I'm a Front-End developer and work with React, React Native, Angular, AngularJS, ES6, CSS3, HTML5, UX and others technologies. +- [![github-alt][github-img]](https://github.com/dulcetti ) + [![twitter-alt][twitter-img]](https://twitter.com/dulcetti) + # C ### Celso Uliana @@ -254,6 +275,12 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - [![github-alt][github-img]](https://github.com/CelsoUliana) [![facebook-alt][facebook-img]](https://www.facebook.com/profile.php?id=100009599017240&ref=bookmarks) +### Chad Ramsey +- Mobile and web services developer. +- Enjoy working in Kotlin. +- Have a sweet spot for retro gaming. +- [![github-alt][github-img]](https://github.com/chadramsey) + ### Charlye - Student of Development of multiplatform applications - Last year. - Working in the Povisa hospital (Programming and systems). @@ -338,6 +365,10 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - Interested in C++ - [![github-alt][github-img]](https://github.com/doom3007) +### Deddy +- Developer wannabe. +- [![github-alt][github-img]](https://github.com/Busterz) + # E ### Elijah Rwothoromo @@ -345,6 +376,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - I love movies, poetry and hangouts. - [![twitter-alt][twitter-img]](https://twitter.com/rwothoromo) [![github-alt][github-img]](https://github.com/rwothoromo) + +### Evgeniy Vasilev +- Software Developer +- I'm a good man. +- [![github-alt][github-img]](https://github.com/johnynsk) # F @@ -359,8 +395,17 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - Nerd, geek, gamer, I love TLoK - [![github-alt][github-img]](https://github.com/frannievas) +### Fabiane Souza +- Software Developer who loves developing web and mobile. Always learning something new. +- My hobbies include... +- [![github-alt][github-img]](https://github.com/fabipriscila) + # G +### Gargi +- I am an Undergraduate . +- I like competitive programming. + ### Gerlis A.C :computer: (@gerlis18) - I am from Colombia. - I am a junior developer Java, Javascript, HTML. @@ -392,6 +437,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - [![twitter-alt][twitter-img]](https://twitter.com/ganeshmajhi) [![github-alt][github-img]](https://github.com/ganeshmajhi) +### Geri Adam +- PHP Developer From Indonesia +- My First Hacktoberfest! +- [![github-alt][github-img]](https://github.com/geriadam) + # H ### Hafpaf @@ -436,6 +486,14 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - [![github-alt][github-img]](https://github.com/longhai18) # I +### Icaro Lima +- I am a Brazilian SI student. +- I like JavaScript and Python. +- [![github-alt][github-img]](https://github.com/icarodgl) + +### Iain Earl +- DevOps Engineer, UK +- [![github-alt][github-img]](https://github.com/itmecho) ### IGC - I am a Spanish CS student and developer. @@ -495,6 +553,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - Learning Golang/Python and very interested in weareables/Fitness Tech - [![github-alt][github-img]](https://github.com/JClutch) +### Jatin Mehta +- Wannabe Web Developer +- I also love Python + [![github-alt][github-img]](https://github.com/Exoceus) + ### Jay Vasant - Python enthusiast. - My hobbies include: @@ -517,11 +580,30 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - I love programming in C - [![github-alt][github-img]](https://github.com/jai37) +### João Canabarro +- I'm a Brazilian SC. +- I love programming in JavaScript and Python. +- [![github-alt][github-img]](https://github.com/jcanabarro) + ### Jack [REDACTED] - I'm a student in the United States - I like developing and doing graphic art! - [![twitter-alt][twitter-img]](https://twitter.com/jvcks0n) + +### John C +- Hackerpreneur +- I teach front end web development +- Learning Elixir/Phoenix +- [![github-alt][github-img]](https://github.com/thejohncotton) + +### João Tavares +- I'm graduated in business management, and now I pursue a carreer as a developer. Hope I can do it :) +- I like doing some stuff on Photoshop and play guitar in my spare time. +- [![facebook-alt][facebook-img]](https://www.facebook.com/joao.coelho.505) +- [![github-alt][github-img]](https://github.com/vtavares11) + + # K ### Kamal Iqlaas @@ -529,6 +611,13 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - Love tech, learn tech, use tech, teach tech. - [![github-alt][github-img]](https://github.com/Iqlaas) +### Kanchan Thareja +- Pursuing Undergraduation in IT. +- Loves coding and dancing. +- [![github-alt][github-img]](https://github.com/KanchanThareja) + + + ### Karen Geerts - I work for REA (https://www.rea-group.com/IRM/content/default.aspx) and am a junior Ruby developer. - [![twitter-alt][twitter-img]](https://twitter.com/GeekRanters) @@ -550,6 +639,12 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - I love playing and making games. - [![github-alt][github-img]](https://github.com/kundan28) +### Kusal Kahaduwa +- I am an undergraduate. +- I love AI, programming and web development. +- I love playing games and waching movies. +- [![github-alt][github-img]](https://github.com/kusalhasintha) + # L ### Lauren Reilly @@ -563,6 +658,10 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - Electrical engineering student - A fair bit rusty in coding, hope to get back into it +### Letícia Maciel +- Computer engineering student at UFPE +- The future is female! + ### Lincoln Anders - 1st year CS major at Georgia Tech - MERN full stack, primary interest in backend APIs @@ -570,10 +669,25 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - [![twitter-alt][twitter-img]](https://twitter.com/lincolnanders5) [![github-alt][github-img]](https://github.com/lincolnanders5) +### Lokesh Raj Arora +- I am a 22 year old self taught web developer, I love working on web technologies +- [![twitter-alt][twitter-img]](https://twitter.com/thatlokiiguy) + [![facebook-alt][facebook-img]](https://facebook.com/lokiiarora) + [![github-alt][github-img]](https://github.com/lokiiarora) + +### Lucas Gomes Flegler +- Bachelor student in information systems and experience with Pentaho suite. +- [![twitter-alt][twitter-img]](https://twitter.com/lukasgf18) + [![github-alt][github-img]](https://github.com/lukasg18) + ### Luis Chaglla - Software Engineer in Spain - [![github-alt][github-img]](https://github.com/lchaglla) +### Luiz Rosa +- I'm a brazilian software developer, IoT enthusiast and currently front-end engineer. I am starting a fresh new project called [JegueCast](https://github.com/luizguilhermefr/JegueCast), a personal _localhost_ video streaming service. +- [![github-alt][github-img]](https://github.com/luizguilhermefr) + ### Luke Oliff - Technical Writer working for @auth0 - [![twitter-alt][twitter-img]](https://twitter.com/mroliff) @@ -592,7 +706,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - I like movies, series, electronic games, board games, RPG and beer. - [![twitter-alt][twitter-img]](https://twitter.com/Magno_Macedo89) [![github-alt][github-img]](https://github.com/magnoDev) - + +### Mahmoud ElHussieni +- R&D Engineer AI Enthusiast . + [![github-alt][github-img]](https://github.com/MElHussieni) + ### Manthan Keim - Bachelor student in Computer Science Engineering at MAIT. - I like movies, TV-series,reading books and listening songs. @@ -605,6 +723,12 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - Bass player, I also love reading, photography and beer. - [![twitter-alt][twitter-img]](https://twitter.com/cynferdd) [![github-alt][github-img]](https://github.com/cynferdd) + +### Maysa Borges +- Graduated in Design, focused on UX and UI Design. +- Hobbist illustrator and photographer. +- [![github-alt][github-img]](https://github.com/maysaborges) + [![facebook-alt][facebook-img]](https://www.facebook.com/maysabgama) ### Md Shahbaz Alam - I'm a Full Stack Developer, Technical Evangelist and Open Source enthusiast. @@ -649,6 +773,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - Like to play with cats. - [![github-alt][github-img]](https://github.com/yudhst) +### Nazaren0k +- I'm studying Software Engineer at IFNTUOG in Ivano-Frankivsk +- [![twitter-alt][twitter-img]](https://twitter.com/OctoFly1) + [![github-alt][github-img]](https://github.com/Nazaren0k) + ### Nelly - I'm a comp sci student in NZ. - [![github-alt][github-img]](https://github.com/NotNelly) @@ -668,6 +797,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - Currently pursuing a PhD scholarship. - [![github-alt][github-img]](https://github.com/MartinNievas) +### Nithyashree Ravishankar +- I am an indie game designer +- My favourite games are Skyrim and MOTHERGUNSHIP +- [![github-alt][github-img]](https://github.com/Nhrkr) + ### Nikhil Shrivastava - I am a student at ILovely Professional University persuingmy B.Tech degree in computer science. - I am very much passionate about programming. @@ -680,6 +814,10 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - I'm a Computer Engineer. - [![github-alt][github-img]](https://github.com/omkar1212) +### Onnys Lopes Menete +- I'm a Computer Engineer/Android Developer. +- [![github-alt][github-img]](https://github.com/Onnys) + # P ### pankhuri22 @@ -715,10 +853,36 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - My favourite programming language is C++ and I'm a sport programmer. - [![github-alt][github-img]](https://github.com/ma5terdrag0n) +### Pijus Rancevas +- Software Engineering student with background in arts. +- Front End dev doing VR/ AR. +- [![github-alt][github-img]](https://github.com/pijusrancevas) + +### Prajwal +- Software Developer. +- First PR! +- [![github-alt][github-img]](https://github.com/prajwalMR) + # Q +### Quang Vũ Nhật +- I'm an Information Security Engineer. +- I'm a back end programmer. +- My current programming language is Python. +- [![github-alt][github-img]](https://github.com/b3g00d) + # R +### Raahel Baig +- Second year CS student at GVP, Vizag. +- Just learned frontend development +- Hobbies: + - Coding + - Writing + - Cooking + - Cricket +- [![github-alt][github-img]](https://github.com/RaahelBa1g) + ### rahman95 - Software Developer born in Germany raised in the UK. 🇩🇪 🇬🇧 - Hobbies include: @@ -804,6 +968,12 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - [![facebook-alt][facebook-img]](https://facebook.com/rohit.kunji) [![github-alt][github-img]](https://github.com/ji-kun) +### Roxana Oanes +- Studying web development +- I am a gym passionate +- I like reading and watching tv series +[![github-alt][github-img]](https://github.com/roxyoanes) + ### Rui Li - Software Engineer in NZ - [![twitter-alt][twitter-img]](https://twitter.com/RuiLi15) @@ -828,6 +998,12 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - Description about me - [![github-alt][github-img]](https://github.com/samyak-sopho) +### Shivam Ralli +- I am an Undergrad. +- I am fascinated by the concept of Machine Learning and AI. +- Apart from such inriguing concepts, I am a big fan of Data Science and reading fiction novels. +- [![github-alt][github-img]](https://github.com/sralli) + ### Shivani Gupta - I'm a computer science student. - I am Interested in Web Development. @@ -845,12 +1021,21 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - :heart: javascript enthusiast - [![github-alt][github-img]](https://github.com/shotozuro) +### Showndarya Madhavan +- Final year student pursuing Computer Enginneering. +- I love to code and am a Sci-Fi fan. +- [![github-alt][github-img]](https://github.com/Showndarya) + ### Shubham Nishad - Fourth year student in Computer Science. - you can check my site [https://shubhamnishad.com/](https://shubhamnishad.com/) - [![twitter-alt][twitter-img]](https://twitter.com/shubhamnishad97) [![github-alt][github-img]](https://github.com/shubhamnishad97) +### Shubham Patil +- Python-Django, Java, C++ +- [![github-alt][github-img]](https://github.com/shubham76) + ### Shweta Goyal - Computer Science Graduate - [![github-alt][github-img]](https://github.com/Shwetago) @@ -860,6 +1045,18 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - Engineer at heart, if it isn't broken, break it! - [![github-alt][github-img]](https://github.com/slouchd) +### Souvik Maji +- Full Stack Web Dev +- Check out my twitter bot below +- [![twitter-alt][twitter-img]](https://twitter.com/QuotebotMaster) +- [![github-alt][github-img]](https://github.com/souvikmaji) + +### Sofrie +- I'm a fullstack web developer +- currently work in e-commerce +- My hobbies include reading, watch movies, draw and sleeping +- [![github-alt][github-img]](https://github.com/sofrie) + ### Srishty Mittal - I'm a contributor and web developer - I study Electronics and Communication Engineering @@ -893,6 +1090,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - I Love Gaming and Coding - [![github-alt][github-img]](https://github.com/TheNoodleMoose) +### Thereatra +- IT student +- New to coding +- [![github-alt][github-img]](https://github.com/Thereatra) + ### Thomas Kulmbach (D0Tch) - Webdeveloper working in Denmark - [![github-alt][github-img]](https://github.com/d0tch) @@ -922,6 +1124,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - [![twitter-alt][twitter-img]](https://twitter.com/caomuss) [![github-alt][github-img]](https://github.com/caomus) +### Tor Morten Jensen +- 29 year old full-stack developer living and working in Norway. +- [![twitter-alt][twitter-img]](https://twitter.com/tormorten) + [![github-alt][github-img]](https://github.com/tormjens) + # U ### Utkarsh Kunwar @@ -958,12 +1165,23 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU - [![twitter-alt][twitter-img]](https://twitter.com/vaibhav_a1997) [![github-alt][github-img]](https://github.com/vaibhavagarwal220) +### VaultVulp +- Developer, Team Lead, Farther +- [Blog](https://www.vaultvulp.tk/) +- [![github-alt][github-img]](https://github.com/VaultVulp) + ### Vidushi Jain - I'm a computer science student - Interested in app development - I love coding. - [![github-alt][github-img]](https://github.com/VidushiJain30) +### Vinod J +- I'm a Software Engineer, working in a startup company +- Frontend developer +- [![github-alt][github-img]](https://github.com/VinodVJ) +- [![twitter-alt][twitter-img]](https://twitter.com/Vinod70474537) + ### Vishal Anand - Student - Programmer @@ -997,6 +1215,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU [![github-alt][github-img]](https://github.com/DRXDesign) [![dribbblegit status-alt][dribbble-img]](https://dribbble.com/DRXDesign) +### Zornitsa Asanska +- I am a first year university student and those are my first steps in GitHub. +- I love Mathematics, good food and OOP. I am currently studying Haskell, my first functional programming language. +- [![github-alt][github-img]] (https://github.com/ZornitsaAsanska) + ------------ ## Copyright diff --git a/code/Aditya1.c b/code/Aditya1.c new file mode 100644 index 0000000..bb4ee12 --- /dev/null +++ b/code/Aditya1.c @@ -0,0 +1,52 @@ +#include + +void swap(int* a, int* b) +{ + int t = *a; + *a = *b; + *b = t; +} + +int partition (int arr[], int low, int high) +{ + int pivot = arr[high]; + int i = (low - 1); + + for (int j = low; j <= high- 1; j++) + { + if (arr[j] <= pivot) + { + i++; + swap(&arr[i], &arr[j]); + } + } + swap(&arr[i + 1], &arr[high]); + return (i + 1); +} + +void quickSort(int arr[], int low, int high) +{ + if (low < high) + { + int pi = partition(arr, low, high); + quickSort(arr, low, pi - 1); + quickSort(arr, pi + 1, high); + } +} +void printArray(int arr[], int size) +{ + int i; + for (i=0; i < size; i++) + printf("%d ", arr[i]); + printf("n"); +} + +int main() +{ + int arr[] = {10, 7, 8, 9, 1, 5}; + int n = sizeof(arr)/sizeof(arr[0]); + quickSort(arr, 0, n-1); + printf("Sorted array: n"); + printArray(arr, n); + return 0; +} diff --git a/code/Apostropheqq.cpp b/code/Apostropheqq.cpp new file mode 100644 index 0000000..0af78b4 --- /dev/null +++ b/code/Apostropheqq.cpp @@ -0,0 +1,21 @@ +#include +using namespace std; +void reverse(const string& a); +int main() +{ +string str; +cout << " Please enter a string " << endl; +getline(cin, str); +reverse(str); +return 0; +} +void reverse(const string& str) +{ +size_t numOfChars = str.size(); +if(numOfChars == 1) +cout << str << endl; +else + { +cout << str[numOfChars - 1]; + reverse(str.substr(0, numOfChars - 1)); + } diff --git a/code/Exoceus.py b/code/Exoceus.py new file mode 100644 index 0000000..4d2c4cf --- /dev/null +++ b/code/Exoceus.py @@ -0,0 +1,4 @@ +name = 'Jatin Mehta' +greeting = "Hello World, I am " + +print(greeting, name) diff --git a/code/Harrish-Selvarajah.py b/code/Harrish-Selvarajah.py new file mode 100644 index 0000000..7df869a --- /dev/null +++ b/code/Harrish-Selvarajah.py @@ -0,0 +1 @@ +print("Hello, World!") diff --git a/code/HelloWorld_anacdf.java b/code/HelloWorld_anacdf.java new file mode 100644 index 0000000..828afbf --- /dev/null +++ b/code/HelloWorld_anacdf.java @@ -0,0 +1,9 @@ +// LANGUAGE: Java +// AUTHOR: Ana Carolina +// GITHUB: https://github.com/anacdf + +public class HelloWorld { + public static void main(String[] args) { + System.out.print("Hello, World"); + } +} \ No newline at end of file diff --git a/code/ZornitsaAsanska.hs b/code/ZornitsaAsanska.hs new file mode 100644 index 0000000..fb4d683 --- /dev/null +++ b/code/ZornitsaAsanska.hs @@ -0,0 +1,14 @@ +--First steps in Higher Order Functions + +divideByTen :: (Floating a) => a -> a +divideByTen = (/10) + +divideTenBy :: (Floating a) => a -> a +divideTenBy = (10/) + +subtractFour :: (Num a) => a -> a +subtractFour = (subtract 4) +--subtract a b returns b-a +-- subtract :: Num a => a -> a -> a +--subtract a returns (a -> a) - a function that takes one parameter and subtracts the already given one from it + diff --git a/code/adhishanand9.cpp b/code/adhishanand9.cpp new file mode 100644 index 0000000..20ea2ea --- /dev/null +++ b/code/adhishanand9.cpp @@ -0,0 +1,31 @@ +#include +#include +#include +#include +using namespace std; +class GoodString +{ + int t; +public: + GoodString(int x) + { + t=x; + } + + void newstring(string str) + { + for(int i=0;i>n; + GoodString ob(n); + string str; + getchar(); + getline(cin,str); + ob.newstring(str); + return 0; +} diff --git a/code/aka4rKO.boo b/code/aka4rKO.boo new file mode 100644 index 0000000..4351743 --- /dev/null +++ b/code/aka4rKO.boo @@ -0,0 +1 @@ +print "Hello, world!" diff --git a/code/aka4rKO.exe b/code/aka4rKO.exe new file mode 100644 index 0000000..5fe9148 --- /dev/null +++ b/code/aka4rKO.exe @@ -0,0 +1,53 @@ +// C# implementation of recursive Binary Search +using System; + +class GFG +{ + // Returns index of x if it is present in + // arr[l..r], else return -1 + static int binarySearch(int []arr, int l, + int r, int x) + { + if (r >= l) + { + int mid = l + (r - l)/2; + + // If the element is present at the + // middle itself + if (arr[mid] == x) + return mid; + + // If element is smaller than mid, then + // it can only be present in left subarray + if (arr[mid] > x) + return binarySearch(arr, l, mid-1, x); + + // Else the element can only be present + // in right subarray + return binarySearch(arr, mid+1, r, x); + } + + // We reach here when element is not present + // in array + return -1; + } + + // Driver method to test above + public static void Main() + { + + int []arr = {2, 3, 4, 10, 40}; + int n = arr.Length; + int x = 10; + + int result = binarySearch(arr, 0, n-1, x); + + if (result == -1) + Console.WriteLine("Element not present"); + else + Console.WriteLine("Element found at index " + + result); + } +} + +// This code is contributed by Sam007. diff --git a/code/aka4rKO.java b/code/aka4rKO.java new file mode 100644 index 0000000..edfea5f --- /dev/null +++ b/code/aka4rKO.java @@ -0,0 +1,48 @@ + +// Java implementation of recursive Binary Search +class BinarySearch +{ + // Returns index of x if it is present in arr[l.. + // r], else return -1 + int binarySearch(int arr[], int l, int r, int x) + { + if (r>=l) + { + int mid = l + (r - l)/2; + + // If the element is present at the + // middle itself + if (arr[mid] == x) + return mid; + + // If element is smaller than mid, then + // it can only be present in left subarray + if (arr[mid] > x) + return binarySearch(arr, l, mid-1, x); + + // Else the element can only be present + // in right subarray + return binarySearch(arr, mid+1, r, x); + } + + // We reach here when element is not present + // in array + return -1; + } + + // Driver method to test above + public static void main(String args[]) + { + BinarySearch ob = new BinarySearch(); + int arr[] = {2,3,4,10,40}; + int n = arr.length; + int x = 10; + int result = ob.binarySearch(arr,0,n-1,x); + if (result == -1) + System.out.println("Element not present"); + else + System.out.println("Element found at index " + + result); + } +} +/* This code is contributed by Rajat Mishra */ diff --git a/code/aka4rKO.py b/code/aka4rKO.py new file mode 100644 index 0000000..6fe0324 --- /dev/null +++ b/code/aka4rKO.py @@ -0,0 +1,40 @@ + +# Python Program for recursive binary search. + +# Returns index of x in arr if present, else -1 +def binarySearch (arr, l, r, x): + + # Check base case + if r >= l: + + mid = l + (r - l)/2 + + # If element is present at the middle itself + if arr[mid] == x: + return mid + + # If element is smaller than mid, then it + # can only be present in left subarray + elif arr[mid] > x: + return binarySearch(arr, l, mid-1, x) + + # Else the element can only be present + # in right subarray + else: + return binarySearch(arr, mid+1, r, x) + + else: + # Element is not present in the array + return -1 + +# Test array +arr = [ 2, 3, 4, 10, 40 ] +x = 10 + +# Function call +result = binarySearch(arr, 0, len(arr)-1, x) + +if result != -1: + print "Element is present at index %d" % result +else: + print "Element is not present in array" diff --git a/code/ashish010598.cpp b/code/ashish010598.cpp new file mode 100644 index 0000000..600a5e1 --- /dev/null +++ b/code/ashish010598.cpp @@ -0,0 +1,42 @@ + +// C program for implementation of Bubble sort +#include + +void swap(int *xp, int *yp) +{ + int temp = *xp; + *xp = *yp; + *yp = temp; +} + +// A function to implement bubble sort +void bubbleSort(int arr[], int n) +{ + int i, j; + for (i = 0; i < n-1; i++) + + // Last i elements are already in place + for (j = 0; j < n-i-1; j++) + if (arr[j] > arr[j+1]) + swap(&arr[j], &arr[j+1]); +} + +/* Function to print an array */ +void printArray(int arr[], int size) +{ + int i; + for (i=0; i < size; i++) + printf("%d ", arr[i]); + printf("n"); +} + +// Driver program to test above functions +int main() +{ + int arr[] = {64, 34, 25, 12, 22, 11, 90}; + int n = sizeof(arr)/sizeof(arr[0]); + bubbleSort(arr, n); + printf("Sorted array: \n"); + printArray(arr, n); + return 0; +} diff --git a/code/b3g00d.py b/code/b3g00d.py new file mode 100644 index 0000000..3ae150e --- /dev/null +++ b/code/b3g00d.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- + +vn_greeting = u"Xin chào!" +en_greeting = "Hello!" + +if __name__ == "__main__": + try: + print((">>> print(meaning(\"{}\") == meaning(\"{}\"))").format( + vn_greeting, en_greeting)) + except Exception: + print((">>> print(meaning(\"{}\") == meaning(\"{}\"))").format( + vn_greeting.encode("utf-8"), en_greeting)) + + print(True) diff --git a/code/binary.py b/code/binary.py new file mode 100644 index 0000000..4e63bbf --- /dev/null +++ b/code/binary.py @@ -0,0 +1,34 @@ +def binarySearch(arr, l, r, x): + + while l <= r: + + mid = l + (r - l)//2; + + # Check if x is present at mid + if arr[mid] == x: + return mid + + # If x is greater, ignore left half + elif arr[mid] < x: + l = mid + 1 + + # If x is smaller, ignore right half + else: + r = mid - 1 + + # If we reach here, then the element + # was not present + return -1 + + +# Test array +arr = [ 2, 3, 4, 10, 40 ] +x = 10 + +# Function call +result = binarySearch(arr, 0, len(arr)-1, x) + +if result != -1: + print ("Element is present at index ",result) +else: + print ("Element is not present in array") diff --git a/code/chadramsey.kt b/code/chadramsey.kt new file mode 100644 index 0000000..e73d5db --- /dev/null +++ b/code/chadramsey.kt @@ -0,0 +1 @@ +fun main(args : Array) { println("Hello, Hacktoberfest 2018!") } diff --git a/code/closestpairofpoints.cpp b/code/closestpairofpoints.cpp new file mode 100644 index 0000000..ed5f2de --- /dev/null +++ b/code/closestpairofpoints.cpp @@ -0,0 +1,188 @@ +#include +#include +#include +#include +#include +using namespace std; +float xfirstx; +float yfirsty; +float xsecondx; +float ysecondy; +class mymath{ +public: + float mysqrt(const float x){ + const double prec=0.00001; + float low,high,anstry; + if (x < 1){ + low = x; + high = 1; + } + else{ + low = 1; + high = x; + } + while ((high-low) > prec){ + anstry = (low+high)/2; + if(anstry*anstry>x) + high=anstry; + else + low=anstry; + } + return (low + high)/2; + } +}; +class points{ + float x; + float y; +public: + float showx(){ + return x; + } + float showy(){ + return y; + } + void setx(float in){ + x=in; + } + void sety(float in){ + y=in; + } + int xpartition(points arr[],int p,int q){ + int k=p; + for(int i=p+1;i<=q;i++){ + if(arr[i].showx()>n; +points input[n],xsorted[n],ysorted[n]; +// srand(time(NULL)); +for(int i=0;i Hello, world!
Hello, HacktoberFest!

+Welcome!!! About me \ No newline at end of file diff --git a/code/kathylambert.html b/code/kathylambert.html new file mode 100644 index 0000000..fecdf31 --- /dev/null +++ b/code/kathylambert.html @@ -0,0 +1,62 @@ + + + + + Kathy Lambert Hacktoberfest 2018 Profile + + + + + + + + + +

Kathy Lambert

+

Software Developer | Project Manager | Web Designer

+ +
    +
  • I am an intellectually curious individual with an insatiable desire to understand.
  • +
  • I utilize my diverse background, experiences, and skills to help me be resourceful, organized and forward-thinking.
  • +
  • I am actively looking for my first developer position post graduation from General Assembly's bootcamp.
  • +
  • I ❤️ making the world beautiful one line of code at a time.
  • +
+ +

Get to know me better => + + + + + + + + + + + + + + + + +

+ + + + + + + diff --git a/code/laksh-ayy.html b/code/laksh-ayy.html new file mode 100644 index 0000000..be9f0b2 --- /dev/null +++ b/code/laksh-ayy.html @@ -0,0 +1,41 @@ + + + + + Landing Page + + +
+

Welcome to the Landing Page!!

+

We're a start up that does something

+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+
+

Sign Up for an upcoming project!

+
+
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+
+
+
+ + diff --git a/code/lokesh.purs b/code/lokesh.purs new file mode 100644 index 0000000..4090507 --- /dev/null +++ b/code/lokesh.purs @@ -0,0 +1,4 @@ +import Prelude +import Effect.Console (log) + +main = log("Hello World!") \ No newline at end of file diff --git a/code/mergeSort.cpp b/code/mergeSort.cpp new file mode 100644 index 0000000..3750274 --- /dev/null +++ b/code/mergeSort.cpp @@ -0,0 +1,60 @@ +#include +using namespace std ; + +void merge(int arr[], int l, int m , int r){ + int n1 = m-l+1; + int n2 = r-m ; + int L[n1]; + int R[n2]; + for (int i = 0; i < n1; i++) + L[i] = arr[l + i]; + for (int j = 0; j < n2; j++) + R[j] = arr[m + 1+ j]; + int i =0, j= 0 , k=l ; + while(i= num2) and (num1 >= num3): + largest = num1 +elif (num2 >= num1) and (num2 >= num3): + largest = num2 +else: + largest = num3 + +print("The largest number between",num1,",",num2,"and",num3,"is",largest) diff --git a/code/vakeeshanvictor.pal b/code/vakeeshanvictor.pal new file mode 100644 index 0000000..a25b610 --- /dev/null +++ b/code/vakeeshanvictor.pal @@ -0,0 +1,13 @@ +Program Lesson1_Program3; +Var + Num1, Num2, Sum : Integer; + +Begin {no semicolon} + Write('Input number 1:'); + Readln(Num1); + Writeln('Input number 2:'); + Readln(Num2); + Sum := Num1 + Num2; {addition} + Writeln(Sum); + Readln; +End. diff --git a/code/vakeeshanvictor.php b/code/vakeeshanvictor.php new file mode 100644 index 0000000..6daf97f --- /dev/null +++ b/code/vakeeshanvictor.php @@ -0,0 +1,12 @@ + + + + +

My first PHP page

+ + + + + diff --git a/code/vakeeshanvictor.py b/code/vakeeshanvictor.py new file mode 100644 index 0000000..c9f7483 --- /dev/null +++ b/code/vakeeshanvictor.py @@ -0,0 +1,22 @@ +import datetime +now = datetime.datetime.now() +print "-" * 25 +print now +print now.year +print now.month +print now.day +print now.hour +print now.minute +print now.second + +print "-" * 25 +print "1 week ago was it: ", now - datetime.timedelta(weeks=1) +print "100 days ago was: ", now - datetime.timedelta(days=100) +print "1 week from now is it: ", now + datetime.timedelta(weeks=1) +print "In 1000 days from now is it: ", now + datetime.timedelta(days=1000) + +print "-" * 25 +birthday = datetime.datetime(2012,11,04) + +print "Birthday in ... ", birthday - now +print "-" * 25