This has been moved to my blog at asklagbox blog
We are going to make a quick laravel application, including the setup and install.
We will setup the project using the following:
- Nginx
- sqlite3
| <?php | |
| // shell/listAllCron.php | |
| require_once 'abstract.php'; | |
| class Mage_Shell_CronLister extends Mage_Shell_Abstract | |
| { | |
| public function run() | |
| { | |
| $cronJobs = Mage::app()->getConfig()->getNode('crontab/jobs'); |
| <?php | |
| namespace PHPSTORM_META { | |
| /** | |
| * PhpStorm Meta file, to provide autocomplete information for PhpStorm | |
| * Generated on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <[email protected]> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ |
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
| (function () { | |
| var perfBar = function(budget) { | |
| window.onload = function() { | |
| window.performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {}; | |
| var timing = window.performance.timing, | |
| now = new Date().getTime(), | |
| output, loadTime; |
| var gulp = require('gulp'), | |
| sass = require('gulp-sass'), | |
| concat = require('gulp-concat'), | |
| uglify = require('gulp-uglify'), | |
| notify = require('gulp-notify'), | |
| plumber = require('gulp-plumber'), | |
| sourcemaps = require('gulp-sourcemaps'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| browserSync = require('browser-sync').create(), | |
| rename = require('gulp-rename'), |
This has been moved to my blog at asklagbox blog
We are going to make a quick laravel application, including the setup and install.
We will setup the project using the following:
https://www.youtube.com/user/DevTipsForDesigners/playlists?shelf_id=0&view=1&sort=dd Travis Neilson
https://github.com/theskillwithin/hrtcup (eslint, browersync, etc confic)
#index
| import React, { Component } from 'react' | |
| import { bool, object } from 'prop-types' | |
| class StateProvides extends Component { | |
| state = { | |
| state: {}, | |
| hydrated: false, | |
| } |
| function Foo({ onClick }) { | |
| let handler = useDebounced(onClick, { delay: 1000, leading: true }); | |
| return <button onClick={handler}>Click me</button>; | |
| } |
I'm trying to create examples of all the different ways to write functions and function type definitions in TypeScript.
One requirement is these examples must work with strict mode (noImplicitAny, etc) enabled.
If I'm missing anything, please add comments below with examples. I'll eventually put this into a blog post.