This file contains 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
'use strict'; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
options: { | |
livereload: true | |
}, |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# hospub - debian 7 | |
config.vm.define "hospub" do |hospub| |
This file contains 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
#!/bin/bash | |
# | |
# Nao esquecer de colocar na cron do root as linhas abaixo: | |
# #!/bin/bash | |
# TERM=linux | |
##### Area das variaveis ################################################ | |
# Declaro a varialvel EXEC com o nome dos executaveis | |
EXEC="SIADM SIADT SIALM SICEC SIFAR SIFIN SIGAE SIGHO SIGUE SIINF SIMAT SINAT SINUT SISRH SSAME HOSPUB ATIVA" |
This file contains 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
#!/bin/bash | |
################################################### | |
# # | |
# Script para matar conexoes ociosas # | |
# # | |
# Nome: LIMPANDO_CONEXAO Versao 0.2 # | |
# by Guilherme Moura de Souza # | |
# Colaboradores: Tulio.Hoffimann # | |
# stack_of # |
This file contains 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
======= Prolbem ================================================================================================================= | |
I have installed : ruby-2.0.0,postgres-9.2 , now in rails app when I execute: | |
rake db:create , command I get: | |
PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) | |
HINT: Use the same encoding as in the template database, or use template0 as template. | |
: CREATE DATABASE "my_db_name" ENCODING = 'unicode'....... | |
bin/rake:16:in `load' |
This file contains 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
<?php | |
namespace LaravelDoctrine\ORM\Configuration\Connections; | |
use Illuminate\Support\Str; | |
class OpensqlConnection extends Connection | |
{ | |
/** | |
* @param array $settings |
This file contains 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
public function index() | |
{ | |
DB::connection('openbase')->enableQueryLog(); | |
$internados = Bed::where('c02codclin', '002')->get(); | |
dd( $internados ); | |
} |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# hospub - debian 7 | |
config.vm.define "hospub" do |hospub| |
This file contains 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
@section('content') | |
<div class="row"> | |
@foreach($beds->groupBy('ward_id') as $key => $grouped) | |
<div class="col-sm-4"> <!-- ENFERMARIA --> | |
<div class="panel panel-default border-top-success border-bottom-success"> | |
<div class="panel-heading"><h5 class="panel-title">{{ $key }}</h5></div> | |
<div class="panel-body"> | |
@foreach($grouped as $bed) | |
<div class="col-sm-3"> | |
<div style="text-align: center;"> |
This file contains 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
// api/index.js | |
import Request from 'superagent' | |
export const getUser (userId) { | |
return Request | |
.get('/api/user/:userId'); | |
} |