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
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;
<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>
➜ 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'
error: The following untracked working tree files would be overwritten by checkout:
lib/builder/.gitignore
lib/builder/componentbuild/2.x/bootstrap.xml
lib/builder/componentbuild/2.x/module.xml
lib/builder/componentbuild/3.x/bootstrap.xml
lib/builder/componentbuild/3.x/module.xml
lib/builder/componentbuild/3.x/rollup.xml
lib/builder/componentbuild/LICENSE
lib/builder/componentbuild/README
lib/builder/componentbuild/docs/docs.css
<?php echo $html->script('jquery-1.4.2.min.js'); ?>
<form method="post" id="form-gateway" action="https://pagseguro.uol.com.br/checkout/checkout.jhtml" style="display:none">
<input type="hidden" name="email_cobranca" value="<?php echo Config::read('app.gateway.email'); ?>">
<input type="hidden" name="tipo" value="CP">
<input type="hidden" name="moeda" value="BRL">
<input type="hidden" name="encoding" value="UTF-8">
<input type="hidden" name="ref_transacao" value="event-<?php echo $subscribe['id_inscexterno_dados']; ?>">
<input type="hidden" name="item_id_1" value="1">
@djalmaaraujo
djalmaaraujo / sass-parse-alloy-components
Created October 2, 2012 20:37
sass-parse-alloy-components
<?xml version="1.0"?>
<project name="AlloySass" default="local" xmlns:antelope="antlib:ise.antelope.tasks">
<basename property="ant.file.basename" file="${ant.file}" suffix=".xml" />
<target name="build-ruby-gems">
<if>
<not>
<available file="${project.dir}/lib/ruby-gems.jar" />
</not>
require 'rubygems'
require 'compass'
filePath = $project.getProperty('file.path')
files = Dir.glob(filePath)
files.each do | file |
fileContent = File.read(file)
engine = Sass::Engine.new(
require 'rubygems'
require 'compass'
filePath = $project.getProperty('file.path')
files = Dir.glob(filePath)
files.each do | file |
fileContent = File.read(file)
engine = Sass::Engine.new(
require 'rubygems'
require 'sass'
files = Dir.glob($project.getProperty('scss'))
files.each do | file |
puts '[SCSS] Compiling ' + File.basename(file, ".*") + '.css'
content = File.read(file)
engine = Sass::Engine.new(content, :syntax => :scss, :style => :compressed)
sass_output = engine.render
(function(global) {
var CONFIG = {
serverAddress: '10.0.1.32',
serverPort: '4000',
maxPlayers: 10 // in miliseconds
};
global.SOCKETRACE_CONFIG = CONFIG;
})(window || exports);