To setup your computer to work with *.local domains, e.g. project.local, awesome.local and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Session { | |
var $sess_encrypt_cookie = FALSE; | |
var $sess_use_database = FALSE; | |
var $sess_table_name = ''; | |
var $sess_expiration = 7200; | |
var $sess_expire_on_close = FALSE; | |
var $sess_match_ip = FALSE; |
To setup your computer to work with *.local domains, e.g. project.local, awesome.local and so on, without having to add to your hosts file each time.
This class forces video to load on 100% and informs about it's load progress.
Important notes:
buffered / videoDuration == 100
. Even rounding to precision of 2 fails in IELength of random ints array: 1000000 | |
Run looper | |
res: 99999883 | |
Time elapsed: 7 | |
Run reducer | |
res: 99999883 | |
Time elapsed: 26 | |
Diff: 19 |
sudo rm -f /opt/vagrant-vmware-desktop/settings/nat.json | |
sudo killall vagrant-vmware-utility |
<link rel="apple-touch-icon-precomposed" sizes="57x57" | |
href="{{ app_asset('img/fav/apple-touch-icon-57x57.png') }}"/> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" | |
href="{{ app_asset('img/fav/apple-touch-icon-114x114.png') }}"/> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" | |
href="{{ app_asset('img/fav/apple-touch-icon-72x72.png') }}"/> | |
<link rel="apple-touch-icon-precomposed" sizes="144x144" | |
href="{{ app_asset('img/fav/apple-touch-icon-144x144.png') }}"/> | |
<link rel="apple-touch-icon-precomposed" sizes="60x60" | |
href="{{ app_asset('img/fav/apple-touch-icon-60x60.png') }}"/> |
export default class Spoiler { | |
constructor(container) { | |
this.container = container; | |
this.opener = this.container.querySelector('.opener'); | |
this.content = this.container.querySelector('.content'); | |
this.isAnimating = false; | |
this.opened = false; | |
this.container.addEventListener(transitionend, ()=>{ | |
this.isAnimating = false; |
const gulp = require('gulp'); | |
const watch = require('gulp-watch'); | |
const browserify = require('browserify'); | |
const babelify = require('babelify'); | |
const transform = require('vinyl-transform'); | |
const minify = require('gulp-minify'); | |
const ifElse = require('gulp-if-else'); | |
const argv = require('yargs').argv; |
echo "www-data ALL=(ALL:ALL) NOPASSWD:/usr/bin/docker inspect *" >> /etc/sudoers |
<?php | |
namespace App\Support; | |
/** | |
* Get files from raw multipart input generated by frontend ajax uploaders | |
* | |
* Class JsonUploader | |
* @package App\Support |