This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ActiveAdmin.setup do |config| | |
| # Don't enfoce mass assignment rules on the admin panel | |
| config.before_filter do | |
| params.permit! | |
| end | |
| # == Site Title | |
| # | |
| # Set the title that is displayed on the main layout | |
| # for each of the active admin pages. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def stats | |
| @ivr = Smrt::Ivr.find(params[:id]) | |
| @stats = @ivr.action_flows | |
| @rules_by_containers = Smrt::IvrActionFlow.execute_query('SELECT container_name, name, SUM(case when rule_type = "invalid" then 1 else 0 end) AS invalid_rule, SUM(case when rule_type = "match" then 1 else 0 end) AS match_rule FROM ivr_dev.ivr_action_flows WHERE ivr_id = 2008 GROUP BY name;') | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private function dispoBarHandler(evt:MenuEvent):void { | |
| send_cmd_to_server('disconnect','unused'); | |
| Application.application.app.contactViewTab.kvDataGrid.editedItemPosition = null; | |
| Application.application.app.contactViewTab.dispoBar.enabled = false; | |
| Application.application.app.contactViewTab.btnAddNote.enabled = false; | |
| Application.application.app.contactViewTab.kvDataGrid.editable = false; | |
| switch(evt.item.selection) { | |
| case 'markAsGoal': | |
| var _log:Log = new Log; | |
| _log.user = _user; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| function checkConfig { | |
| echo -e " * Chequeanado archivos de configuracion..." | |
| if [ ! -f $CONFIGFILE ]; then | |
| echo -e "\t> `basename $CONFIGFILE`\t \033[0;31mNO\033[m" | |
| echo -e " * Debe ejecutar el script de instalacion para reparar la instalacion\n" | |
| exit -1 | |
| else | |
| echo -e "\t> `basename $CONFIGFILE`\t \033[0;32mSI\033[m" | |
| echo " " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| formatter.ini | |
| NEW_LINE_FOR_BRACKET=0 | |
| SPACES_BEFORE_OPEN_BRACKET=0 | |
| SPACING=6 | |
| Progam: | |
| program{ | |
| a := True; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| formatter.ini | |
| NEW_LINE_FOR_BRACKET=0 | |
| SPACES_BEFORE_OPEN_BRACKET=5 | |
| SPACING=10 | |
| Mismo programa | |
| Resultado: | |
| program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Linea : 6,1333504800,17,10,8,, | |
| Data : 6,1333504800,17,10,8. | |
| DEBUG: kbtree_leaf_insert(): inserted at position 0. | |
| Linea : 3,1331793000,19,13,4,, | |
| Data : 3,1331793000,19,13,4. | |
| DEBUG: kbtree_leaf_insert(): inserted at position 1. | |
| Linea : 5,1335126600,11,4,3,, | |
| Data : 5,1335126600,11,4,3. | |
| DEBUG: kbtree_leaf_insert(): inserted at position 2. | |
| Linea : 4,1328477400,10,7,3,, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MiddleMan.worker(:fast_import_worker) | |
| => #<BackgrounDRb::RailsWorkerProxy:0x3b6d9a8 @worker_key=nil, @middle_man=#<BackgrounDRb::ClusterConnection:0x32b84e8 @request_count=1, @bdrb_servers=[#<struct #<Class:0x32a7ff8> ip="0.0.0.0", port=11006>], @round_robin=[0], @last_polled_time=Fri Jun 08 06:25:06 -0700 2012, @disconnected_connections={}, @backend_connections=[#<BackgrounDRb::Connection:0x32a7b98 @mutex=#<Mutex:0x32a7b48>, @server_ip="0.0.0.0", @connection_status=true, @cluster_conn=#<BackgrounDRb::ClusterConnection:0x32b84e8 ...>, @server_port=11006>]>, @worker_name=:fast_import_worker, @tried_connections=[]> | |
| >> MiddleMan.worker(:fast_import_worker).csv_local | |
| => "dummy_result" | |
| >> MiddleMan.worker(:fast_import_worker).async_csv_local | |
| => nil | |
| >> MiddleMan.worker(:fast_import_worker).async_csv_local(:arg => {:import_type => 7, :list_name => "probando" }) | |
| => nil | |
| >> MiddleMan.worker(:fast_import_worker).csv_local(:arg => {:import_type => 7, :list_name => "probando" }) | |
| => "dummy_result" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #@sql = "LOAD DATA LOCAL INFILE '/tmp/hh_import_#{@user.id}#{rand_filename}.tsv' INTO TABLE contacts (phone) SET user_id=#{@user.id},status=#{import_type},import=1,created_at=UTC_TIMESTAMP(),updated_at=UTC_TIMESTAMP()" | |
| #ActiveRecord::Base.connection.execute(@sql) if @exists_phones.length > 0 #.join adds a \n to empty arrays | |
| @contacts = Contact.create( | |
| @exists_phones.map{|phone| {:phone => phone, :status => import_type, :user_id => @user.id, :import => 1} } | |
| ) | |
| ids = @contacts.map(&:id) | |
| @q_contacts = QcallContact.create( | |
| ids.map{|contact_id| {:qcall_contact_list_id => @q_new_list.id, :qpriority => 10, :qcall_id => @qcall.id, :contact_id => contact_id } } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Esto hizo tonchis hasta ahora. | |
| private var edited_row_index:int; | |
| private function editCell(event:AdvancedDataGridEvent):void{ | |
| edited_row_index = event.rowIndex; | |
| ExternalInterface.call('console.log', "Event" + event); | |
| } | |
| private function putNewValue(event:AdvancedDataGridEvent):void{ |
OlderNewer