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
| // Fix for validations on simple form | |
| // Need to import bootstrap functions and mixins if you want to dynamically set colors | |
| // Otherwise replace theme-color... with hex color | |
| @import 'bootstrap/functions'; | |
| @import 'bootstrap/variables'; | |
| @import 'bootstrap/mixins'; | |
| .has-invalid { | |
| .invalid-feedback { |
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
| // Alerts | |
| @include alert-variant($background, $border, $text-color); | |
| // Background Variant | |
| @include bg-variant($parent, $color); | |
| // Border Radius | |
| @include border-top-radius($radius); | |
| @include border-right-radius($radius); | |
| @include border-bottom-radius($radius); |
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
| var client = {}; | |
| client.run = function (options) { | |
| options = options || {}; | |
| var socket = io.connect(options.remote || "http://localhost:8080"); | |
| socket.on('connect', function() { | |
| var term = new Terminal({ |
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
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |
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
| Comment in Gemfile: | |
| # Use SCSS for stylesheets | |
| # gem 'sass-rails', '~> 4.0.0' | |
| # Use Uglifier as compressor for JavaScript assets | |
| # gem 'uglifier', '>= 1.3.0' | |
| # Use CoffeeScript for .js.coffee assets and views | |
| # gem 'coffee-rails', '~> 4.0.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
| <?php | |
| $result = array(); | |
| $result_html = ''; | |
| if (isset($_POST['domain']) && !empty($_POST['domain'])) { | |
| $domain_regex = '/[a-z\d][a-z\-\d\.]+[a-z\d]/i'; | |
| if (preg_match($domain_regex, $_POST['domain'])) { | |
| if ($url = parse_url($_POST['domain'])) { //compatible when user post an url instead of a domain | |
| if (isset($url['host'])) { | |
| $result = dns_get_record($url['host'], DNS_A + DNS_AAAA + DNS_CNAME); | |
| } else if (isset($url['path'])) { |