Skip to content

Instantly share code, notes, and snippets.

View ippaiva's full-sized avatar
🎯
Focusing

Ismael P. Paiva ippaiva

🎯
Focusing
  • São Paulo, Brasil
View GitHub Profile

Access macOS localhost from IE or Edge within Parallels Desktop

This issue is so infuriating that I'm going to take some time to write about it.

  1. MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to provide additional flags to your serve commands e.g. polymer serve --hostname domain.local, hugo serve --bind 0.0.0.0. If you use a named domain like domain.local, it has to be defined in /etc/hosts and pointing at 0.0.0.0.

  2. My Parallels setting is using Shared Network, nothing special there.

  3. Open macOS Terminal and type ifconfig. Look for the value under vnic0 > inet. It is typically 10.211.55.2.

@ippaiva
ippaiva / flexbox-playground.markdown
Created October 19, 2018 13:38
Flexbox playground
@ippaiva
ippaiva / marsrover.js
Last active October 10, 2018 18:43
IronHack JS Challenge - Mars Rover v2
// Rover Object Goes Here
// ======================
//1º
var robot1 = {
direction: "N",
x: 0,
y: 0,
travelLog:[]
};
@ippaiva
ippaiva / __replit_main__
Created October 4, 2018 18:57
intro-functions created by ippaiva - https://repl.it/@ippaiva/intro-functions
// *********Return values
function addNumbers(){
return 5 + 2;
}
var result = addNumbers();
console.log("The return total is : " + result);
console.log('\n');
// ***********Arguments
function sumNumbers(numberOne, numberTwo) {
@ippaiva
ippaiva / __replit_main__
Created October 3, 2018 19:51
Arrays-operation created by ippaiva - https://repl.it/@ippaiva/Arrays-operation
//Getting the last Index
var animalArray = ["Dog", "Cat", "Fish"];
// Notice, it's the length - 1
// The array's index starts at 0, and we must compensate
var lastIndex = animalArray.length - 1;
var lastElement = animalArray[lastIndex];
console.log(lastElement);
@ippaiva
ippaiva / index.js
Created September 26, 2018 19:37
IronHack JS.Exercise created by ippaiva - https://repl.it/@ippaiva/IronHack-JSExercise
/*Print the numbers 1 through 50.
If the number is divisible by 7, you must skip the next number.
If the number is divisible by 10 or 15, you must print “Donkey!”.
If the number is not divisible by 2 and the previous number is divisible by 10, you must print “Monkey!”.*/
for (var i = 1; i < 50; i++) {
if (i % 10 === 0 || i % 15 === 0)
console.log("Donkey");
else if (i % 7 === 0) { continue; }
@ippaiva
ippaiva / index.js
Created September 26, 2018 19:36
js created by ippaiva - https://repl.it/@ippaiva/js
for (var i = 10; i >= 1; i--) {
console.log(i);
}
console.log("Boom!");
@ippaiva
ippaiva / index.js
Created September 7, 2018 12:31
PoliticalGeneralQuote created by ippaiva - https://repl.it/@ippaiva/PoliticalGeneralQuote
//var.obj
var carro= {
rodas: 4,
motor: 1,
espelho: 2,
cor: "Azul",
ar: true
}
//ES6
var carro2 = {...carro}
@ippaiva
ippaiva / index.html
Created September 4, 2018 15:33
IronHack - PreWork
<nav class ="nav-bar">
<ul class="nav-bar-ul">
<li class="nav-bar-li"><a class="nav-bar-item" href='#structure'>Day Structure</a></li>
<li class="nav-bar-li"><a class="nav-bar-item" href='#team'>Team</a></li>
<li class="nav-bar-li"><a class="nav-bar-item" href='#schedule'>Schedule</a></li>
</ul>
</nav>
<header class="header">
<h1><img src='https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/ironhack-skydive-logo.png'alt='IronSkydive Logo'>IronSkydive</h1>