Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
<?php # TweetMVC Example App Bootstrap | |
# Import TweetMVC using error suppression to hide notices and warnings from the cold golfing | |
@include 'tmvc.php'; | |
use TMVC\Core\App; | |
# Basic namespaced autoloader, nothing too fancy | |
spl_autoload_register(function($class) {return @include __DIR__.'/src/'.strtr($class, '\\', '/').'.php';}); | |
# Instantiate, configure, and execute the app |
<?php | |
/** | |
* Clean HTML string removing all element attributes and elements which are | |
* not in the provided whitelist (but keeping their allowed children). | |
* | |
* @see https://github.com/alixaxel/phunction/blob/master/phunction/HTML.php | |
* @param string $html to clean | |
* @param array $whitelist | |
*/ | |
function clean_html($html, array $whitelist) |
/* | |
* Description: Simple IO class for php CLI | |
* Author: Mads Aune | |
*/ | |
if(!defined("STDIN")) { define('STDIN', fopen('php://stdin', 'r')); } | |
class CLI { | |
public static function getLine($prompt = '') { | |
echo $prompt . "> "; |
#!/usr/bin/env zsh | |
sudo rm -f /usr/bin/node | |
sudo rm -f /usr/bin/npm | |
sudo ln -s $(which node) /usr/bin/ | |
sudo ln -s $(which npm) /usr/bin/ |
FROM ubuntu:latest | |
RUN apt-get -y update && apt-get -y upgrade | |
RUN apt-get -y install openjdk-8-jdk wget | |
RUN mkdir /usr/local/tomcat | |
RUN wget http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.16/bin/apache-tomcat-8.5.16.tar.gz -O /tmp/tomcat.tar.gz | |
RUN cd /tmp && tar xvfz tomcat.tar.gz | |
RUN cp -Rv /tmp/apache-tomcat-8.5.16/* /usr/local/tomcat/ | |
EXPOSE 8080 | |
CMD /usr/local/tomcat/bin/catalina.sh run |
# During development of a node module (CLI) using babel to transpile ES6 code i ran in to the following problem | |
# EXAMPLE my-awsome-module | |
npm link | |
my-awsome-module # => Works as expected | |
# do some changes to my-awsome-module | |
# ...babel transpiles code | |
my-awsome-module # => zsh: permission denied: my-awsome-module |
Congratulations on becoming a BX owner. You have in your posession one of the most capable 3D printers in its class with some unique features that you will not even find on other, more costly machines.
Despite the capabilities of the machine, it will only be able to perform well if you take the time to carefully ensure that the mechanics are well put together. Fortunately the BX is a very simple machine to assemble so if you follow this guide carefully you will not have any problems.
The BX comes with the frame already pre-assembled. All you will need to do is align it with the base and insert four bolts to hold it in place. Unfortunately the process involved in trimming the aluminium extrusions to length at the factory does not always result in a perfect, 90 degree cut. This means that after you fasten the uprights in place they may not be at 90 degrees to the base.