I'm trying to figure out how to use rebar to:
- create erlang project
- add a dependency on an erlang module from github
- start the app via the erl console
- create a release and start the app from the release (via the generated scripts)
| <resources> | |
| <!-- Style you can use with a container (typically a horizontal | |
| LinearLayout) to get the standard "button bar" background and | |
| spacing. @hide --> | |
| <style name="ButtonBar"> | |
| <item name="android:paddingTop">5dip</item> | |
| <item name="android:paddingStart">4dip</item> | |
| <item name="android:paddingEnd">4dip</item> | |
| <item name="android:paddingBottom">1dip</item> | |
| <item name="android:background">@android:drawable/bottom_bar</item> |
| Handler handler = new Handler(); | |
| handler.postDelayed(new Runnable() { | |
| @Override | |
| public void run() { | |
| Log.v("Log", "" + findViewById(R.id.qqq).getWidth()); | |
| } | |
| }, 100); |
| -module(neo_handler_multipart). | |
| -behaviour(cowboy_http_handler). | |
| -export([init/3, handle/2, terminate/2]). | |
| init({_Transport, http}, Req, []) -> | |
| {ok, Req, {}}. | |
| handle(Req, State) -> | |
| {Result, Req2} = acc_multipart(Req), |
| %%%------------------------------------------------------------------- | |
| %%% @author egobrain <egobrain@linux-ympb> | |
| %%% @copyright (C) 2012, egobrain | |
| %%% @doc | |
| %%% Function for uploading files and properties,which were sent as a | |
| %%% multipart. Files are stored in tmp_folder with random name, | |
| %%% generated by tmp_filename function. | |
| %%% @end | |
| %%% Created : 25 Mar 2012 by egobrain <egobrain@linux-ympb> | |
| %%%------------------------------------------------------------------- |
| -module(upload_handler). | |
| -behaviour(cowboy_http_handler). | |
| -export([init/3, handle/2, terminate/2]). | |
| init({_Transport, http}, Req, []) -> | |
| {ok, Req, {}}. | |
| handle(Req, State) -> | |
| {Method,Req2} = cowboy_http_req:method(Req), | |
| case Method of |
| sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev | |
| wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz | |
| tar -xzf Python-2.7.3.tgz | |
| cd Python-2.7.3 | |
| ./configure --prefix=/usr --enable-shared | |
| make | |
| sudo make install | |
| cd .. |
| <style> | |
| #dropZone { | |
| color: #555; | |
| font-size: 18px; | |
| text-align: center; | |
| width: 400px; | |
| padding: 50px 0; | |
| margin: 50px auto; |
| %%%------------------------------------------------------------------- | |
| %%% @author Jose Luis Gordo Romero <[email protected]> | |
| %%% @doc Chicago Boss rebar functions, called from boss_plugin | |
| %%% Managing compilation/configuration/scripts stuff, the boss way | |
| %%% @end | |
| %%%------------------------------------------------------------------- | |
| -module(boss_rebar). | |
| -export([run/4, | |
| help/0, |
| -module(process_vs_ets_vs_mnesia). | |
| -author('[email protected]'). | |
| -export([run/3]). | |
| -record(store, {key, value}). | |
| run(TryCount, ProcessCount, ReadCount) -> | |
| Pids = lists:map( | |
| fun (_) -> spawn_link(fun reader_process/0) end, |