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
| // Load the TCP Library | |
| net = require('net'); | |
| // Keep track of the chat clients | |
| var clients = []; | |
| // Start a TCP Server | |
| net.createServer(function (socket) { | |
| // Identify this client |
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
| <template> | |
| <div id="app"> | |
| <p> | |
| Pending: {{ $store.state.getInfoPending }} | |
| </p> | |
| <p> | |
| {{ $store.state.getInfoData }} | |
| </p> | |
| </div> | |
| </template> |
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
| #! /usr/bin/python | |
| instdata_host = "169.254.169.254" | |
| instdata_ver = "2009-04-04" | |
| instdata_url = "http://%s/%s" % (instdata_host, instdata_ver) | |
| __doc__ = """ | |
| Query and display EC2 metadata. | |
| If no options are provided, all options will be displayed |
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
| #!/bin/bash | |
| export PATH=$PATH:/usr/local/bin/:/usr/bin | |
| # Safety feature: exit script if error is returned, or if variables not set. | |
| # Exit if a pipeline results in an error. | |
| set -ue | |
| set -o pipefail | |
| ## Automatic S3 Sync Script | |
| # Syncs directories and S3 prefixes. |
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
| #!/usr/bin/php -q | |
| <?php | |
| date_default_timezone_set('UCT'); | |
| $dryrun = FALSE; | |
| $interval = '24 hours'; | |
| $keep_for = '10 Days'; | |
| $volumes = array('vol-9677d14a'); | |
| $api_key = 'AKI****EYUA'; | |
| $api_secret = 'IzMni****ct'; |
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
| +-----------+----------+---------+-------------+------------+-------------------+ | |
| | Framework | Lines | Longest | Average | Maximum | Percentage of | | |
| | name | of | method | method | method | methods that are | | |
| | | code | | complexity | complexity | non-static | | |
| +-----------+----------+---------+-------------+------------+-------------------+ | |
| | Laravel | 54,398 | 13 | 1.62 | 17 | 94.81% | | |
| | Symfony | 118,636 | 136 | 2.72 | 155 | 97.09% | | |
| | Zend | 55,904 | 73 | 2.76 | 53 | 93.55% | | |
| | Cake | 62,860 | 56 | 3.30 | 75 | 89.87% | | |
| | Slim | 4,127 | 26 | 2.40 | 13 | 96.58% | |