This is a list of stuff that the average software developer does from week to week
- Code design
- Refactoring
- Algorithms
- Profiling
- Code reviews
- Building frameworks
PHP 10 hrs 33 mins █████████████▍░░░░░░░ 64.0% | |
TypeScript 2 hrs 7 mins ██▋░░░░░░░░░░░░░░░░░░ 12.9% | |
Smarty 2 hrs 5 mins ██▋░░░░░░░░░░░░░░░░░░ 12.7% | |
Nginx 25 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.5% | |
JavaScript 20 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.0% |
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Remove Yoast SEO Change existing title or meta template variable | |
* Credit: Moshe Harush | |
* https://stackoverflow.com/questions/36281915/yoast-seo-how-to-create-custom-variables | |
* Last Tested: Unknown | |
*/ | |
// define the wpseo_replacements callback | |
function filter_wpseo_replacements( $replacements ) { |
pipeline { | |
agent any | |
stages { | |
stage('Prepare') { | |
steps { | |
sh 'composer install' | |
sh 'rm -rf build/api' | |
sh 'rm -rf build/coverage' | |
sh 'rm -rf build/logs' |
/* | |
* http://www.javascriptkit.com/dhtmltutors/sticky-hover-issue-solutions.shtml | |
* Method 3- Using CSS Media Queries Level 4 Interaction Media Features | |
*/ | |
@media (hover:none), | |
(hover:on-demand) { | |
nav a:hover { | |
/* suppress hover effect on devices that don't support hover fully */ | |
background: none; |
{ | |
"directory": "./resources/assets/vendor" | |
} |
<?php namespace App\Http\Middleware; | |
use Carbon\Carbon; | |
use Closure; | |
use Illuminate\Cache\Repository as Cache; | |
use Illuminate\Support\Facades\Response; | |
use Illuminate\Support\Facades\Session; | |
class PreventReplayAttack | |
{ |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
var Controller = function($timeout){ | |
var timer = 10000; | |
$scope.remaining = timer / 1000; | |
$scope.startTimer = function(){ | |
$scope.timeout = $timeout(function() { | |
$scope.remaining--; | |
$scope.remaining > 0 ? $scope.startTimer() : $scope.finished('Finished!'); | |
}, 1000); | |
}; |