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"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style> | |
| body { | |
| background-color: #00A6A6; | |
| color: #BBDEF0; |
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
| /* json.dumps(StatusObject._json) */ | |
| { | |
| "created_at": "Thu Jul 28 00:08:39 +0000 2016", | |
| "in_reply_to_status_id": null, | |
| "id_str": "758454081656467456", | |
| "retweeted": false, | |
| "entities": { | |
| "hashtags": [ | |
| { |
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 name="description" content="Calculator using vuejs for freeCodeCamp"> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.3/vue.js"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.99.0/css/materialize.min.css"> | |
| <title>Calculator</title> | |
| <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
| function chunkArrayInGroups(arr, size) { | |
| // Break it up. | |
| var times = arr.length / size; | |
| console.log(times); | |
| var f = 0, e = size; | |
| var narr = []; | |
| for(var i=0; i<times; i++){ | |
| narr.push ( arr.slice(f, e) ); | |
| f = e; |
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
| function confirmEnding(str, target) { | |
| // "Never give up and good luck will find you." | |
| // -- Falcor | |
| if(target.length == 1) return str.substr(-1) == target; | |
| else{ | |
| boo = str.split(" ").reverse()[0].includes(target); | |
| console.log( boo ); | |
| return boo; | |
| } |
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
| function largestOfFour(arr) { | |
| // You can do this! | |
| // Override Array Object | |
| Array.prototype.max = function(){ | |
| piv = 0 | |
| this.forEach((n)=>{ | |
| if(piv<n ) { | |
| piv = 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
| <html> | |
| <head> | |
| <title>You have things left to do..</title> | |
| <script src="https://unpkg.com/vue/dist/vue.js"></script> | |
| <script src="https://cdn.jsdelivr.net/vue.resource/1.0.3/vue-resource.min.js"></script> | |
| <link href="https://fonts.googleapis.com/css?family=Nunito+Sans:200" rel="stylesheet"> | |
| <style> | |
| body{ | |
| font-family: 'Nunito Sans', sans-serif; | |
| background-color:#252627; |
NewerOlder