To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
Select all and delete (actually move to buffer) | |
:%d | |
Select all and copy to buffer | |
:%y | |
Use p to paste the buffer. |
//////////////////////////////////////////////////////////// | |
// Headers | |
//////////////////////////////////////////////////////////// | |
#include "stdafx.h" | |
#ifdef _DEBUG | |
#pragma comment(lib,"sfml-graphics-d.lib") | |
#pragma comment(lib,"sfml-audio-d.lib") | |
#pragma comment(lib,"sfml-system-d.lib") | |
#pragma comment(lib,"sfml-window-d.lib") |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
<?php | |
return array( | |
/* | |
|-------------------------------------------------------------------------- | |
| Validation Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines contain the default error messages used by | |
| the validator class. Some of these rules have multiple versions such |
#!/bin/zsh | |
newname=$(echo $1 | awk -F'.' '{print $1}').png # i3lock only accepts pngs | |
resolution=$(xrandr | fgrep '*' | awk '{print $1}') | |
# if the image is too large, run the folloowing line first and then run the script again on temp.jpg: | |
# convert $1 -gravity Center -adaptive-resize $resolution -background black temp.jpg | |
convert $1 -background black -gravity center -extent $resolution -background black $newname |
var defaults = { | |
number: 1, | |
bool: true, | |
magic: 'real', | |
animal: 'whale', | |
croutons: 'delicious' | |
}; | |
var options = { | |
number: 2, |
#!/usr/bin/python | |
# Udacity exercise. Just posted the code here to help anyone who wanted to see the work behind my posted result. | |
__author__ = 'Michael Rosata mrosata1984@gmail.com' | |
__package__ = '' | |
from random import random | |
import turtle | |
class TurtleArtist(turtle.Turtle): | |
_origin = (0, 0) |
# | |
# Sample /etc/sudoers file. | |
# | |
# This file MUST be edited with the 'visudo' command as root. | |
# | |
# See the sudoers man page for the details on how to write a sudoers file. | |
## | |
# Override built-in defaults | |
## |