Download and install Atom Editor:
cd ~/Downloads
{{ $var }} - Echo content | |
{{ $var or 'default' }} - Echo content with a default value | |
{{{ $var }}} - Echo escaped content | |
{{-- Comment --}} - A Blade comment | |
@extends('layout') - Extends a template with a layout | |
@if(condition) - Starts an if block | |
@else - Starts an else block | |
@elseif(condition) - Start a elseif block | |
@endif - Ends a if block |
var a = document.querySelectorAll('input[type=radio]'); | |
for (var i=0; i<a.length; i++) | |
// from https://stackoverflow.com/a/18066088/8148848 | |
a[i].checked = ( (Math.random()*10) > 5) ? true : false; |
# Copyright 2014-2017 Bert Carremans | |
# Author: Bert Carremans <bertcarremans.be> | |
# | |
# License: BSD 3 clause | |
import os | |
import random | |
from shutil import copyfile |