The following describes the behaviour of several npm commands, particularly w.r.t. the scripts that are run in each, for NPM version 6.5.0.
npm run preinstall
- link binaries (node-gyp)
- for each
bin
command in other package:
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
body { | |
width: 100%; | |
height: 10em; | |
background: mix(#ff0000, #0000bb, 75); | |
} |
// Target state | |
var tx = 0; | |
var ty = 0; | |
var scale = 1; | |
function visualiseTargetState() { | |
box.style.transform = `translate(${tx}px, ${ty}px) scale(${scale})`; | |
} | |
This is a short overview on how to completely remove any old mysql server installs in OSX and upgrade to MariaDB without conflicts. Things can get a bit weird when you have various old installs of MySQL server floating around, and utilizing homebrew to install and upgrade MariaDB as a drop in replacement for MySQL has worked well, especially if you're used to managing MySQL installs via yum in linux.
Backup all of your current databases with mysqldump
This isn't a tutorial on backups, and there are many ways to do it. You should know how to backup your data anyway. For this example, we'll do a full backup of our InnoDB databases.
The file _functions-override.scss
contains the custom functions to handle color conversions within sass and bootstrap.
Bootstrap does not like its sass variables set to css custom properties, e.g. var(--primary)
. If you use the code snippets below, you can do so, under some conditions.
In the most basic case, you should provide your color variables using the hsl format.
If you insert this using javascript, you can use the script apply-colors.jsx
to let js handle the conversion from hex or rgb to hsl.
Reference the main.scss
file to import the files in the correct order.
#!/bin/bash | |
# | |
# I made this because bitbucket does not a have a team view on all the | |
# pipeline builds. | |
# | |
# See https://community.atlassian.com/t5/Bitbucket-questions/Where-can-I-get-a-view-of-all-the-pipeline-builds-for-a-team/qaq-p/786264 | |
# | |
# Requires curl and jq | |
# | |
# Use it like this: |
let gulp = require('gulp'), | |
replace = require('gulp-batch-replace'), | |
filesExist = require('files-exist'); | |
gulp.task('bt4', () => | |
{ | |
let diff = { | |
'@media (min-width: $screen-xs-min) and (max-width: $screen-sm-max)': '@media (min-width: map-get($grid-breakpoints, xs)) and (max-width: map-get($grid-breakpoints, xs))', | |
'@media (min-width: $screen-xs) and (max-width: ($screen-md-min - 1))': '@media (min-width: map-get($grid-breakpoints, xs)) and (max-width: map-get($grid-breakpoints, md)-1)', |
/* sample cubic beziers */ | |
linear = [0.250, 0.250, 0.750, 0.750]; | |
ease = [0.250, 0.100, 0.250, 1.000]; | |
easeIn = [0.420, 0.000, 1.000, 1.000]; | |
easeOut = [0.000, 0.000, 0.580, 1.000]; | |
easeInOut = [0.420, 0.000, 0.580, 1.000]; | |
function reverseCubicBezier(cubicBezier) { | |
return [ | |
1 - cubicBezier[2], |
class MyController { | |
editor: any; | |
grapesJsConfig: { | |
//whatever | |
} | |
constructor(private readonly $scope: ng.IScope) {} |