This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Map value to color scale --> | |
<?php | |
function lineargradient($ra,$ga,$ba,$rz,$gz,$bz,$iterationnr) { | |
$colorindex = array(); | |
for($iterationc=1; $iterationc<=$iterationnr; $iterationc++) { | |
$iterationdiff = $iterationnr-$iterationc; | |
$colorindex[] = '#'. | |
dechex(intval((($ra*$iterationc)+($rz*$iterationdiff))/$iterationnr)). | |
dechex(intval((($ga*$iterationc)+($gz*$iterationdiff))/$iterationnr)). | |
dechex(intval((($ba*$iterationc)+($bz*$iterationdiff))/$iterationnr)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git remote add origin https://github.com/eddy1982/sql.git | |
$ git remote set-url https://github.com/eddy1982/sql.git | |
$ git remote remove origin | |
$ git remote -v | |
$ git push origin master | |
強制修改上一次的commit | |
$ git commit --amend -m '' |