Changes with .dev
domains in
mind.
Step 1 : Assign at least two IP address to your MAC OS (one per domain), let's say :
192.168.0.51
192.168.0.52
To setup the second IP you will have to add a second Ethernet Adapter (logical not physical).
// app/routes/api/auth/$.ts | |
import NextAuth from "~/lib/next-auth/index.server"; | |
export const { action, loader } = NextAuth({ | |
providers: [ | |
GoogleProvider({ | |
clientId: env.GOOGLE_CLIENT_ID, | |
clientSecret: env.GOOGLE_CLIENT_SECRET, | |
}), | |
], |
Changes with .dev
domains in
mind.
Step 1 : Assign at least two IP address to your MAC OS (one per domain), let's say :
192.168.0.51
192.168.0.52
To setup the second IP you will have to add a second Ethernet Adapter (logical not physical).
/** | |
* Loads an HTML document from a URL and retuns an element selected using | |
* the 'selector' parameter | |
* Example usage: | |
* loadPageSection('./myPage.html', '#container', (r, err) => console.log(r, err)); | |
* | |
* @method loadPageSection | |
* @param {String} url | |
* @param {String} selector - A valid CSS selector | |
* @param {Function} callback - To be called with two parameters (response, error) |
Pure JavaScript Zoom and Pan, taken from http://phrogz.net/tmp/canvas_zoom_to_cursor.html
A Pen by TechSlides on CodePen.
UITableView convenience classes for resizing header and footer with autolayout. |
var gulp = require('gulp'), | |
concat = require('gulp-concat'), | |
plumber = require('gulp-plumber'), | |
server = require('tiny-lr')(), | |
refresh = require('gulp-livereload'), | |
mocha = require('gulp-mocha'), | |
stylus = require('gulp-stylus'), | |
notify = require('gulp-notify'), | |
nodemon = require('gulp-nodemon'), | |
jshint = require('gulp-jshint'), |
/Volumes/Untitled
.With that volume in place, and with the macOS installer sitting in /Applications/Install\ macOS\ [VERSION].app
,
run the following command in your terminal to create a bootable install media (for Sierra):
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction
platform :ios, '5.0' | |
# Awesome networking | |
pod 'AFNetworking' | |
# Backported UICollectionView | |
pod 'PSTCollectionView' | |
# Rich text | |
pod 'TTTAttributedLabel' |
+ (void)pulseView:(UIView *)view completion:(void (^)(void))block { | |
// if you use auto layout, view-based transform go haywire, as they trigger layoutSubviews | |
// consequence is that you have no idea where the view will end up on the screen once animation completes | |
// see this discussion: http://stackoverflow.com/questions/12943107/how-do-i-adjust-the-anchor-point-of-a-calayer-when-auto-layout-is-being-used | |
// thus (per solution 4 from link above), rewriting with CAKeyframeAnimation | |
CAKeyframeAnimation *ka = [CAKeyframeAnimation animationWithKeyPath:@"transform"]; | |
ka.duration = .49; |