Skip to content

Instantly share code, notes, and snippets.

View djalmaaraujo's full-sized avatar
🌊
Working from home

Djalma Araújo djalmaaraujo

🌊
Working from home
View GitHub Profile
➜ alloy-ui copy git:(master|✚1) git submodule update
Cloning into lib/yuidocjs...
remote: Counting objects: 2508, done.
remote: Compressing objects: 100% (1103/1103), done.
remote: Total 2508 (delta 1536), reused 2271 (delta 1305)
Receiving objects: 100% (2508/2508), 730.86 KiB | 307 KiB/s, done.
Resolving deltas: 100% (1536/1536), done.
fatal: reference is not a tree: 01f53d28be039e6a9504dd0beb74224ba6d81fe5
Unable to checkout '01f53d28be039e6a9504dd0beb74224ba6d81fe5' in submodule path 'lib/yuidocjs'
<VirtualHost *:80>
DocumentRoot "/Users/djalmaaraujo/dev/php/maestro2/app/webroot"
ServerName maestro.vcap.me
ServerAlias *.maestro.vcap.me
<Directory "/Users/djalmaaraujo/dev/php/maestro2/app/webroot">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
CREATE TABLE `admins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) DEFAULT NULL,
`username` varchar(100) DEFAULT NULL,
`password` varchar(100) DEFAULT NULL,
`status` int(11) DEFAULT '1',
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
CREATE TABLE `clients` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`company` varchar(255) NOT NULL DEFAULT 'pianolab' COMMENT 'Empresa detentora do modulo',
`url` varchar(255) NOT NULL,
`ftp_root` varchar(255) NOT NULL,
`login` varchar(30) NOT NULL,
`host` varchar(100) NOT NULL,
`user` varchar(100) NOT NULL,
`pass` varchar(100) NOT NULL,
`db` varchar(100) NOT NULL,
@djalmaaraujo
djalmaaraujo / gist:4069221
Created November 13, 2012 23:49
Virtual HOST
<VirtualHost *:80>
DocumentRoot "/Users/djalmaaraujo/dev/php/maestro2/app/webroot"
ServerName maestro.vcap.me
ServerAlias *.maestro.vcap.me
<Directory "/Users/djalmaaraujo/dev/php/maestro2/app/webroot">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
A.one(document).delegate('click', function (event) {
var activeView = <portlet:namespace />scheduler.get('activeView').get('name');
var link = this;
var newURL = Liferay.Util.addParams({
p_p_id: <portlet:namespace />scheduler.get('portletNamespace'),
activeView: activeView
}, link.getAttribute('href'));
link.setAttribute('href', newURL);
instance.after(
{
'scheduler-base:dateChange': instance._afterDateChange,
'scheduler-event:change': instance._afterSchedulerEventChange
}
);
instance.on(
{
'*:load': instance._onLoadSchedulerEvents,
@djalmaaraujo
djalmaaraujo / index.html
Last active December 10, 2015 12:49
Alloy ProgressBar DEMO
<!DOCTYPE html>
<html>
<head>
<script src="../../build/aui/aui.js" type="text/javascript"></script>
<link rel="stylesheet" href="../../build/alloy-twitter-bootstrap/bootstrap-2.2.2.min.css" type="text/css" media="screen" />
<style type="text/css" media="screen">
body {
// Copyright (c) 2013 Djalma Araujo
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Tadashi gostosinho</title>
</head>
<body>
<div id="global_div">
<div class="row">