The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| - postgreSQL database example. just create action limit to 5 heroku clear db testing | |
| - form object Money Gem or | |
| - Presenter object, geokit and googlemaps | |
| - Flash, flash now | |
| - Error Handling | |
| - views | |
| - sass scut pure | |
| - Crud two - heroku -datetime category form for | |
| - Mailer | |
| - Service objects |
| gist |
| class Fixnum | |
| alias_method :times, :* | |
| def *(o=nil) | |
| o.nil? ? ->(x){ times x } : times(o) | |
| end | |
| end | |
| puts (11..14).map(&3.*) |
| <script> | |
| var i = 0 | |
| var deviceOrientationData | |
| window.addEventListener('deviceorientation', function( event ) { | |
| deviceOrientationData = event; | |
| i = i + 1 | |
| }, false); | |
| function AddCount() { |
| # This module represents a behaviour and when used picks from the Application configuration which implementation will be used | |
| defmodule Clock do | |
| @callback now() :: Integer.t | |
| defmacro __using__([]) do | |
| module = Application.get_env(:my_app, :Clock) | |
| quote do | |
| alias unquote(module), as: Clock | |
| end |
| pub mod raxx { | |
| #[derive(Debug)] | |
| pub enum Method {GET, POST} | |
| #[derive(Debug)] | |
| pub struct Request { | |
| pub method: Method | |
| } | |
| #[derive(Debug, PartialEq)] | |
| pub struct Response { |
| mod actor { | |
| extern crate typemap; | |
| #[derive(Debug)] | |
| pub struct Envelop<For: Actor> { | |
| // TODO make fields private | |
| pub address: For::Id, | |
| pub message: For::Message | |
| } |
| pub type Worker(m) { | |
| Pid | |
| } | |
| pub type WorkerMessage(m) { | |
| Down | |
| Message(m) | |
| } | |
| pub type Worker(m) { |
| ./_build/default/rel/hello_world/bin/hello_world console | |
| Exec: /usr/local/lib/erlang/erts-10.7.1/bin/erlexec -boot /opt/app/_build/default/rel/hello_world/releases/0.1.0/hello_world -mode embedded -boot_var ERTS_LIB_DIR /usr/local/lib/erlang/lib -config /opt/app/_build/default/rel/hello_world/releases/0.1.0/sys.config -args_file /opt/app/_build/default/rel/hello_world/releases/0.1.0/vm.args -- console | |
| Root: /opt/app/_build/default/rel/hello_world | |
| /opt/app/_build/default/rel/hello_world | |
| Erlang/OTP 22 [erts-10.7.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:30] [hipe] | |
| =CRASH REPORT==== 3-May-2020::13:00:58.045666 === | |
| crasher: | |
| initial call: application_master:init/4 | |
| pid: <0.327.0> |