Skip to content

Instantly share code, notes, and snippets.

View plcosta's full-sized avatar

Pedro Costa plcosta

  • Brazil
  • 12:12 (UTC -03:00)
View GitHub Profile
<div style="display: none;" id="loading" class="loader">
<div class="container">
<div class="progress progress-striped active loadCenter" id="loadCenter">
<div style="width: 100%;" class="bar" id="loadCenterContent">Carregando.</div>
</div>
</div>
</div>
@plcosta
plcosta / gist:5643006
Created May 24, 2013 11:58
BracketHighlighter Config for Sublime Text 3 bh_core.sublime-settings
{
//Debug logging
"debug_enable": false,
// When only either the left or right bracket can be found
// this defines if the unmatched bracket should be shown.
"show_unmatched" : true,
// High visibilty style and color for high visibility mode
// (solid|outline|underline|thin_underline|squiggly|stippled)
@plcosta
plcosta / app.js
Created May 28, 2013 12:26
Chamadas Painel - Node.JS app.js
// CONFIG PACKAGES
var express = require('express');
var app = express.createServer();
var socket = require('socket.io');
var pg = require('pg');
app.configure(function(){
app.use(express.static(__dirname + '/'));
});
// CONFIG PACKAGES
var express = require('express');
var app = express.createServer();
var socket = require('socket.io');
var pg = require('pg');
app.configure(function(){
app.use(express.static(__dirname + '/'));
});
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Mac Classic.tmTheme",
"font_face": "Source Code Pro",
"font_size": 14.0,
"highlight_line": true,
"theme": "Soda Light.sublime-theme",
"translate_tabs_to_spaces": true
}
@plcosta
plcosta / Preferences.sublime-settings
Created January 23, 2014 19:52
Sublime Text 3 Settings
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"font_face": "Monaco",
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
apt-get install -y ppa-purge
add-apt-repository -y ppa:ondrej/php5-oldstable
apt-get update
ppa-purge ppa:ondrej/php5
apt-get update && apt-get upgrade -y && apt-get autoremove -y && apt-get autoclean -y
@plcosta
plcosta / Vagrantfile
Created January 5, 2016 18:17
My Vagrant File
# -*- 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|
@plcosta
plcosta / view.php
Created February 2, 2016 11:05
Using Laravel groupBy
@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;">
// api/index.js
import Request from 'superagent'
export const getUser (userId) {
return Request
.get('/api/user/:userId');
}