This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
| <?php | |
| /* | |
| * For testing you will need the following packages: | |
| * | |
| * - paragonie/random_compat | |
| * | |
| * - defuse/php-encryption | |
| * | |
| * - leigh/curve25519 | |
| */ |
| # The initial version | |
| if [ ! -f .env ] | |
| then | |
| export $(cat .env | xargs) | |
| fi | |
| # My favorite from the comments. Thanks @richarddewit & others! | |
| set -a && source .env && set +a |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "text/template" | |
| ) | |
| type Person struct { | |
| Name string |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
Your blockchain must have all of the following properties:
If your blockchain is missing any of the above properties, it is not a blockchain, it is just a ledger.
| package main | |
| import ( | |
| "fmt" | |
| "github.com/skratchdot/open-golang/open" | |
| "net" | |
| "net/http" | |
| ) | |
| func main() { |
| Number.prototype.pad = function(size) { | |
| var s = String(this); | |
| while (s.length < (size || 2)) {s = "0" + s;} | |
| return s; | |
| } | |
| (1).pad(3) // => "001" | |
| (10).pad(3) // => "010" | |
| (100).pad(3) // => "100" |
To use a yubico U2F token on CentOS/RHEL/Fedora you need to add the specific udev file to your system to recognize them.
Get the udev rules
wget -O /etc/udev/rules.d/70-u2f.rules https://raw.githubusercontent.com/Yubico/libu2f-host/master/70-u2f.rulesReload device events
| Quick tip for handling CSRF Token Expiration - common issue is when you use csrf protection is that if | |
| a form sits there for a while (like a login form, but any the same) the csrf token in the form will | |
| expire & throw a strange error. | |
| Handling it is simple, and is a good lesson for dealing with other types of errors in a custom manner. | |
| In Middleware you will see a file VerifyCsrfToken.php and be tempted to handle things there. DON'T! | |
| Instead, look at your app/Exceptions/Handler.php, at the render($request, Exception $e) function. | |
| All of your exceptions go through here, unless you have excluded them in the $dontReport array at the |
| <RelativeLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:padding="16dp"> | |
| <TextView | |
| android:text="I’m in this corner" | |
| android:layout_height="wrap_content" | |
| android:layout_width="wrap_content" |