I hereby claim:
- I am elliotwms on github.
- I am elliotwilliams (https://keybase.io/elliotwilliams) on keybase.
- I have a public key ASCSwfxd0asVsZ5BuHF1iTDgdeildL4Zf5WFQHYpES962Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| [ | |
| { | |
| "category": "Arts", | |
| "subcategories": [ | |
| "Design", | |
| "Fashion & Beauty", | |
| "Food", | |
| "Literature", | |
| "Performing Arts", | |
| "Visual Arts" |
| (h2+.table-responsive>table.table-bordered>thead>tr>th{Year}+th{Name}+th{Expires}^^+tbody>tr>td*3)*14 |
| <form id="youdeservearrays" action="index.php" method="post"> | |
| <input type="password" name="password[1]" value="Hello World"> | |
| <input type="password" name="password[2]" value="Hello Qorld"> | |
| </form> | |
| <?php | |
| if (count(array_unique($_POST['password'])) == 1) { | |
| $password = $_POST['password'][0]; | |
| } else { |
| <?php | |
| $options = $_POST['options']; | |
| // Now you can work with this just like an array! | |
| foreach ($options as $option => $value) | |
| { | |
| echo "Option " . $option . " = " . $value . "!"; | |
| } | |
| ?> |
| <input type="checkbox" name="options[a]" value=""> | |
| <input type="checkbox" name="options[b]" value=""> | |
| <input type="checkbox" name="options[c]" value=""> | |
| <input type="checkbox" name="options[d]" value=""> | |
| <input type="checkbox" name="options[e]" value=""> |
| <?php | |
| // Long winded... | |
| $option_a = $_POST['option_a']; | |
| $option_b = $_POST['option_b']; | |
| $option_c = $_POST['option_c']; | |
| $option_d = $_POST['option_d']; | |
| $option_e = $_POST['option_e']; | |
| // Slightly better... | |
| $options = [ |
| <input type="checkbox" name="option_a" value=""> | |
| <input type="checkbox" name="option_b" value=""> | |
| <input type="checkbox" name="option_c" value=""> | |
| <input type="checkbox" name="option_d" value=""> | |
| <input type="checkbox" name="option_e" value=""> |
| #! /usr/bin/env python | |
| f = open('output.sql', 'w'); | |
| f.write('INSERT INTO websites (url) VALUES\n') | |
| for line in open("websites.txt",'r'): | |
| f.write('(\''+line.strip()+'\'),\n') | |
| f.close() |
| #!/bin/bash | |
| # /etc/init.d/minecraft | |
| # version 0.3.4 2011-06-12 (YYYY-MM-DD) | |
| ### BEGIN INIT INFO | |
| # Provides: minecraft | |
| # Required-Start: $local_fs $remote_fs | |
| # Required-Stop: $local_fs $remote_fs | |
| # Should-Start: $network | |
| # Should-Stop: $network |