This post has been deleted.
This file contains 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 $dropzoneId = isset($dz_id) ? $dz_id : str_random(8); @endphp | |
<div id="{{$dropzoneId}}" class="dropzone"> | |
<div class="dz-default dz-message"> | |
<h3>{{ $title or 'Drop files here or click to upload.'}}</h3> | |
<p class="text-muted">{{ $desc or 'Any related files you can upload' }} <br> | |
<small>One file can be max {{ config('attachment.max_size', 0) / 1000 }} MB</small></p> | |
</div> | |
</div> | |
<!-- Dropzone {{ $dropzoneId }} --> |
This file contains 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 | |
/** | |
* simple method to encrypt or decrypt a plain text string | |
* initialization vector(IV) has to be the same when encrypting and decrypting | |
* | |
* @param string $action: can be 'encrypt' or 'decrypt' | |
* @param string $string: string to encrypt or decrypt | |
* | |
* @return string | |
*/ |
This file contains 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 | |
#author Lyman Lai | |
#date 2013-12-30 | |
#source http://002.yaha.me/item/22728a58-c967-46d5-93eb-2649d684a9aa/ | |
MYSQL_USER="yourname" | |
MYSQL_HOST="localhost" | |
MYSQL_PASSWORD="yourpassword" | |
MYSQL_BIN="$(which mysql)" |
- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
Press minus + shift + s
and return
to chop/fold long lines!