Skip to content

Instantly share code, notes, and snippets.

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

Djalma Araújo de Andrade djalmaaraujo

🌊
Working from home
View GitHub Profile
➜ alloy-ui git:(2.0.x|✚3…) npm update yogi-alloy -g
npm http GET https://registry.npmjs.org/yogi-alloy
npm http 304 https://registry.npmjs.org/yogi-alloy
npm http GET https://registry.npmjs.org/yogi-alloy/0.0.19
npm http 200 https://registry.npmjs.org/yogi-alloy/0.0.19
npm http GET https://registry.npmjs.org/yogi-alloy/-/yogi-alloy-0.0.19.tgz
npm http 200 https://registry.npmjs.org/yogi-alloy/-/yogi-alloy-0.0.19.tgz
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/share/npm/lib/node_modules/yogi-alloy/.npmignore'
npm ERR! error rolling back yogi-alloy@0.0.19 { [Error: EACCES, unlink '/usr/local/share/npm/lib/node_modules/yogi-alloy/.npmignore']
npm ERR! error rolling back errno: 3,
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Tadashi gostosinho</title>
<style type="text/css">
.aui-field-select {
float: left;
margin: 0 30px 0 0;
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Tadashi gostosinho</title>
</head>
<body>
<div id="global_div">
<div class="row">
// 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
@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 {
instance.after(
{
'scheduler-base:dateChange': instance._afterDateChange,
'scheduler-event:change': instance._afterSchedulerEventChange
}
);
instance.on(
{
'*:load': instance._onLoadSchedulerEvents,
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);
@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>
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,
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;