- Martin Fowler: "disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior"
- Opionated developer: renaming source files
- Minimalistic developer: removing source files
- Badass developer: rewriting everything from scratch
- Technical lead: calls it 'improving' instead, to avoid scaring the management
- Project manager: fixing previous mistakes
- Product manager: time when no new features get done
- CEO: slacking
#!/usr/bin/env bash | |
#set -x | |
# Search all subfolders for photos/videos to rename from their Exif data. | |
# Also compress videos to 720height 3000kbps x264 mp4 (which is roughly divide size by ten from my camera .mov files) | |
# https://gist.github.com/1923696 | |
where=$1 | |
test -z "$where" && where='.' |
# 1.install gource using HomeBrew | |
$ brew install gource | |
# 2.install avconv | |
git clone git://git.libav.org/libav.git | |
cd libav | |
# it will take 3-5 minutes to complie, be patient. | |
./configure --disable-yasm | |
make && make install |
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
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element
or the /deep/
path selector.
video::webkit-media-controls-timeline {
background-color: lime;
}
video /deep/ input[type=range] {
<?php | |
class OpenCartValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
<?php | |
namespace App\Library\Database\Query; | |
use Illuminate\Database\Query\Builder as QueryBuilder; | |
class Builder extends QueryBuilder | |
{ | |
/** | |
* Insert a new record into the database. |
Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...
What this guide covers: