11

Use Padrino and sprockets with sprockets-helpers

Thanks to @arthur_chiu and his post on how to integrate sprockets in Padrino with sprockets-helpers, i’ve create my version :D:D:D:D 1) Create padrino-sprockets in config/sprockets.rb module Padrino::Sprockets def self.registered(base) base.set :sprockets, ::Sprockets::Environment.new(Padrino.root) # Add folder base.sprockets.append_path 'assets/javascripts' base.sprockets.append_path 'assets/stylesheets' base.sprockets.append_path 'assets/images' base.set :digest_assets, true # compress file if PADRINO_ENV == 'development' base.sprockets.js_compressor = Uglifier.new(mangle: true) base.sprockets.css_compressor = YUI::CssCompressor.new end # sprockets-helpers base.helpers Sprockets::Helpers # We can configure \`sprockets-helpers\` to find the correct assets for us....

June 14, 2024 · 2 min · Carlo Bertini [WaYdotNET]
#ruby
11

Padrino 0.11.0 Released - Padrino Lives!

The Padrino team is very pleased to finally be able to announce the 0.11.0 release of the Padrino Framework! We have been working on this release for almost a year now and we have had dozens of contributors helping us stabilize Padrino. We know our release cycle got out whack and this version took too long to release. We all take accountability for that and will work to pick up release momentum and release patch and minor versions more often....

March 23, 2013 · 1 min · Carlo Bertini [WaYdotNET]
#ruby
11

Usage ImageSorcery with CarrierWave by gem

CarrierWave::ImageSorcery https://github.com/WaYdotNET/carrierwave-imagesorcery Additional processing to use ImageSorcery into CarrierWave. Installation Add this line to your application’s Gemfile: gem ‘carrierwave-imagesorcery’ And then execute: $ bundle Or install it yourself as: $ gem install carrierwave-imagesorcery Usage To use those, you should include specified module (ImageSorcery) into your uploader and use processors: class AvatarUploader < CarrierWave::Uploader::Base include CarrierWave::ImageSorcery ….. end Method implemented convert dimensions resize_to_limit resize_to_fit resize_to_fill resize_and_pad Example class Uploader < CarrierWave::Uploader::Base...

August 22, 2012 · 2 min · Carlo Bertini [WaYdotNET]
#AiS #ruby
11

The library is a simple API in Ruby for Microsoft Translator V2

MsTranslate The library is a simple API in Ruby for Microsoft Translator V2 The Microsoft Translator services can be used in web or client applications to perform language translation operations. The services support users who are not familiar with the default language of a page or application, or those desiring to communicate with people of a different language group. Installation Add this line to your application’s Gemfile: gem ‘ms_translate’ And then execute:...

March 13, 2012 · 2 min · Carlo Bertini [WaYdotNET]
#AiS #gems #github #ms_transalte #OpenOttica #ruby #ruby #rubygems #tips #traduttore #translate #wrapper
11

Padrino-admin Twitter Bootstrap v2.0 is ready

(Padrino Admin TwitterBootstrap 2.0) Padrino-Modal: rack-flash and delete function into modal :D highlights error field tof helper: Automatic replace true or false with relative image (list.slim and list.haml) Breadcrumbs Automatic time_ago_in_words when column model is created_at or updated_at Migrate function for MiniRecord Padrino-Modal All result from rack-flash and delete request, now is automatic insert into modal javascript plugin highlights error field tof_helper Automatic replace true or false with relative image (list....

February 2, 2012 · 1 min · Carlo Bertini [WaYdotNET]
#AiS #bootsrtap #github #OpenOttica #padrino #padrino-admin #padrinorb #ruby #ruby #twitter #twitter bootstrap
11

Padrino Admin another new layout (based on Twitter Bootstrap v2.0-wip)

http://glowing-leaf-7114.heroku.com/admin/ user: test@padrinorb.com pass: test PLEASE DON’T CHANGE LOGIN/PASSWORD Additional feature: ✔ Padrino-Modal: rack-flash and delete function into modal :D ✔ highlights error field ✔ tof helper: Automatic replace true or false with relative image (list.slim and list.haml) ✔ Breadcrumbs ✔ Automatic time_ago_in_words when column model is created_at or updated_at ✔ Migrate function for MiniRecord clone my repository and enjoy :D https://github.com/WaYdotNET/padrino-framework See the code and comment please !!!!

January 30, 2012 · 1 min · Carlo Bertini [WaYdotNET]
#AiS #github #OpenOttica #padrino #padrino-admin #padrinorb #ruby #ruby #twitter #twtitter-bootstrap #waydotnet
11

Padrino Admin new layout

Hi to all, i’ve publish my version of padrino admin… based on Twitter Bootstrap Login page: Welcome page List user: clone my repository and enjoy :D https://github.com/WaYdotNET/padrino-framework comment please :P

October 24, 2011 · 1 min · Carlo Bertini [WaYdotNET]
#ruby #ruby padrino padrino-admin github #Script
11

CoffeScript (1.1.1) on Windows: simple method !

CoffeScript (1.1.1) on Windows: simple method ! Inspiration: http://blog.mnasyrov.com/post/2872046541/coffeescript-on-windows-how-to-roast-coffee To use CoffeScript you need: Node.js CoffeeScript Batch file to run CoffeeScript STEP 1: Node.js I’m very very lazy dev… :D And i don’t recompile NodeJs into Windows….. but I’m using v0.4.7 from http://node-js.prcn.co.cc/ [many thx] and install into: D:>cd ToolsNodeJsbin D:ToolsNodeJsbin>node –version v0.4.7 STEP 2: CoffeeScript Use the last version , grab it from https://github.com/jashkenas/coffee-script and install into: D:ToolsCoffeeScript Check version...

June 10, 2011 · 2 min · Carlo Bertini [WaYdotNET]
#batch #CoffeeScript #Javascript #Node.js #OpenOttica #ruby #ruby #Script #tips #Uncategorized #windows
11

LAZY Agnostic Application Generators (padrino-lazy)

Overview Through padrino-lazy, we can include some common properties shared between the model object used a base model object Padrino is very good framework, and almost follows the DRY principle (Don’t Repeat Yourself) When we need to have some common properties shared between the model object of our ORM, using the generator padrino-gen, We can only include these properties in each model to generate. I hope this idea will be included in Padrino Framework....

May 21, 2011 · 2 min · Carlo Bertini [WaYdotNET]
#lazy #linux #orm #padrino #ruby #ruby #Script #tips #Uncategorized
11

Windows ANSI Color (WAC)

wac.exe is a small command line utility that lets you use ANSI colors on Windows. link https://github.com/aslakhellesoy/wac

November 10, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#ruby #Script #Script #tips #tips #Uncategorized