from:
https://stackoverflow.com/questions/52560532/export-angular-project-from-stackblitz-to-local
Discover gists
#!/usr/bin/python3 | |
# Jimmy Taylor | |
# https://www.consentfactory.com/python-threading-queuing-netmiko/ | |
# This method will spin up threads and process IP addresses in a queue | |
# Importing Netmiko modules | |
from netmiko import Netmiko | |
from netmiko.ssh_exception import NetMikoAuthenticationException, NetMikoTimeoutException |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare git@github.com:usi-systems/easytrace.git
// jQuery must be loaded before calling this function ( for AJAX ) | |
let getUserPostcode = () => { | |
if (navigator.geolocation) { | |
navigator.geolocation.getCurrentPosition( | |
(position) => { | |
let lat = position.coords.latitude, | |
long = position.coords.longitude, | |
url = "https://maps.googleapis.com/maps/api/geocode/json?latlng=" + lat + "," + long + "&key=YOUR_GOOGLE_API_KEY"; | |
$.ajax({ | |
type: "GET", |
Note
More information you can find on Microsoft documentation.
Tip
You can install all Visual C++ Redistributable Packages using only one command with winget! https://gist.github.com/ChuckMichael/d4221fd8681a7e962c8d37d623ff3145
- x64 8.0.61000 (EOL)
Microsoft.VCRedist.2005.x64
<layout> | |
<configItem> | |
<name>trans</name> | |
<description>International Phonetic Alphabet</description> | |
</configItem> | |
<variantList/> | |
</layout> |
In the last few years, the number of programmers concerned about writing structured commit messages have dramatically grown. As exposed by Tim Pope in article readable commit messages are easy to follow when looking through the project history. Moreover the AngularJS contributing guides introduced conventions that can be used by automation tools to automatically generate useful documentation, or by developers during debugging process.
This document borrows some concepts, conventions and even text mainly from these two sources, extending them in order to provide a sensible guideline for writing commit messages.
const findScrollContainer = (element) => { | |
if (!element) { | |
return undefined; | |
} | |
let parent = element.parentElement; | |
while (parent) { | |
const { overflow } = window.getComputedStyle(parent); | |
if (overflow.split(' ').every(o => o === 'auto' || o === 'scroll')) { | |
return parent; |