After downloading Buildroot:
make menuconfig
After the image has been created, the output folder contains the .tar file so we:
dd if=/path/to/input/file.tar of=/path/to/output/file.img
After downloading Buildroot:
make menuconfig
After the image has been created, the output folder contains the .tar file so we:
dd if=/path/to/input/file.tar of=/path/to/output/file.img
| #include <ESP8266WiFi.h> | |
| #include <PubSubClient.h> | |
| const char* ssid = "xxx"; | |
| const char* password = "xxx"; | |
| const char* mqttServer = "m24.cloudmqtt.com"; | |
| const int mqttPort = 15031; | |
| const char* mqttUser = "xxx"; | |
| const char* mqttPassword = "xxx"; |
| sudo apt-get install git kdelibs5-dev kdevplatform-dev qt4-dev-tools cmake libglib2.0-dev | |
| mkdir git-ktechlab && cd git-ktechlab | |
| git clone git://github.com/ktechlab/ktechlab.git | |
| cd ktechlab | |
| mkdir build && cd build | |
| cmake .. -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr/local/ | |
| make | |
| sudo make install | |
| kbuildsycoca4 &> /dev/null | |
| sudo update-mime-database /usr/share/mime |
| /** @jsx React.DOM */ | |
| var AppRouteTarget = { | |
| setupLayout: function () { | |
| React.renderComponent({ | |
| <App className='page-content'>, | |
| document.querySelector('body') | |
| }); | |
| } | |
| }; |
Since Cocos Creator is an electron app, I thought it should be easy to run it on Linux. As a result, successfully launched Cocos Creator app on Ubuntu.
To make it possible,
ELECTRON_ASAR.js. Finally build the electron by using ./script/create-dist.py| heroku config:set NODEMODULESCACHE=false | |
| git commit -am 'rebuild' --allow-empty | |
| git push heroku master | |
| heroku config:unset NODEMODULESCACHE |
| gcc main.c -shared -o mylib.so -fPIC -llua |
| // Download the MongoDB C# Drivers from https://docs.mongodb.com/ecosystem/drivers/csharp/ | |
| // Add the references to your project. | |
| // Create a Script Task. Now in the script, expand the Namespaces region and add these lines: | |
| using MongoDB.Bson; | |
| using MongoDB.Driver; | |
| using MongoDB.Bson.Serialization; | |
| // Now scroll down to the CreateNewOutputRows() procedure. Here is a sample of the code I used: |
| FROM php:7.0.4-fpm | |
| # Install modules | |
| RUN apt-get update && apt-get install -y \ | |
| libfreetype6-dev \ | |
| libjpeg62-turbo-dev \ | |
| libmcrypt-dev \ | |
| libpng12-dev \ | |
| libssl-dev \ | |
| && pecl install mongodb \ |
| public float Health = 70f; | |
| void OnCollisionEnter2D(Collision2D col) | |
| { | |
| if (col.gameObject.GetComponent<Rigidbody2D>() == null) return; | |
| float damage = col.gameObject.GetComponent<Rigidbody2D>().velocity.magnitude * 10; | |
| //don't play audio for small damages | |
| if (damage >= 10) | |
| GetComponent<AudioSource>().Play(); |