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
// try it... but after the first call and cancel, the second call show that it serve nothing... | |
$(document).on('click', 'form[data-remote]', function(){ | |
for (instance in CKEDITOR.instances){ | |
CKEDITOR.instances[instance].updateElement(); } }); | |
// try this... still doesn't change, still failed to load ckeditor on second call AJAX edition | |
$(document).on('ajax:before', 'form[data-remote]', function(){ | |
for (instance in CKEDITOR.instances){ | |
CKEDITOR.instances[instance].updateElement(); } }); |
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
// This is a manifest file that'll be compiled into application.js, which will include all the files | |
// listed below. | |
// | |
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, | |
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. | |
// | |
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | |
// compiled file. | |
// | |
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details |
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
- if @photo.errors.any? | |
#error_explanation | |
%h2 | |
= pluralize(@photo.errors.count, "error") | |
prohibited this photo from being saved: | |
%ul | |
- @photo.errors.full_messages.each do |message| | |
%li= message | |
= simple_form_for(@photo) do |photo_form| | |
.row |
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
#include "mainwindow.h" | |
#include "ui_mainwindow.h" | |
#include <QtX11Extras/QX11Info> | |
#include <QVBoxLayout> | |
#include <QGst/Ui/VideoWidget> | |
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { | |
ui->setupUi(this); | |
widgetVideo = new QGst::Ui::VideoWidget; | |
ui->videoVBOX->addWidget(widgetVideo); |
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
----------------------------------------------------------------- | |
pg_upgrade run on Sat Nov 19 15:57:01 2016 | |
----------------------------------------------------------------- | |
command: "/opt/pgsql-9.5/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D "/var/lib/postgres/data-9.5" -o "-p 50432 -b -c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directories='/var/lib/postgres'" start >> "pg_upgrade_server.log" 2>&1 | |
waiting for server to start....FATAL: data directory "/var/lib/postgres/data-9.5" has group or world access | |
DETAIL: Permissions should be u=rwx (0700). | |
stopped waiting | |
pg_ctl: could not start server | |
Examine the log output. |
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
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details | |
// about supported directives. | |
// | |
//= require jquery2 | |
//= require jquery.turbolinks | |
//= require jquery_ujs | |
//= require ckeditor/init | |
//= require jquery-ui | |
//= require jquery.remotipart | |
//= require bootstrap |
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
#--datas.pm--- | |
use YAML; | |
class datas { | |
has Str $.filename is rw; | |
has Array @.datas; | |
has Str $.directory = %*ENV<HOME> ~ "/.vim/installer"; | |
has Str $.repo_dir = %*ENV<HOME> ~ "/.vim/bundle"; | |
has Str $.full_filename; |
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
#!/usr/bin/perl6 | |
#use install; | |
use lib "/home/jerome/PROGRAMATION/Perl/Vim_plugger_6/"; | |
use Term::Choose; | |
use datas; | |
use add :MANDATORY; | |
my $mode; | |
my $yaml = datas.new("my_pl6.yml"); | |
my @menu0 = < List Add Modify Remove Install Uninstall Update Quit >; |
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
#the sub function where error is, at line 8 | |
our sub object_repo_exist($yaml, $object, $object_name, $group_name) is export | |
# $ yaml.datas contain the my.yaml parsed file. checked... exactly same structure and content of datas. | |
{ #give object=title|url , object_name, group_name | |
my $i = 0; | |
my %group = $yaml.datas.first: { $_<group> eq $group_name }; | |
my %repo; | |
unless (%group<repos>.elems == 0) { | |
return True if %group<repos>.first: { $_<<$object>> eq $object_name }; | |
} |
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
source /usr/lib/python3.6/site-packages/powerline/bindings/tmux/powerline_tmux_2.1_plus.conf | |
set -g prefix C-b | |
set -g default-terminal "tmux-256color" | |
set -g history-limit 1000 | |
set -g mouse on | |
set -g set-titles on | |
set -g set-titles-string "#T" | |
setw -g monitor-activity on | |
set -g visual-activity on |
OlderNewer