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
| [ | |
| { name: "Afghanistan" }, | |
| { name: "Albania" }, | |
| { name: "Algeria" }, | |
| { name: "Andorra" }, | |
| { name: "Angola" }, | |
| { name: "Antigua and Barbuda" }, | |
| { name: "Argentina" }, | |
| { name: "Armenia" }, | |
| { name: "Australia" }, |
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.io.*; | |
| import java.util.*; | |
| public class RemoveDuplicates{ | |
| public static void main(String []args){ | |
| String s = "aabnsbsbsssbbsbsbs"; | |
| char[] characters = s.toCharArray(); | |
| Set<Character> newSet = new LinkedHashSet<Character>(); |
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 ReverseString{ | |
| public static void main(String []args){ | |
| String myString = "this is the test"; | |
| System.out.println(reverse(myString)); | |
| } | |
| public static String reverse(String str){ | |
| System.out.println("Original Length " + str.length()); | |
| char[] data = str.toCharArray(); |
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 ReverseString{ | |
| public static void main(String []args){ | |
| String myString = "this is the test"; | |
| System.out.println(reverse(myString)); | |
| } | |
| public static String reverse(String str){ | |
| System.out.println("Original Length " + str.length()); | |
| char[] data = str.toCharArray(); |
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
| **This is the new best way to upgrade npm on Windows.** | |
| **Run PowerShell as Administrator** | |
| Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force | |
| npm install -g npm-windows-upgrade | |
| npm-windows-upgrade | |
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 | |
| $encrypted_password = 'ENCRYPTED_PASSWORD_HERE'; | |
| $key = 'KEY_FROM_CONFIG_FILE_HERE'; | |
| $decrypted_string = $this->encrypt->decode($encrypted_password, $key); | |
| echo $decrypted_string; | |
| ?> |
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
| #Enable Keep-Alive | |
| #Keep alive is a method to allow the same tcp connection for HTTP conversation instead of opening a new one with each new request. | |
| #More simply put, it is a communication between the web server and the web browser that says "you can grab more than just one file at a time". | |
| #Keep alive is also known as a persistant connection | |
| <IfModule mod_headers.c> | |
| Header set Connection keep-alive | |
| </IfModule> | |
| #Enable gzip |
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
| Links to help get stock market data: | |
| http://finance.google.com/finance/info?client=ig&q=NASDAQ%3AGOOG | |
| Using Google API:http://digitalpbk.com/stock/google-finance-get-stock-quote-realtime | |
| External Website: https://www.quandl.com/ |
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
| <html> | |
| <head> | |
| <!-- just any other regular html tag --> | |
| <title>Vue Demo App with v-if & v-else directives</title> | |
| <!-- Fetch vue.js from the following library --> | |
| <!-- Other alternatives are to download the original library from https://vuejs.org/ --> | |
| <script src="https://unpkg.com/vue"></script> | |
| <style> | |
| #app { | |
| font-family: 'Montserrat', Helvetica, Arial, sans-serif; |
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
| <html> | |
| <head> | |
| <!-- just any other regular html tag --> | |
| <title>Vue Demo App with v-show directive</title> | |
| <!-- Fetch vue.js from the following library --> | |
| <!-- Other alternatives are to download the original library from https://vuejs.org/ --> | |
| <script src="https://unpkg.com/vue"></script> | |
| <style> | |
| #app { | |
| font-family: 'Montserrat', Helvetica, Arial, sans-serif; |