I have created a library based on the below snippets: https://github.com/arkadiyk/surface_rich_components
defmodule Components.TextEditor do
use Surface.Component
I have created a library based on the below snippets: https://github.com/arkadiyk/surface_rich_components
defmodule Components.TextEditor do
use Surface.Component
The biggest problem deploying compiled EmberJS apps as a container is the configuration defined during compile time and becomes part of the image. Which is not ideal as you probably want to move the image between QA/UAT and prod without any modification.
The solution I will describe here looks like a hack but it's been working for me.
<meta>
tag into index.html
:Examples:
Literals:
{{t 'user.last_name'}}
{{t 'user.email' count=1}}
Placeholders:
Apparently array.filterBy
creates a new array based on the filtered content, whether Ember.Computed.filterBy
reuses the same array.
This difference can be very important when you display a filtered list with {{each}}
helper.
For eaxample, if you define the propery like this:
filteredArray: function(){
return this.get('content').filterBy('isDone', false);
}.property('[email protected]')
// source: http://www.avajava.com/tutorials/lessons/how-do-i-write-to-an-excel-file-using-poi.html | |
package test; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.util.Date; | |
import org.apache.poi.hssf.usermodel.HSSFCell; |
require 'net/http' | |
require 'uri' | |
module SSOAuth | |
def opensso_location | |
'http://<SSO-SERVER.com>:8080/opensso' | |
end | |
# main method | |
def get_sso_user |
require "java" | |
class ExcelController < ApplicationController | |
# Controller method | |
def parse_uploaded_file | |
excel_file = params[:excel_file] # file input element | |
begin | |
parsed_data = parse_excel(excel_file[0].read) | |
render :json => {:result => "OK"} |
include Java | |
require "#{ENV['TIB_LIBS']}/wljmsclient.jar" | |
require "#{ENV['TIB_LIBS']}/wlclient.jar" | |
require "#{ENV['TIB_LIBS']}/tibjms.jar" | |
PROVIDER_URL = 'tcp://JEUP-EQ-A.aaaaaa.com:42669,tcp://JEUP-EQ-B.aaaaaa.com:42669' | |
class MetreosJmsHandler | |
import java.util.Hashtable |
class ExcelDumper | |
def initialize(array) | |
@data = array | |
end | |
def to_xls(options = {}) | |
output = %{<?xml version="1.0" encoding="UTF-8"?> | |
<Workbook xmlns:x="urn:schemas-microsoft-com:office:excel" | |
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" | |
xmlns:html="http://www.w3.org/TR/REC-html40" |