Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
brew install openssl
function toUnicode(str) { | |
return str.split('').map(function (value, index, array) { | |
var temp = value.charCodeAt(0).toString(16).toUpperCase(); | |
if (temp.length > 2) { | |
return '\\u' + temp; | |
} | |
return value; | |
}).join(''); | |
} |
function toUnicode(str) { | |
return str.split('').map(function (value, index, array) { | |
var temp = value.charCodeAt(0).toString(16).toUpperCase(); | |
if (temp.length > 2) { | |
return '\\u' + temp; | |
} | |
return value; | |
}).join(''); | |
} |
<?php | |
//temp.php | |
//Celsius to Fahrenheit ° F = 9/5 ( ° C) + 32 | |
//Fahrenheit to Celsius ° C = 5/9 (° F - 32) | |
//Celsius to Kelvin K = ° C + 273.15 | |
//Kelvin to Celsius ° C = K - 273.15 | |
//Fahrenheit to Kelvin K = 5/9 (° F - 32) + 273.15 | |
//Kelvin to Fahrenheit ° F = 9/5 (K - 273.15) + 32 |
This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).
This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
// Obtain a SurfaceView. | |
// SurfaceView surfaceView = (SurfaceView)findViewById(R.id.surfaceView1); | |
Canvas canvas = surfaceView.getHolder().lockCanvas(); | |
canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR); | |
// Draw someting | |
surfaceView.getHolder().unlockCanvasAndPost(canvas); |