I hereby claim:
- I am mikealmond on github.
- I am almondmike (https://keybase.io/almondmike) on keybase.
- I have a public key ASBoI4XfUVID-eIqShd19qomLDEtQ-lvtGnBl0CJWIDBOwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| Verifying that +mikealmond is my blockchain ID. https://onename.com/mikealmond |
| <?php | |
| function mb_str_shorten($content, $maxCharacters, $showDots = "…", $stopAtSpace = true, $encoding = 'UTF-8') | |
| { | |
| if(mb_strlen($content, $encoding) > $maxCharacters) { | |
| if(!$stopAtSpace) { | |
| return mb_substr($content, 0, $maxCharacters, $encoding) . $showDots; | |
| } else { | |
| $toReturn = mb_substr($content, 0, $maxCharacters, $encoding); |
| find . -type d -exec chmod u=rwx,g=rx,o=rx {} \; | |
| find . -type f -exec chmod u=rw,g=r,o=r {} \; |
| alias please="sudo" |
| var data = { | |
| 'id': 1, | |
| 'body': $('#body').val() | |
| }; | |
| if (hasTitle == true) { | |
| data['title'] = $('#title').val(); | |
| } | |
| $.post('/ajax/update-something', data, function (response) { | |
| $('#template').html(response); | |
| }); |
| <?php | |
| $x = 'foo'; | |
| $y = 'bar'; | |
| $x ^= $y ^= $x ^= $y; | |
| print $x; //bar | |
| print $y; //foo |
| <input type="file" multiple name="photos[]"> | |
| <?php | |
| $total = count($_FILES['photos']['name']) - 1; | |
| for ($i = 0; $i <= $total; $i++) { | |
| uploadFile($_FILES['photos']['tmp_name'][$i]); | |
| } | |