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
// MARK: - SceneDelegate | |
class SceneDelegate: UIResponder, UIWindowSceneDelegate { | |
var window: UIWindow? | |
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { | |
let navigationController = UINavigationController(navigationBarClass: NavigationBar.self, toolbarClass: nil) | |
(navigationController.navigationBar as! NavigationBar).preferredHeight = 88 | |
navigationController.setViewControllers([ViewController()], animated: false) | |
/*================================================================================================== | |
Application: Utility Function | |
Author: John Gardner | |
Website: http://www.braemoor.co.uk/software/vat.shtml | |
Version: V1.0 | |
Date: 30th July 2005 | |
Description: Used to check the validity of an EU country VAT number |
#!/usr/bin/env python3 | |
''' | |
Filter to wrap Pandoc's CodeBlocks into minted blocks when using latex. | |
Pandoc's `fence_code_attributes` can be used to provide: | |
- the language (first class) | |
- minted's argumentless options (following classes) | |
- minted's options with arguments (attributes) | |
''' |
import sbt._ | |
import Keys._ | |
import java.net._ | |
import java.io.File | |
import play.PlayRunHook | |
/* | |
Grunt runner should be in project directory to be picked up by sbt | |
*/ | |
object Grunt { |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didInsertElement: function() { | |
var $this = this.$(), | |
$actions = Ember.$('.actions', $this); | |
$this.hover(function() { | |
$actions.slideDown(); | |
}, function() { | |
$actions.slideUp(); |
#!/bin/bash | |
# From ScalaCourses.com Introduction to Play Framework with Scala course | |
# https://www.scalacourses.com/student/showLecture/158 | |
set -eo pipefail | |
function help { | |
echo "Download or update Typesafe Activator on Linux and Cygwin" | |
echo "Usage: $(basename $0) [options]" |
/* | |
This assumes that your bower_components folder is /assets. I renamed it in .bower.json for sanities sake. | |
I use baseUrl = '/js' as this is where all my custom javascript is and requirejs can't navigate | |
bower's folder structure anyway. | |
*/ | |
requirejs.config({ | |
paths: { |
#!/bin/bash | |
# | |
# ========================================================================= | |
# Copyright 2014 Rado Buransky, Dominion Marine Media | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
import sbt._ | |
import Keys._ | |
import java.net._ | |
import java.io.File | |
import play.PlayRunHook | |
/* | |
Grunt runner should be in project directory to be picked up by sbt | |
*/ | |
object Grunt { |
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.