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/ruby | |
require 'pp' | |
def mtab_look | |
mtab_filepaths = [] | |
mtab = File.open("/etc/mtab", 'r').read | |
mtab.split("\n").each do |x| | |
unless x.match(/.\z/).to_s.include?("0") | |
mtab_filepaths << x.match(/\/\S*/).to_s |
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
require 'pp' | |
def mtab_look | |
mtab_filepaths = [] | |
mtab = File.open("/etc/mtab", 'r').read | |
mtab.split("\n").each do |x| | |
unless x.match(/.\z/).to_s.include?("0") | |
mtab_filepaths << x.match(/\/\S*/).to_s | |
end | |
end |
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
<%= form_tag("#", method: "get") do %> | |
<legend> Your Name?</legend> | |
<%= text_field_tag(:name) %> <br> | |
<span id="myspan" style="display: block;"> <legend> Guests / Child's name?</legend> <input name ="guest[name][]" type="text" ></span> | |
<br><br> | |
<%= submit_tag("That should do it") %> | |
<%end%> |
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> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> | |
</script> | |
<script> | |
$(document).ready(function(){ | |
$("#target").blur(function(){ | |
var name = $("#target").val(); |
NewerOlder